WEMIX3.0
WEMIX3.0 (KOR)
Search…
⌃K

Tokens APIs

Get ERC20-Token total supply by contract's address

URI

network
uri
Mainnet
GET https://explorerapi.wemix.com/v1/tokens/{contract_address}/total-supply
Testnet
GET https://explorerapi.test.wemix.com/v1/tokens/{contract_address}/total-supply

REQUEST PARAMETER

  • HEADER
key
value
required
api-key
api-key
true

REQUEST SAMPLE

GET https://explorerapi.test.wemix.com/v1/tokens/0x1b7aCAc0EA9956e1d238973Fc65e9945ddcebe4D/total-supply
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539

RESPONSE PARAMETER

key
type
value
status
String
Status of request
message
String
Response Message of request
results
Json
Results of request
results.data
List<Object>
List of data
results.data.total_supply
String
Total supply of token

RESPONSE SAMPLE

{
"status": "200",
"message": "success",
"results": {
"data": {
"total_supply": "1000000000000000000000000000"
}
}
}

Get ERC20-Token Account Balance

URI

network
uri
Mainnet
GET https://explorerapi.wemix.com/v1/tokens/{contract_address}/balance/{address_hash}
Testnet
GET https://explorerapi.test.wemix.com/v1/tokens/{contract_address}/balance/{address_hash}

REQUEST PARAMETER

  • HEADER
key
value
required
api-key
api-key
true

REQUEST SAMPLE

GET https://explorerapi.test.wemix.com/v1/tokens/0x7C80162516590571eb4FA1d6c1A94E1914949Bff/balance/0x1a00dCd8c9fae46884c9c199081451Bdc8FAB2f9
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539

RESPONSE PARAMETER

key
type
value
status
String
Status of request
results.data.balance
String
Balance of address with ERC-20 contract
results.data
List<Object>
List of data
results
Json
Results of request
message
String
Response Message of request

RESPONSE SAMPLE

{
"status": "200",
"message": "success",
"results": {
"data": {
"balance": "5001300000000000000"
}
}
}