With data of more than 100,000+ tokens, Token Store is one of the finest products when it comes to querying token attributes; either with the contract address of the token or with the token ticker itself. This gives developers the flexibility and ease of querying data in more than one way with just a single line of code. The details fetched by the product is comprehensive along with granular information. The distinctive data fetched for every query through Token Store: “Symbol”, “Contract”, “Logo”, “Decimal”, “Blockchain”, “Website”, “Total Supply”, "Verified" and “Explorer” Verified flag returns the status of token. if its a valid token we return true, else returns false.
The API provides detailed information about the token by contract address.
curl -i -X GET \ 'https://api.unmarshal.com/v1/tokenstore/token/address/:address?auth_key=YOUR_API_KEY_HERE'
{- "name": "UnmarshalToken",
- "symbol": "MARSH",
- "contract": "0x5a666c7d92e5fa7edcb6390e4efd6d0cdd69cf37",
- "decimal": 18,
- "blockchain": "ethereum",
- "total_supply": "100000000",
- "verified": true
}
The API provides detailed information about the token by Token Symbol.
unmarshal.TokenStore
.getDetailsBySymbol("marsh")
.then(({data}) => console.log(data))
Example response
curl -i -X GET \ 'https://api.unmarshal.com/v1/tokenstore/token/symbol/:symbol?auth_key=YOUR_API_KEY_HERE'
[- {
- "name": "UnmarshalToken",
- "symbol": "MARSH",
- "contract": "0x2fa5daf6fe0708fbd63b1a7d1592577284f52256",
- "decimal": 18,
- "blockchain": "binance-smart-chain",
- "total_supply": "6644065",
- "verified": true
}, - {
- "name": "UnmarshalToken",
- "symbol": "MARSH",
- "contract": "0x5a666c7d92e5fa7edcb6390e4efd6d0cdd69cf37",
- "decimal": 18,
- "blockchain": "ethereum",
- "total_supply": "100000000",
- "verified": true
}
]
The API provides a list of all the tokens available in Ethereum, BSC, and Polygon that must be searched with the string 'list' / Tokens available in Ethereum, BSC, and Polygon are shown in the API when searching with the string 'list'.
unmarshal.TokenStore
.listTokens()
.then(({data}) => console.log(data))
Example response
curl -i -X GET \ 'https://api.unmarshal.com/v1/tokenstore/token/all?page=1&pageSize=5&auth_key=YOUR_API_KEY_HERE'
{- "page": 1,
- "total_pages": 6320,
- "items_on_page": 2,
- "data": [
- {
- "name": "BREW",
- "symbol": "BREW",
- "contract": "0x46d3ece45f8e16bec4bd241c248ce0e7cfff310e",
- "decimal": 18,
- "blockchain": "fantom",
- "total_supply": "0",
- "verified": true
}, - {
- "name": "BitMartToken",
- "symbol": "BMC",
- "contract": "0x986ee2b944c42d017f52af21c4c69b84dbea35d8",
- "decimal": 18,
- "blockchain": "ethereum",
- "total_supply": "883148901",
- "verified": true
}
]
}