Token

?module=token

https://instance_base_url/api?module=token

Get ERC-20 or ERC-721 token by contract address

getToken

Info on name, symbol, supply and type for a token contract address.

Example

https://instance_base_url/api
   ?module=token
   &action=getToken
   &contractaddress={contractaddressHash}
Parameter
Description

contractaddress

string containing the contract address hash - a 160-bit code used for identifying contracts.

Get token holders by contract address

getTokenHolders

Returns an array of token holder's accounts and amounts held for a specified token contract address.

Example

https://instance_base_url/api
   ?module=token
   &action=getTokenHolders
   &contractaddress={contractaddressHash}
   &page={integer}
   &offset={integer}
Parameter
Description

contractaddress

string containing the contract address hash of the ERC-20/ERC-721 token

page

optional nonnegative integer representing the page number used for pagination. 'offset' must also be provided.

offset

optional nonnegative integer representing the max number of records to return when paginating. 'page' must also be provided.

Get bridged tokens list

bridgedTokenList

Returns an array of bridged token information (uses native bridge application and only returns when applicable - depends on implementation).

Example

https://instance_base_url/api
   ?module=token
   &action=bridgedTokenList
   &chainid={chainid}
   &page={integer}
   &offset={integer}
Parameter
Description

chainID

nonnegative integer that represents the chain id where the original token exists.

page

optional nonnegative integer representing the page number used for pagination. 'offset' must also be provided.

offset

optional nonnegative integer representing the max number of records to return when paginating. 'page' must also be provided.

Last updated

Logo

Copyright © Blockscout Limited 2023-2024