DaVinciGraph Default User Avatar

Davincigraph Pics API

Introducing our specialized API designed to provide visual assets for Hedera-based entities such as Tokens, Accounts, and Nodes. Token owners and account holders can upload custom images for their respective entities through our user interface. Our API is versatile, accommodating not just standalone tokens but also LP tokens and wrapped tokens by dynamically pointing to the relevant original or pair token images. Additionally, for wrapped tokens originating from networks other than Hedera, our administrators manually add these foreign token images to ensure a comprehensive visual dataset.
Base URLhttps://davincigraph.art

DavinciPics Packages

To make working with the DavinciPics API easier, we offer specialized packages for different needs:

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.

Resources

There are five resources in the API, Tokens, Accounts, Nodes, Networks and Apps. you can see the endpoints below:

Tokens

GET
/api/v1/tokens/{network}/{address}
Get a Token by its network and address
PUT
/api/v1/tokens/{network}/{address}
Send a signal to either suggest adding a token from a foreign network or to include a reference for a complex token based on Hedera.

Accounts

GET
/api/v1/accounts/{network}/{address}
Get an account by its network and address

Nodes

GET
/api/v1/nodes/{network}/{address}
Get a node by its network and account address

Networks

GET
/api/v1/networks/{id}
Get a network by its id

Apps

GET
/api/v1/apps/{name}
Get an app by its name

Cache

Resources retrieved from routes that don't have the complete flag are stored temporarily to speed up future access. On the server, this cached data lasts for 1 hour, while on the client side, it's kept for 6 hours. The cache always contains the most recent version of the resources. If any updates occur to the resources, the cache will be cleared and replaced with the new information (This doesn't apply to complex tokens).

Rate Limit

Each user has a limit of 250 API requests per minute. However, applications that send signals to the API are granted a higher request rate. If you find that you need an even higher rate, it can be further increased upon request.