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.wemix.com/v1/tokens/0x8E81fCc2d4A3bAa0eE9044E0D7E36F59C9BbA9c1/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": "9782909016599000000000000"
}
}
}

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.wemix.com/v1/tokens/0x8E81fCc2d4A3bAa0eE9044E0D7E36F59C9BbA9c1/balance/0x2769c8A36d2cEF785952e08224c457AefccD0b6a
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.balance
String
Balance of address with ERC-20 contract

RESPONSE SAMPLE

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

Get ERC-721 Token held by holder inventory

URI

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

REQUEST PARAMETER

  • HEADER
key
value
required
api-key
api-key
true
  • QUERY STRING
key
type
value
required
limit
Number
Maximum number of record will retrieve Default: 50, Max: 1000
false
offset
Number
Start retrieve record Default: 0
false
holder_address
String
Address of holder

REQUEST SAMPLE

GET https://explorerapi.test.wemix.com/v1/tokens/0x62e1ad2a3a9ab55ba20bc4eb27fca655c41fdd88/inventory
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
GET https://explorerapi.test.wemix.com/v1/tokens/0x62e1ad2a3a9ab55ba20bc4eb27fca655c41fdd88/inventory/0x07f4701f781c898cf18883262ab0e7c3cc199835
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.count
results.data
List<Object>
List of data
results.data.holder_address
String
Balance of address with ERC-20 contract
results.data.token_id
String
Uri of token
results.data.token_uri
String
Id of token
results.token_name
String
Name of token
results.token_symbol
String
Symbol of token

RESPONSE SAMPLE

{
"status": "200",
"message": "success",
"results": {
"count": "65",
"data": [
{
"holder_address": "0xb0fb83eed8de308d0a076b9763d47a0e1f5d3b7d",
"token_id": "51",
"token_uri": "ipfs://bafyreifytod4coyoolbxj6f4nm6hluwqcrhy4vi5hxl5nzpeydodnowh7u/metadata.json"
},
...
],
"token_name": "Tangled",
"token_symbol": "TTPS"
}
}