- Query performance has tripled in speed compared to Version 1.
- Enhanced bulk retrieval options now include increased limits and the ability to fetch items from specific networks or retrieve multiple specified items simultaneously.
- Version 2 now supports the handling of contract images.
- The structure of Wrapped tokens has been updated to mimic that of simple tokens, where the picture URL, title, and sensitivity now automatically reference the original token.
- Introducing a dark theme: Resources can now feature two distinct sets of pictures, one for light themes and another for dark themes.
- All responses, including error messages, are uniformly formatted in JSON with the structure {message: string}
DaVinciPics Packages
davinci-pic Web Component (custom element): This web component helps you effortlessly fetch the appropriate image from our API by using its identifier. It's compatible with pure HTML, Angular, and Vue.js. Get the package from our GitHub repository.
DavinciPic React Component: This React component also lets you conveniently retrieve the relevant image from our API using its identifier. Download the package from our GitHub repository.
DavinciPicSignal: This package allows your dapp to easily communicate information about wrapped or LP tokens, as well as suggest foreign tokens that should be added. Download this package from our GitHub repository.
Using these packages, you can mostly avoid interacting with the API directly. However, you're free to do so if you wish to implement your own custom logic.
- To display images of entities without requiring an API key, integrate the API directly within your front-end.
- For faster data retrieval, use the supplementary scope, as resources within this scope are cached.
- The API configures your front-end to cache responses for 6 hours. Adhering to this caching period is recommended to optimize performance.
- Employ HTML Intersection Observer for sending requests; setting an appropriate margin ensures seamless operation and reduces unnecessary requests.