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

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

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

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

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