Get Wemix Balance for a Single Address
Returns the Wemix balance of a given address.
https://api-testnet.wemixscan.com/api
?module=account
&action=balance
&address=0x40ddebeb14a7339486a32fbe2633d17491529596
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample Response
{
"status":"1",
"message":"OK",
"result":"8642064707062000000000"
}
Get Wemix Balance for Multiple Addresses in a Single Call
Returns the balance of the accounts from a list of addresses.
https://api-testnet.wemixscan.com/api
?module=account
&action=balancemulti
&address=0x4d7a48526687c99287300ebe7f997ba269c4f93e,0x3d2a38bcf8542dda91f927f56be3461da7ee6773,0x40ddebeb14a7339486a32fbe2633d17491529596
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"account":"0x4d7a48526687c99287300ebe7f997ba269c4f93e",
"balance":"310210548989929895224"
},
{
"account":"0x3d2a38bcf8542dda91f927f56be3461da7ee6773",
"balance":"9649452240000000000"
},
{
"account":"0x40ddebeb14a7339486a32fbe2633d17491529596",
"balance":"8642064707062000000000"
}
]
}
Get a list of 'Normal' Transactions By Address
Returns the list of transactions performed by an address, with optional pagination.
https://api-testnet.wemixscan.com/api
?module=account
&action=txlist
&address=0x4d7a48526687c99287300ebe7f997ba269c4f93e
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"6648950",
"timeStamp":"1664701288",
"hash":"0xe885fcd6f5cc04983aa02873bd0faf6002df73a5cec56ca4a1b6e2d678d3c952",
"nonce":"575",
"blockHash":"0x1f4dac5159ef7dd541a0ac240dca8452ee8b89ca643d3cf04d8144499a769da5",
"transactionIndex":"0",
"from":"0x87e1871e899da468ead5fe3868e27359452d362b",
"to":"0x4d7a48526687c99287300ebe7f997ba269c4f93e",
"value":"10000000000000000000",
"gas":"100000",
"gasPrice":"100000000001",
"isError":"0",
"txreceipt_status":"1",
"input":"0x",
"contractAddress":"",
"cumulativeGasUsed":"21000",
"gasUsed":"21000",
"confirmations":"29717204",
"methodId":"0x",
"functionName":""
},
{
"blockNumber":"6648993",
"timeStamp":"1664701331",
"hash":"0x9cf23bd81c250823ca94794f0bcf0edc51ec4cb06ab3117de9aefa914c2a2cf3",
"nonce":"0",
"blockHash":"0xf870424dde80e38f312cc7493968c5796795f94dbd616d6ac4175dffdfc9d939",
"transactionIndex":"0",
"from":"0x4d7a48526687c99287300ebe7f997ba269c4f93e",
"to":"0xc0c797c66d29c1d9afe353c9b7a1d75c4c9fad2f",
"value":"0",
"gas":"69960",
"gasPrice":"110000000000",
"isError":"0",
"txreceipt_status":"1",
"input":"0x095ea7b300000000000000000000000034bb486398a56fe47bff867fe715a009f063d965ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"contractAddress":"",
"cumulativeGasUsed":"46640",
"gasUsed":"46640",
"confirmations":"29717161",
"methodId":"0x095ea7b3",
"functionName":""
}
]
}
Get a list of 'Internal' Transactions by Address
Returns the list of internal transactions performed by an address, with optional pagination.
https://api-testnet.wemixscan.com/api
?module=account
&action=txlistinternal
&address=0xf8241f00de683651d99c0b61bc4dcde3cd7cce2c
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"17964486",
"timeStamp":"1676016695",
"hash":"0xb0d6e1a2a35c049b4271f6dfa1b62e4da2e590467588a20c9f3a88095d3c8f98",
"from":"0xf8241f00de683651d99c0b61bc4dcde3cd7cce2c",
"to":"0xa9da429284b5ab6782e8d3a33eb709f060f6f62b",
"value":"0",
"contractAddress":"",
"input":"",
"type":"delegatecall",
"gas":"596446",
"gasUsed":"158850",
"traceId":"0_1",
"isError":"0",
"errCode":""
},
{
"blockNumber":"17964491",
"timeStamp":"1676016700",
"hash":"0x66f7a0016e6968c18a51324683377a8533f515948d30b1aef000389689fe5dff",
"from":"0xf8241f00de683651d99c0b61bc4dcde3cd7cce2c",
"to":"0xa9da429284b5ab6782e8d3a33eb709f060f6f62b",
"value":"0",
"contractAddress":"",
"input":"",
"type":"delegatecall",
"gas":"91514",
"gasUsed":"91514",
"traceId":"0_1",
"isError":"0",
"errCode":""
}
]
}
Get 'Internal Transactions' by Transaction Hash
Returns the list of internal transactions performed within a transaction.
Note : This API endpoint returns a maximum of 10000 records only.
https://api-testnet.wemixscan.com/api
?module=account
&action=txlistinternal
&txhash=0x719ee93366c0a519a7bfdba4a0985ff447a3f3d21914b26f83b6de3c82e340c5
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"36366039",
"timeStamp":"1694418035",
"from":"0xadb00f0e392f528e7f91d1e10ee8508da5a982c0",
"to":"0x244c72ab61f11dd44bfa4aaf11e2efd89ca789fe",
"value":"1000000000000000000",
"contractAddress":"",
"input":"",
"type":"call",
"gas":"274997",
"gasUsed":"30903",
"isError":"0",
"errCode":""
}
]
}
The isError
field returns 0
for successful transactions and 1
for rejected/cancelled transactions.
Get "Internal Transactions" by Block Range
Returns the list of internal transactions performed within a block range, with optional pagination.
https://api-testnet.wemixscan.com/api
?module=account
&action=txlistinternal
&startblock=36365039
&endblock=36366039
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"36365041",
"timeStamp":"1694417037",
"hash":"0x0dbdc042dd94ccc0f44b6ea6c91b260b3dad05b1bb411735319647c0c11ac210",
"from":"0x5c7aa62773eb087d1c2e0de6c5895765d6f2100e",
"to":"0x62c48aa93bb58250c60a03abce536fce1cbfb21f",
"value":"0",
"contractAddress":"",
"input":"",
"type":"delegatecall",
"gas":"29500778",
"gasUsed":"707486",
"traceId":"0_1",
"isError":"0",
"errCode":""
},
{
"blockNumber":"36365041",
"timeStamp":"1694417037",
"hash":"0x0dbdc042dd94ccc0f44b6ea6c91b260b3dad05b1bb411735319647c0c11ac210",
"from":"0x5c7aa62773eb087d1c2e0de6c5895765d6f2100e",
"to":"0x69da4d2b1305b8da2b48635fbf589ac126c8d547",
"value":"0",
"contractAddress":"",
"input":"",
"type":"staticcall",
"gas":"29034539",
"gasUsed":"9884",
"traceId":"0_1_1",
"isError":"0",
"errCode":""
}
]
}
The isError
field returns 0
for successful transactions and 1
for rejected/cancelled transactions.
Get a list of 'ERC20 - Token Transfer Events' by Address
Returns the list of ERC-20 tokens transferred by an address, with optional filtering by token contract.
https://api-testnet.wemixscan.com/api
?module=account
&action=tokentx
&contractaddress=0x244c72ab61f11dd44bfa4aaf11e2efd89ca789fe
&address=0x1c7df8d45c24ab23687b868731e5cc0aee7fe469
&page=1
&offset=100
&startblock=0
&endblock=99999999
&sort=asc
&apikey=YourApiKeyToken
Usage:
ERC-20 transfers from an address, specify the address
parameter
ERC-20 transfers from a contract address, specify the contract address
parameter
ERC-20 transfers from an address filtered by a token contract, specify both address
and contract address
parameters.
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"36098108",
"timeStamp":"1694150107",
"hash":"0x820b0d22a9a2b4787881706c4cf6cff9703f9ef8b3411e4d533e6ea636dc3168",
"nonce":"6761",
"blockHash":"0x0b83d4f63879bfb98897eb032bf85f9797e56354c4b8cc9b50cdb5eb092d7339",
"from":"0xadb00f0e392f528e7f91d1e10ee8508da5a982c0",
"contractAddress":"0x244c72ab61f11dd44bfa4aaf11e2efd89ca789fe",
"to":"0x1c7df8d45c24ab23687b868731e5cc0aee7fe469",
"value":"1000000000000000000000",
"tokenName":"Wrapped Wemix",
"tokenSymbol":"WWEMIX",
"tokenDecimal":"18",
"transactionIndex":"0",
"gas":"30000000",
"gasPrice":"110000000000",
"gasUsed":"830080",
"cumulativeGasUsed":"830080",
"input":"deprecated",
"confirmations":"268357"
},
{
"blockNumber":"36102072",
"timeStamp":"1694154071",
"hash":"0x273d5788d13c8b43c8d162317b28aea5e944a33a7ea38b4cdffcf001e58d09af",
"nonce":"9061",
"blockHash":"0xb332d25dcc93d0ff1f316311e5f123b8bc0b406d4c0de3f64ecda6fa89e981d4",
"from":"0xadb00f0e392f528e7f91d1e10ee8508da5a982c0",
"contractAddress":"0x244c72ab61f11dd44bfa4aaf11e2efd89ca789fe",
"to":"0x1c7df8d45c24ab23687b868731e5cc0aee7fe469",
"value":"999999999999999999999",
"tokenName":"Wrapped Wemix",
"tokenSymbol":"WWEMIX",
"tokenDecimal":"18",
"transactionIndex":"3",
"gas":"692849",
"gasPrice":"110000000000",
"gasUsed":"652242",
"cumulativeGasUsed":"887519",
"input":"deprecated",
"confirmations":"264393"
}
]
}
Get a list of 'ERC721 - Token Transfer Events' by Address
Returns the list of ERC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract
https://api-testnet.wemixscan.com/api
?module=account
&action=tokennfttx
&contractaddress=0x424ab48c8dcd4c89fd60d3ddf1f355d5c6954fd1
&address=0x35a148d4e97b55d97bda99d5275a444cd3fc187a
&page=1
&offset=100
&startblock=0
&endblock=99999999
&sort=asc
&apikey=YourApiKeyToken
Usage:
ERC-721 transfers from an address, specify the address
parameter
ERC-721 transfers from a contract address, specify the contract address
parameter
ERC-721 transfers from an address filtered by a token contract, specify both address
and contract address
parameters.
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"36276816",
"timeStamp":"1694328814",
"hash":"0xca59d75831503d1381ce58676eec4880c423e9eaa17c98b9b3fb23091f7fc6a7",
"nonce":"2337",
"blockHash":"0xe3fdba356c02afcab1db3b8d5a8e1bc1230fd4348c4ba16289e2b5d7606f9a46",
"from":"0x4d7ced66ef00ceb14e152824c2a435c612675f72",
"contractAddress":"0x424ab48c8dcd4c89fd60d3ddf1f355d5c6954fd1",
"to":"0x35a148d4e97b55d97bda99d5275a444cd3fc187a",
"tokenID":"199",
"tokenName":"Dragon Heart",
"tokenSymbol":"DragonHeart",
"tokenDecimal":"0",
"transactionIndex":"0",
"gas":"1016397",
"gasPrice":"100000000001",
"gasUsed":"621298",
"cumulativeGasUsed":"621298",
"input":"deprecated",
"confirmations":"89735"
},
{
"blockNumber":"36276881",
"timeStamp":"1694328878",
"hash":"0x032f8a36ee8a02d4e6cc7d51d86e1772eddfba508704c33c6055c1ea42146204",
"nonce":"22",
"blockHash":"0x2ef4870fd1a803100aad0af804d0d116e1e8d3b3d949dc9875cf1ae060da5605",
"from":"0x35a148d4e97b55d97bda99d5275a444cd3fc187a",
"contractAddress":"0x424ab48c8dcd4c89fd60d3ddf1f355d5c6954fd1",
"to":"0x4d7ced66ef00ceb14e152824c2a435c612675f72",
"tokenID":"199",
"tokenName":"Dragon Heart",
"tokenSymbol":"DragonHeart",
"tokenDecimal":"0",
"transactionIndex":"0",
"gas":"746506",
"gasPrice":"100000000001",
"gasUsed":"718834",
"cumulativeGasUsed":"718834",
"input":"deprecated",
"confirmations":"89670"
}
]
}
Get list of Blocks Mined by Address
Returns the list of blocks mined by an address.
https://api-testnet.wemixscan.com/api
?module=account
&action=getminedblocks
&address=0x41a0cc567d5c92a80dd25ae4ad813e90e648e001
&blocktype=blocks
&page=1
&offset=10
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"36386384",
"timeStamp":"1694438380",
"blockReward":"0"
},
{
"blockNumber":"36386357",
"timeStamp":"1694438353",
"blockReward":"0"
}
]
}