Accounts

Account Related API's

Get Balance for a Single Address

Returns the balance of a given address.

GET https://scan.wemix.com/api/account/{address}/balance

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

Example:

https://scan.wemix.com/api/account/0x689845a9766BcEE70e89752AA7Ff75703AC3b86a/balance

Response

{
    "account": "0x689845a9766BcEE70e89752AA7Ff75703AC3b86a",
    "balance": "55063.80784704125"
}

Get Balance for Multiple Addresses in a Single Call

Returns the balance of the accounts from a list of addresses.

GET https://scan.wemix.com/api/account/balance-multi?address={address}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

address (required)

comma separated string of addresses

List of Addresses to query balance for

Example:

Response

Get a list of 'Normal' Transactions By Address

Returns the list of transactions performed by an address, with optional pagination.

GET https://scan.wemix.com/api/account/{address}/tx-list?startblock={startblock}&endblock={endblock}&page={page}&offset={offset}&sort={sort}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

startblock

integer

The starting block number for the range to query

endblock

integer

The ending block number for the range to query

page

the integer page number, if pagination is enabled

Page number to return (default to 1)

offset

integer

the number of transactions displayed per page (default to 10000)

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Get a list of 'Internal' Transactions By Address

Returns the list of internal transactions performed by an address, with optional pagination.

GET https://scan.wemix.com/api/account/{address}/tx-list-internal?startblock={startblock}&endblock={endblock}&page={page}&offset={offset}&sort={sort}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

address (required)

string

Hex address to query

startblock

integer

The starting block number for the range to query

endblock

integer

The ending block number for the range to query

page

the integer page number, if pagination is enabled

Page number to return (default to 1)

offset

integer

the number of transactions displayed per page (default to 10000)

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Get a list of 'Internal' Transactions By Block Range

Returns the list of internal transactions performed within a block range, with optional pagination.

GET https://scan.wemix.com/api/account/tx-list-internal?startblock={startblock}&endblock={endblock}&page={page}&offset={offset}&sort={sort}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

startblock (required)

integer

The starting block number for the range to query

endblock (required)

integer

The ending block number for the range to query

page

the integer page number, if pagination is enabled

Page number to return (default to 1)

offset

integer

the number of transactions displayed per page (default to 10000)

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Get a list of 'Internal' Transactions By Transaction Hash

Returns the list of internal transactions performed within a transaction.

GET https://scan.wemix.com/api/account/tx-list-internal?hash={hash}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

hash (required)

string

Hex string of Transaction Hash to query by

Example:

Response

Get a list of 'ERC20 - Token Transfer Events' Transactions By Address

Returns the list of ERC-20 tokens transferred by an address, with optional filtering by token contract.

GET https://scan.wemix.com/api/account/{address}/token-tx?startblock={startblock}&endblock={endblock}&page={page}&offset={offset}&sort={sort}&contractaddress={contractaddress}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

startblock

integer

The starting block number for the range to query

endblock

integer

The ending block number for the range to query

page

the integer page number, if pagination is enabled

Page number to return (default to 1)

offset

integer

the number of transactions displayed per page (default to 10000)

sort

desc | asc

Order of the results. (default to asc)

contractaddress

the string representing the token contract address to check for balance

Used to filter by token transferred

Example:

Response

Get a list of 'ERC721 - Token Transfer Events' Transactions By Address

Returns the list of ERC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.

GET https://scan.wemix.com/api/account/{address}/token-nft-tx?startblock={startblock}&endblock={endblock}&page={page}&offset={offset}&sort={sort}&contractaddress={contractaddress}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

startblock

integer

The starting block number for the range to query

endblock

integer

The ending block number for the range to query

page

the integer page number, if pagination is enabled

Page number to return (default to 1)

offset

integer

the number of transactions displayed per page (default to 10000)

sort

desc | asc

Order of the results. (default to asc)

contractaddress

the string representing the token contract address to check for balance

Used to filter by token transferred

Example:

Response

Get list of Blocks Validated by Address

Returns the list of blocks validated by an address.

GET https://scan.wemix.com/api/account/{address}/mined-blocks?startblock={startblock}&endblock={endblock}&page={page}&offset={offset}&sort={sort}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

startblock

integer

The starting block number for the range to query

endblock

integer

The ending block number for the range to query

page

the integer page number, if pagination is enabled

Page number to return (default to 1)

offset

integer

the number of blocks displayed per page (default to 10000)

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Get Address Funded By

Returns the address that funded an address, and its relative age.

GET https://scan.wemix.com/api/account/{address}/funded-by

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

Example:

Response

Get Historical WEMIX Balance for a Single Address By BlockNo

Returns the balance of an address at a certain block height.

GET https://scan.wemix.com/api/account/{address}/balance-history?block={block}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet (default to wemix)

Chain

block

latest|integer

Default to "latest"

Example:

Last updated