Get xDAI Balance for a Single Address
Returns the xDAI balance of a given address.
Copy https://api.gnosisscan.io/api
?module=account
&action=balance
&address=0x11799622F4D98A24514011E8527B969f7488eF47
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Request Response
Query Parameters
the string
representing the address to check for balance
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample response
Copy {
"status": "1",
"message": "OK",
"result": "819838745522324517"
}
Get xDAI Balance for Multiple Addresses in a Single Call
Returns the balance of the accounts from a list of addresses.
Copy https://api.gnosisscan.io/api
?module=account
&action=balancemulti
&address=0x7462da033c5cceB21691D2447af34f3E333E0b85,0xb2e2b1f036f31a9a97d3fc377a47581c813123aa,0x6ca4166eefd64b5f607f12fb0c3fbae233897757
&tag=latest
&apikey=YourApiKeyToken
Request Response
Query Parameters
the strings
representing the addresses to check for balance, separated by ,
up to 20 addresses per call
the integer
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
Copy {
"status":"1",
"message":"OK",
"result":[
{
"account":"0x7462da033c5cceB21691D2447af34f3E333E0b85",
"balance":"460010533098075840"
},
{
"account":"0xb2e2b1f036f31a9a97d3fc377a47581c813123aa",
"balance":"396515312403899380"
},
{
"account":"0x6ca4166eefd64b5f607f12fb0c3fbae233897757",
"balance":"26865078968855852179"
}
]
}
Get a list of 'Normal' Transactions By Address
Returns the list of transactions performed by an address, with optional pagination.
Copy https://api.gnosisscan.io/api
?module=account
&action=txlist
&address=0x52C83fbEc050509468Dc7CEF0a2fFd81e95c9F1B
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Request Response
Query Parameters
the string
representing the addresses to check for balance
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the sorting preference, use asc
to sort by ascending and desc
to sort by descendin Tip: Specify a smaller startblock
and endblock
range for faster search results.
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "19491901",
"timeStamp": "1639065800",
"hash": "0x4ecb830518d778fad82e65bb2556be0c9486e7e17fc2efbbbc6d078d799469d9",
"nonce": "821",
"blockHash": "0xb66e31c96b73de91512fb55453adadbf68d2001b89a271bc3bf7ae721ecf4540",
"transactionIndex": "41",
"from": "0x48afb64d55c79a2e711c14a2bf903a7c3842bacc",
"to": "0x52c83fbec050509468dc7cef0a2ffd81e95c9f1b",
"value": "100000000000000000",
"gas": "21000",
"gasPrice": "1220000011",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "10934127",
"gasUsed": "21000",
"confirmations": "5248489",
"methodId": "0x",
"functionName": ""
},
{
"blockNumber": "19527976",
"timeStamp": "1639248770",
"hash": "0xca8a07051f112e77383819f9162e0701c9e20421e96c35f72a741d2c55ba73e9",
"nonce": "0",
"blockHash": "0xff21a0ea97d08c4e6452349e1e4d74fb1339629480a6b0be8750aab140953345",
"transactionIndex": "11",
"from": "0x52c83fbec050509468dc7cef0a2ffd81e95c9f1b",
"to": "0x524b969793a64a602342d89bc2789d43a016b13a",
"value": "0",
"gas": "54036",
"gasPrice": "1219999999",
"isError": "0",
"txreceipt_status": "1",
"input": "0x095ea7b3000000000000000000000000f40e98033eb722cc6b4a64f7b37737d56ecb17efffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"contractAddress": "",
"cumulativeGasUsed": "1262269",
"gasUsed": "51411",
"confirmations": "5212414",
"methodId": "0x095ea7b3",
"functionName": "approve(address _spender, uint256 _value)"
}
]
}
Get a list of 'Internal' Transactions by Address
Returns the list of internal transactions performed by an address, with optional pagination.
Copy https://api.gnosisscan.io/api
?module=account
&action=txlistinternal
&address=0x3cc47c557e985cb8b52d1e263a1296fd2097121c
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Request Response
Query Parameters
the string
representing the addresses to check for balance
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "21338505",
"timeStamp": "1648446945",
"hash": "0xb43a2c2f3616719a5b5985b07727b5a99fb0ac56251140e23c41b0131877b1a8",
"from": "0x1c232f01118cb8b424793ae03f870aa7d0ac7f77",
"to": "0x3cc47c557e985cb8b52d1e263a1296fd2097121c",
"value": "83570466943593567304",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "17536",
"gasUsed": "0",
"traceId": "4",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "21868055",
"timeStamp": "1651142795",
"hash": "0x213be85ee7443a6add0ea5d2f6d3de112275912f050e6871ace2c47b83c1b3a6",
"from": "0x1c232f01118cb8b424793ae03f870aa7d0ac7f77",
"to": "0x3cc47c557e985cb8b52d1e263a1296fd2097121c",
"value": "107837093513427362979",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "17204",
"gasUsed": "0",
"traceId": "4",
"isError": "0",
"errCode": ""
}
]
}
Get 'Internal Transactions' by Transaction Hash
Returns the list of internal transactions performed within a transaction.
Copy https://api.gnosisscan.io/api
?module=account
&action=txlistinternal
&txhash=0x143a026d2a4719c0008f294d0f94ac007e7460435e5d5b14fbd7e6ad1a85a416
&apikey=YourApiKeyToken
Request Response
Query Parameters
the string
representing the transaction hash to check for internal transactions
Sample Response
Copy {
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"23435077",
"timeStamp":"1663339441",
"from":"0x388ade22cc03d8f75d23a625cc35f4aead0549e6",
"to":"0xacc066d74a3fd7fafd9149fc18f400c1d085614e",
"value":"109675151",
"contractAddress":"",
"input":"",
"type":"call",
"gas":"0",
"gasUsed":"0",
"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.
Copy https://api.gnosisscan.io/api
?module=account
&action=txlistinternal
&startblock=23434077
&endblock=23435077
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Request Response
Query Parameters
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "23434081",
"timeStamp": "1659174900",
"hash": "0xaef8431a5b7df155fafc0d0e27bebda56bf5786c0cf276e1f722eb002b0882a8",
"from": "0xcde24f566aea0ded222aa1b86b044948a1c5501c",
"to": "0x6fa0e9a561fc855735defb17b76d31a0ee8cca0b",
"value": "99000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "2300",
"gasUsed": "0",
"traceId": "0",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "23434164",
"timeStamp": "1659175315",
"hash": "0x0656f11949f3379acf5ff5c6cb54069d9c0299af9140852594feeaf40de036a2",
"from": "0x1111111254fb6c44bac0bed2854e76f90643097d",
"to": "0x4dfa40fdaa7694676899f8887a45603922609af4",
"value": "75000000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "278429",
"gasUsed": "207487",
"traceId": "0",
"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.
Copy https://api.gnosisscan.io/api
?module=account
&action=tokentx
&contractaddress=0x524B969793a64a602342d89BC2789D43a016B13A
&address=0x3cC47c557E985Cb8b52d1E263a1296fd2097121c
&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.
Request Response
Query Parameters
the string
representing the address to check for balance
the string
representing the token contract address to check for balance
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "20331617",
"timeStamp": "1643313335",
"hash": "0x12bd3a674aea6ffaf2f5a0d4f6614a4b429aadcb92d75cee31139bfad6c76829",
"nonce": "35",
"blockHash": "0xfeb05d7771c014c7d425a6e8cc4be24e274fb5a1c561bb54371de2d0bdb3da3b",
"from": "0xb26dbd3efdee329162c8b3b18bb7b5b11452ea7e",
"contractAddress": "0x524b969793a64a602342d89bc2789d43a016b13a",
"to": "0x3cc47c557e985cb8b52d1e263a1296fd2097121c",
"value": "650000000000000000000",
"tokenName": "Donut on xDai",
"tokenSymbol": "DONUT",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "62901",
"gasPrice": "10000000000",
"gasUsed": "60132",
"cumulativeGasUsed": "60132",
"input": "deprecated",
"confirmations": "4408848"
},
{
"blockNumber": "20331663",
"timeStamp": "1643313565",
"hash": "0x924f9e3d7e8bcbb5ad504ee73bb57732a9250c4b553d8f1318664de00b8b6015",
"nonce": "1",
"blockHash": "0xd28b8455a2f550ba3e524b3cb7817c5401bd52c25bfee1943a38bda8244951d9",
"from": "0x3cc47c557e985cb8b52d1e263a1296fd2097121c",
"contractAddress": "0x524b969793a64a602342d89bc2789d43a016b13a",
"to": "0xf7927bf0230c7b0e82376ac944aeedc3ea8dfa25",
"value": "1000000000000000000",
"tokenName": "Donut on xDai",
"tokenSymbol": "DONUT",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "57206",
"gasPrice": "10000000000",
"gasUsed": "53816",
"cumulativeGasUsed": "53816",
"input": "deprecated",
"confirmations": "4408802"
}
]
}
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.
Copy https://api.gnosisscan.io/api
?module=account
&action=tokennfttx
&contractaddress=0x22c1f6050e56d2876009903609a2cc3fef83b415
&address=0xf70c2bb5488ef12887b447d4da1dcd1e938c14d6
&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.
Request Response
Query Parameters
the string
representing the address to check for balance
the string
representing the token contract address to check for balance
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "22218210",
"timeStamp": "1652923060",
"hash": "0x41be182237594b481da1eac6dfe7684045b0258a330ea9355089489e98bfb200",
"nonce": "453756",
"blockHash": "0xa493b5183c60d665a8e512e548ae18e8ecf6e444b1fa323ddc784768fcf1d1e2",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x22c1f6050e56d2876009903609a2cc3fef83b415",
"to": "0xf70c2bb5488ef12887b447d4da1dcd1e938c14d6",
"tokenID": "4994178",
"tokenName": "POAP",
"tokenSymbol": "The Proof of Attendance Protocol",
"tokenDecimal": "0",
"transactionIndex": "2",
"gas": "258923",
"gasPrice": "15000000000",
"gasUsed": "206121",
"cumulativeGasUsed": "604051",
"input": "deprecated",
"confirmations": "2522286"
},
{
"blockNumber": "22218255",
"timeStamp": "1652923285",
"hash": "0x8c8d68450521432edb00e89b2be8588ef543e60ca8abfb60f02547f01214feec",
"nonce": "459643",
"blockHash": "0x320937834e33004c7325e862e260d51048bc36c3e2ebc2aaae183f84b537c5f0",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x22c1f6050e56d2876009903609a2cc3fef83b415",
"to": "0xf70c2bb5488ef12887b447d4da1dcd1e938c14d6",
"tokenID": "4994224",
"tokenName": "POAP",
"tokenSymbol": "The Proof of Attendance Protocol",
"tokenDecimal": "0",
"transactionIndex": "2",
"gas": "258923",
"gasPrice": "15000000000",
"gasUsed": "191821",
"cumulativeGasUsed": "575463",
"input": "deprecated",
"confirmations": "2522241"
}
]
}
Get a list of 'ERC1155 - Token Transfer Events' by Address
Returns the list of ERC-1155 ( Multi Token Standard ) tokens transferred by an address, with optional filtering by token contract.
Copy https://api.gnosisscan.io/api
?module=account
&action=token1155tx
&contractaddress=0x6910bfB617D85Dd1e6A8e89C67e33fE4999419BD
&address=0x50c87176bcd227ab083a6b4cf2038b0d5081ffe5
&page=1
&offset=100
&startblock=0
&endblock=latest
&sort=asc
&apikey=YourApiKeyToken
Usage:
ERC-1155 transfers from an address , specify the address
parameter
ERC-1155 transfers from a contract address , specify the contract address
parameter
ERC-1155 transfers from an address filtered by a token contract , specify both address
and contract address
parameters.
Request Response
Query Parameters
the string
representing the address to check for balance
the string
representing the token contract address to check for balance
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "17072313",
"timeStamp": "1626295790",
"hash": "0x5433adb7c23d39b06db858cf1fde7609f027e6b106c1b44364153d1442e26aa1",
"nonce": "42088",
"blockHash": "0x6542ac25115082a324fef87de28d9c71fcc34d02a5d879bd263e66b77771b369",
"transactionIndex": "2",
"gas": "1335896",
"gasPrice": "0",
"gasUsed": "582904",
"cumulativeGasUsed": "765743",
"input": "deprecated",
"contractAddress": "0x6910bfb617d85dd1e6a8e89c67e33fe4999419bd",
"from": "0x0000000000000000000000000000000000000000",
"to": "0x50c87176bcd227ab083a6b4cf2038b0d5081ffe5",
"tokenID": "1",
"tokenValue": "2",
"tokenName": "Try xDai from Rinkeby",
"tokenSymbol": "XDDD",
"confirmations": "13791983"
}
]
}
Get list of Blocks Validated by Address
Returns the list of blocks validated by an address.
Copy https://api.gnosisscan.io/api
?module=account
&action=getminedblocks
&address=0x334f12afb7d8740868be04719639616533075234
&blocktype=blocks
&page=1
&offset=10
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Request Response
Query Parameters
the string
representing the address to check for balance
the string
pre-defined block type, either blocks
for canonical blocks or uncles
for uncle blocks only
the integer
page number, if pagination is enabled
the number of transactions displayed per page
Sample Response
Copy {
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"3462296",
"timeStamp":"1491118514",
"blockReward":"5194770940000000000"
},
{
"blockNumber":"2691400",
"timeStamp":"1480072029",
"blockReward":"5086562212310617100"
},
{
"blockNumber":"2687700",
"timeStamp":"1480018852",
"blockReward":"5003251945421042780"
}
]
}