Account APIs
Get WEMIX Balance for a single address
URI
REQUEST PARAMETER
HEADER
BODY(application/json)
REQUEST SAMPLE
POST https://explorerapi.test.wemix.com/v1/accounts/balance
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
Content-Type: application/json
{
"addresses" : [
"0x76C6E4A0a2A141343c370D5d36276DA643B0c829",
"0xcD07A6d6A8DE7CdD3F5E1224eBC3540f70AEC52f"
]
}
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"data": [
{
"address": "0x76C6E4A0a2A141343c370D5d36276DA643B0c829",
"balance": "999999999989999999999589997401953799975191356000"
},
{
"address": "0xcD07A6d6A8DE7CdD3F5E1224eBC3540f70AEC52f",
"balance": "10000000000009000000000000000004"
}
]
}
}
Get list of transactions by address.
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.wemix.com/v1/accounts/0xBbAB376Fd9c3a0f5ef1D2114c8dd1512FD858ee2/transactions
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "23712",
"data": [
{
"timestamp": "2022-12-28T00:08:23Z",
"sender": "0xac4783dcf53c1fb67e152c300390d61ea8b3e1d3",
"receiver": "0x0898a80d55e4de9d398193d0f6aa788b9790e8d3",
"value": "0",
"confirmations": "6070555",
"transaction_hash": "0x56e18258a7fa25ca232402c708926bfb44a1cea4ead4d5803cadea0d8aaaa2b4",
"block_hash": "0x886565489899cb867f054a1ed301c190687776a265824065c055f799e69a570f",
"transaction_index": "0",
"tx_status": "0",
"block_number": "14133850",
"gas_price": "110000000000",
"cumulative_gas_used": "67884",
"gas_used": "67884",
"max_fee_per_gas": "110000000000",
"max_priority_fee_per_gas": "110000000000"
},
...
]
}
}
RESPONSE SAMPLE(Simple Transaction)
{
"status": "200",
"message": "success",
"results": {
"count": "23712",
"data": [
{
"sender": "0xac4783dcf53c1fb67e152c300390d61ea8b3e1d3",
"receiver": "0x0898a80d55e4de9d398193d0f6aa788b9790e8d3",
"transaction_hash": "0x56e18258a7fa25ca232402c708926bfb44a1cea4ead4d5803cadea0d8aaaa2b4",
"tx_status": "1",
"tx_fee": "7467240000000000",
"block_number": "14133850",
"gas_price": "110000000000",
"gas_used": "67884"
},
...
],
"to_block": "20204526"
}
}
Get "Internal Transactions" by address
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.wemix.com/v1/accounts/0xBEd789c6008F788a28fc222C83082D67033Daf7F/internal-transactions?input=true
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "2047",
"data": [
{
"timestamp": "2023-02-15T06:24:53Z",
"sender": "0xbed789c6008f788a28fc222c83082d67033daf7f",
"receiver": "0x53b690b826d611884d40f68252236d7c23d32d53",
"value": "0",
"status": "0",
"message": null,
"transaction_hash": "0x985512f6e0729d28ccdd568f6e9b7486b63aa0926cd4dbd9852b5899e9d27f7e",
"block_number": "10207545",
"contract_address": null,
"trace_address": [
"0",
"1"
],
"trace_type": "delegatecall",
"sub_traces": null,
"transaction_index": "0",
"gas_used": "43323",
"gas_limit": "81177",
"external_receiver": false
"input": "0xbac4f3380000000000000000000000007ad5ffaa39d3638fc775bb118d1092caa210fcbf"
]
}
}
Get a list of "ERC20 - Token Transfer Events" by address
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.test.wemix.com/v1/accounts/0x43dc58449beb06bf350e0181703c617f0bfa78bf/token-transfer/erc20
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "2",
"data": [
{
"timestamp": "2023-01-19T12:35:54Z",
"sender": "0x43dc58449beb06bf350e0181703c617f0bfa78bf",
"receiver": "0x05ceb79bf4cd7a24bbe6066d9e54c643b9cb1108",
"value": "0",
"confirmations": "4126491",
"block_number": "16079523",
"transaction_hash": "0x626c86c34db077d68131094d9768abf3cd03be3267d1a967e4352835ab09f73e",
"block_hash": "0x2795a79f72ddd47c729fefd36797713e4de3fc25b24e70357d59612abc5ac961",
"token_address": "0x01199b488fa05df702eee426b14d1cfdbd7b746d",
"token_name": null,
"token_symbol": null,
"token_decimals": null,
"transaction_index": "0"
},
{
"timestamp": "2023-01-18T14:40:32Z",
"sender": "0xd9a370dd275181b47e39d6e88625d44f2eb1a466",
"receiver": "0x43dc58449beb06bf350e0181703c617f0bfa78bf",
"value": "0",
"confirmations": "4205414",
"block_number": "16000600",
"transaction_hash": "0x5077a2519f8c8e6cf6bce16c6228068063b86fc54a771371d8d79a2d88267bde",
"block_hash": "0x23fda9b7bc8aabe59ccfd56a67d7660a927a576e65866c0fb8bdeff0cbd24909",
"token_address": "0x32637199e54e5b79990d84a0d2a161ec22ac1068",
"token_name": null,
"token_symbol": null,
"token_decimals": null,
"transaction_index": "0"
}
]
}
}
Get a list of "ERC721 - Token Transfer Events" by address
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.test.wemix.com/v1/accounts/0x43dc58449beb06bf350e0181703c617f0bfa78bf/token-transfer/erc721
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "3",
"data": [
{
"timestamp": "2023-01-12T05:40:28Z",
"sender": "0x0000000000000000000000000000000000000000",
"receiver": "0x43dc58449beb06bf350e0181703c617f0bfa78bf",
"confirmations": "18158317",
"block_number": "15449790",
"transaction_hash": "0x288e7082ed9eb284391566d6212e224d1a345d2a2a7471329959714334cca67a",
"block_hash": "0xebc8a7e50a4ac1d631e1a1bf8ec73944b87086be04c8e787274c469638a9a66c",
"token_address": "0xd05f171995fa2ce44f2bc765e120fed1430a538f",
"token_name": "MyNFT",
"token_symbol": "NFT",
"token_decimals": null,
"transaction_index": "0"
},
{
"timestamp": "2023-01-12T03:38:33Z",
"sender": "0x0000000000000000000000000000000000000000",
"receiver": "0x43dc58449beb06bf350e0181703c617f0bfa78bf",
"confirmations": "18165632",
"block_number": "15442475",
"transaction_hash": "0x3249ccb59cb5986941b4a84503ab29ae45995cc43278163ac5f6ea1301eca07f",
"block_hash": "0x4dfbc1eefee42cc5541543ecbfe40e9bc88ab17c3d839eefc62fff0bb8b85f1b",
"token_address": "0x3665731c515974eee182618c48bbdec847063627",
"token_name": "MyNFT",
"token_symbol": "NFT",
"token_decimals": null,
"transaction_index": "0"
},
{
"timestamp": "2023-01-12T03:16:14Z",
"sender": "0x0000000000000000000000000000000000000000",
"receiver": "0x43dc58449beb06bf350e0181703c617f0bfa78bf",
"confirmations": "18166971",
"block_number": "15441136",
"transaction_hash": "0x3f1585e992b5ba4bc4f60419faa25bbc3e2ea839e0b8484d17a87b32765f5a9b",
"block_hash": "0x0ecb317f27d0f14022215ebf75f763398aac6ef538182383f2389183e5a6344a",
"token_address": "0x3665731c515974eee182618c48bbdec847063627",
"token_name": "MyNFT",
"token_symbol": "NFT",
"token_decimals": null,
"transaction_index": "0"
}
]
}
}
Get ERC20/ERC721 Token List for a single address
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.test.wemix.com/v1/accounts/0xB20d32637296190A4A492dddB4Af2b0f03Df24F1/tokens
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"erc_20": {
"count": "1",
"results": [
{
"balance": "4098808369498578418",
"token_address": "0x4af286b2bf66ae46da121ffeb46c2a3bbe05dd97",
"token_symbol": "TIPO",
"token_name": "TIPOToken",
"holder_address": "0xb20d32637296190a4a492dddb4af2b0f03df24f1",
"holder_type": "0",
"token_decimals": "18"
}
]
},
"erc_721": {
"count": "1",
"results": [
{
"balance": "1",
"token_address": "0x62E1Ad2A3A9AB55bA20Bc4EB27Fca655C41fDD88",
"holder_address": "0xb20d32637296190a4a492dddb4af2b0f03df24f1"
}
]
}
}
Get ERC20 Token List for a single address
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
https://explorerapi.test.wemix.com/v1/accounts/0x52d68c69b088dbc87e5e4f48e6f4df31f018685e/tokens/erc20
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "68",
"data": [
{
"token_address": "0x3ebda066925bbc790fe198f47ef650ddb764ecfe",
"token_name": "cWEMIX",
"token_symbol": "cWEMIX"
},
...
]
}
}
Get ERC721 Token List for a single address
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.test.wemix.com/v1/accounts/0xB20d32637296190A4A492dddB4Af2b0f03Df24F1/tokens/erc721
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "1",
"data": [
{
"token_address": "0x62e1ad2a3a9ab55ba20bc4eb27fca655c41fdd88",
"token_name": "Tangled",
"token_symbol": "TTPS"
}
]
}
}
Get ERC721 Token Inventory of a specific ERC721 contract
URI
REQUEST PARAMETER
HEADER
PATH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.test.wemix.com/v1/accounts/0xe3929888ddd76cefa78ac586a7749c7f5a86a143/tokens/inventory
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "264",
"data": [
{
"contract_address": "0x5f240d896ef64a6a13ec6cd8e530f465943ae354",
"token_id": "39",
"token_uri": "https://nile.blob.core.windows.net/metadata/LUS/39.json",
"token_name": "Sample",
"token_symbol": "SAMPLE"
}
...
]
}
}
Get list of Blocks Mined by address
URI
REQUEST PARAMETER
HEADER
PARH VARIABLE
QUERY STRING
REQUEST SAMPLE
GET https://explorerapi.test.wemix.com/v1/accounts/0xf04f49b134996023e980022502581c7278f3191a/mined-blocks
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
RESPONSE PARAMETER
RESPONSE SAMPLE
{
"status": "200",
"message": "success",
"results": {
"count": "1295039",
"data": [
{
"timestamp": "2023-08-10T09:50:47Z",
"miner": "0xf04f49b134996023e980022502581c7278f3191a",
"reward": "1000000000000000000",
"fees": "0",
"block_number": "33609019",
"gas_used": "0",
"gas_limit": "105000000",
"transaction_count": "0",
"mining_reward": "1000000000000000000"
},
...
]
}
}