Tokens
Get ERC20 Token Total Supply by Contract Address
Returns the current amount of an ERC-20 token in circulation.
GET https://scan.wemix.com/api/token/{address}/total-supply
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
Example:
https://scan.wemix.com/api/token/0x7d72b22a74a216af4a002a1095c8c707d6ec1c5f/total-supply?chain=wemixResponse
{
"address": "0x7d72b22a74a216af4a002a1095c8c707d6ec1c5f",
"chain": "wemix",
"totalSupply": "7392337.121269413755837723"
}{
"error": "Invalid contract address format"
}{
"error": "Failed to fetch token total supply"
}Get ERC20 Token Account Balance for Token Contract Address
Returns the current balance of an ERC-20 token of an address.
GET https://scan.wemix.com/api/token/balance?address={address}&contractaddress={contractaddress}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
address (required)
string
representing the address to check for token balance
contractaddress(required)
string
contract address of the ERC20 Token.
Example:
Response
Get Token Holder List by Contract Address
Return the ERC20 token holders and number of tokens held.
GET https://scan.wemix.com/api/token/balance?address={address}&contractaddress={contractaddress}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
contractaddress(required)
string
contract address of the ERC20 Token.
page
integer
page number
offset
integer (10 | 15 | 30 | 45)
the number of results displayed per page
Example:
Response
Get Token Holder Count by Contract Address
Return the ERC20 token holder count.
GET https://scan.wemix.com/api/token/holder-count?contractaddress={contractaddress}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
contractaddress(required)
string
contract address of the ERC20 Token.
Example:
Response
Get Token Info Contract Address
Return the project information given a contract address.
GET https://scan.wemix.com/api/token/info?contractaddress={contractaddress}
Query Parameters
chain
wemix (default to wemix)
Chain
contractaddress(required)
string
contract address of the ERC20 or ERC721 Token.
Example:
Response
Get ERC20 Holdings for an Address
Return the erc20 tokens held by an address.
GET https://scan.wemix.com/api/token/erc20-holdings?address={address}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
address(required)
string
address
Example:
Response
Get ERC721 Holdings for an Address
Return the erc721 tokens held by an address.
GET https://scan.wemix.com/api/token/erc721-holdings?address={address}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
address(required)
string
address
Example:
Response
Get Historical ERC20-Token TotalSupply by ContractAddress & BlockNo
Returns the amount of an ERC-20 token in circulation at a certain block height.
GET https://scan.wemix.com/api/token/{address}/total-supply-history?block={block}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
block
latest | integer
(default to latest)
Block height
Example:
Response
Get Historical ERC20-Token Account Balance for TokenContractAddress by BlockNo
Returns the balance of an ERC-20 token of an address at a certain block height.
GET https://scan.wemix.com/api/token/{address}/total-balance-history?contractaddress={contractaddress}&block={block}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
contractaddress(required)
Hex string
ERC-20 Token contract address to query
block
latest | integer
(default to latest)
Block height
Example:
Response
Get Address ERC721 Token Inventory By Contract Address
Returns the ERC-721 token inventory of an address, filtered by contract address, with optional pagination
GET https://scan.wemix.com/api/token/{address}/nft-inventory?contractaddress={contractaddress}&page={page}&offset={offset}
Query Parameters
chain
wemix | wemixTestnet (default to wemix)
Chain
contractaddress(required)
Hex string
ERC721 Token contract address to query
page
the integer page number, if pagination is enabled
Page number to return (default to 1)
offset
integer
the number of tokens displayed per page (default to 10000)
Example:
Last updated