/tokens/:address/:id/uri

You do NOT need an API key for this endpoint

GET/tokens/:address/:id/uri

The /tokens/:address/:id/uri endpoint retrieves URI data about tokens on any chain.

Headers

None

Path Variables

Name
Mandatory?
Default
Value

:address

Yes

The address of the contract we want URI data for.

:id

Yes

The token Id.

Params

Name
Mandatory?
Default
Value

b

Yes

The chain the contract is on

s

No

0

The token standard for the contract: 0: ERC721 1: ERC1155

Response Body

The response body will be whatever is defined in the target for the URI for that token on that chain. An example is provided below.

Example Request

GET https://api.bless.net/tokens/0xbfe75b036bc41a3cbbb55b5aaec804706e9d3751/:id/uri?b=11155111

Response

{
    "image": "ipfs://QmQRMzNX9bcdnEuMx4qhsQGWxJ2BA3BNZZVybu3nZxma5d",
    "attributes": [
        {
            "trait_type": "Mouth",
            "value": "Bored Cigarette"
        },
        {
            "trait_type": "Eyes",
            "value": "3d"
        },
        {
            "trait_type": "Hat",
            "value": "Sea Captain's Hat"
        },
        {
            "trait_type": "Background",
            "value": "Army Green"
        },
        {
            "trait_type": "Fur",
            "value": "Pink"
        }
    ]
}

Last updated