blessnet docs
  • Welcome to Blessnet
  • Getting Started
    • Quickstart
  • Reference
    • Blessnet Chain Details
    • Supported Chains
    • Contract Addresses
  • BLESS Token
    • BLESS
    • Get BLESS
    • BLESS Sepolia Faucet
    • BLESS Sprinkler
    • BLESS Dispenser
    • BLESS Bridge
  • Blessnet Apps
    • Attestations
    • Ethereals
    • Mirrors
    • Modular Permissions
    • Transaction Bridge
  • Papers and Articles
    • Whitepaper
  • Tech
    • Technical Reference
  • Blessnet API
    • Blessnet API URLs
    • /account-abstraction/operations
    • /account-abstraction/operations/accounts/:address
    • /account-abstraction/platforms/:platform/accounts/:id
    • /account-abstraction/platforms/:platform/accounts
    • /addresses/:address/delegates
    • /addresses/:address/permissions
    • /addresses/:address/vaults
    • /project
    • /bridge/transfers
    • /bridge/transfers/transactions/:hash
    • /deliveries/:id
    • /ethereals
    • /ethereals/:chainId/:address
    • /sprinkles
    • /tokens/:address/:id/uri
    • Block Scan API
  • Contract ABI
    • Attestions.sol
Powered by GitBook
On this page
  • Headers
  • Path Variables
  • Params
  • Response Body
  • Example Request
  • Response
  1. Blessnet API

/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"
        }
    ]
}
{
  "message": "Please provide chainId and delegate address as query parameters."
}
Previous/sprinklesNextBlock Scan API

Last updated 2 months ago