Token logo image
const url = 'https://api.chainmetric.io/v2/logo/fa61792e6c9284787a342ad3196fa5b11970f1ed663bfeaf736c94003c26b2cd/v1/256.webp';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.chainmetric.io/v2/logo/fa61792e6c9284787a342ad3196fa5b11970f1ed663bfeaf736c94003c26b2cd/v1/256.webpReturns a token logo as a WebP image.
Use the URL found in the logo field of other answers; do not build it yourself.
No key is needed.
The answer is cached as immutable for one year.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”64 hex characters.
Example
fa61792e6c9284787a342ad3196fa5b11970f1ed663bfeaf736c94003c26b2cdv followed by 1 to 3 digits.
Example
v1The image edge in pixels followed by .webp.
Example
256.webpResponses
Section titled “Responses”The image.
The request is malformed, for example a bad address, an unknown chain or an out-of-range parameter. Do not retry unchanged.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Examples
{ "error": "blockchain: unknown chain: \"ethereum\"", "message": "blockchain: unknown chain: \"ethereum\"", "statusCode": 400}The chain is not served, or the token or resource is not known.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Example generated
{ "error": "example", "message": "example", "statusCode": 1}The image store failed. Retry later.
Every error answer has this shape. error and message carry the same text.
object
What went wrong. For 5xx answers this is the status text.
The same text as error.
The HTTP status.
Example generated
{ "error": "example", "message": "example", "statusCode": 1}