lookupAssetByID - Algorand
Example code for the lookupAssetByID REST method. Complete guide on how to use lookupAssetByID REST in GetBlock Web3 documentation.
Lookup asset information.
Endpoint
GET /v2/assets/{asset-id}Path Parameters
asset-id
integer
Yes
—
Query Parameters
include-all
boolean
Optional
Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.
Example
export ALGO_INDEXER=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
curl "${ALGO_INDEXER}v2/assets/REPLACE_ASSET-ID"Response
Returns application/json. Top-level fields:
asset
object
Specifies both the unique identifier and the parameters for an asset
current-round
integer
Round at which the results were computed.
Error Handling
400
Bad request
A parameter was missing or malformed
404
Not found
The requested resource does not exist
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Last updated
Was this helpful?