Accounts
Endpoints with
are under the API Pro subscription. To upgrade your API plan, browse through the Etherscan APIs page.

Get Ether Balance for a Single Address

Returns the Ether balance of a given address.
1
https://api.etherscan.io/api
2
?module=account
3
&action=balance
4
&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae
5
&tag=latest
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to check for balance
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":"40891626854930000000000"
5
}
Copied!
​
πŸ“–
Tip: The result is returned in wei.​
Convert Ethereum units using our Unit Converter. ​

Get Ether Balance for Multiple Addresses in a Single Call

Returns the balance of the accounts from a list of addresses.
1
https://api.etherscan.io/api
2
?module=account
3
&action=balancemulti
4
&address=0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a,0x63a9975ba31b0b9626b34300f7f627147df1f526,0x198ef1ec325a96cc354c7266a038be8b5c558f67
5
&tag=latest
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the strings representing the addresses to check for balance, separated by , commas
tag
the integer pre-defined block parameter, either earliest, pending or latest
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"account":"0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
7
"balance":"40891626854930000000000"
8
},
9
{
10
"account":"0x63a9975ba31b0b9626b34300f7f627147df1f526",
11
"balance":"332567136222827062478"
12
},
13
{
14
"account":"0x198ef1ec325a96cc354c7266a038be8b5c558f67",
15
"balance":"0"
16
}
17
]
18
}
Copied!
πŸ“– Tip: The result is returned in wei.​
Convert Ethereum units using our Unit Converter. ​

Get a list of 'Normal' Transactions By Address

Returns the list of transactions performed by an address, with optional pagination.
​​ ​
πŸ“
Note : This API endpoint returns a maximum of 10000 records only.
1
https://api.etherscan.io/api
2
?module=account
3
&action=txlist
4
&address=0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a
5
&startblock=0
6
&endblock=99999999
7
&page=1
8
&offset=10
9
&sort=asc
10
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the addresses to check for balance
startblock
the integer block number to start searching for transactions
endblock
the integer block number to stop searching for transactions
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page
sort
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
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"blockNumber":"0",
7
"timeStamp":"1438269973",
8
"hash":"GENESIS_ddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
9
"nonce":"",
10
"blockHash":"",
11
"transactionIndex":"0",
12
"from":"GENESIS",
13
"to":"0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
14
"value":"10000000000000000000000",
15
"gas":"0",
16
"gasPrice":"0",
17
"isError":"0",
18
"txreceipt_status":"",
19
"input":"",
20
"contractAddress":"",
21
"cumulativeGasUsed":"0",
22
"gasUsed":"0",
23
"confirmations":"12698061"
24
},
25
{
26
"blockNumber":"47884",
27
"timeStamp":"1438947953",
28
"hash":"0xad1c27dd8d0329dbc400021d7477b34ac41e84365bd54b45a4019a15deb10c0d",
29
"nonce":"0",
30
"blockHash":"0xf2988b9870e092f2898662ccdbc06e0e320a08139e9c6be98d0ce372f8611f22",
31
"transactionIndex":"0",
32
"from":"0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
33
"to":"0x2910543af39aba0cd09dbb2d50200b3e800a63d2",
34
"value":"5000000000000000000",
35
"gas":"23000",
36
"gasPrice":"400000000000",
37
"isError":"0",
38
"txreceipt_status":"",
39
"input":"0x454e34354139455138",
40
"contractAddress":"",
41
"cumulativeGasUsed":"21612",
42
"gasUsed":"21612",
43
"confirmations":"12650177"
44
}
45
]
46
}
Copied!

Get a list of 'Internal' Transactions by Address

Returns the list of internal transactions performed by an address, with optional pagination.
​
πŸ“
Note : This API endpoint returns a maximum of 10000 records only.
1
https://api.etherscan.io/api
2
?module=account
3
&action=txlistinternal
4
&address=0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3
5
&startblock=0
6
&endblock=2702578
7
&page=1
8
&offset=10
9
&sort=asc
10
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the addresses to check for balance
startblock
the integer block number to start searching for transactions
endblock
the integer block number to stop searching for transactions
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
​
πŸ’‘
Tip: Specify a smaller startblock and endblock range for faster search results
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"blockNumber":"2535368",
7
"timeStamp":"1477837690",
8
"hash":"0x8a1a9989bda84f80143181a68bc137ecefa64d0d4ebde45dd94fc0cf49e70cb6",
9
"from":"0x20d42f2e99a421147acf198d775395cac2e8b03d",
10
"to":"",
11
"value":"0",
12
"contractAddress":"0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
13
"input":"",
14
"type":"create",
15
"gas":"254791",
16
"gasUsed":"46750",
17
"traceId":"0",
18
"isError":"0",
19
"errCode":""
20
},
21
{
22
"blockNumber":"2535479",
23
"timeStamp":"1477839134",
24
"hash":"0x1a50f1dc0bc912745f7d09b988669f71d199719e2fb7592c2074ede9578032d0",
25
"from":"0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
26
"to":"0x20d42f2e99a421147acf198d775395cac2e8b03d",
27
"value":"100000000000000000",
28
"contractAddress":"",
29
"input":"",
30
"type":"call",
31
"gas":"235231",
32
"gasUsed":"0",
33
"traceId":"0",
34
"isError":"0",
35
"errCode":""
36
}
37
]
38
}
Copied!

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.
1
https://api.etherscan.io/api
2
?module=account
3
&action=txlistinternal
4
&txhash=0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
txhash
the string representing the transaction hash to check for internal transactions
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"blockNumber":"1743059",
7
"timeStamp":"1466489498",
8
"from":"0x2cac6e4b11d6b58f6d3c1c9d5fe8faa89f60e5a2",
9
"to":"0x66a1c3eaf0f1ffc28d209c0763ed0ca614f3b002",
10
"value":"7106740000000000",
11
"contractAddress":"",
12
"input":"",
13
"type":"call",
14
"gas":"2300",
15
"gasUsed":"0",
16
"isError":"0",
17
"errCode":""
18
}
19
]
20
}
Copied!
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.
​​
πŸ“
Note : This API endpoint returns a maximum of 10000 records only.
1
https://api.etherscan.io/api
2
?module=account
3
&action=txlistinternal
4
&startblock=0
5
&endblock=2702578
6
&page=1
7
&offset=10
8
&sort=asc
9
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
startblock
the integer block number to start searching for transactions
endblock
the integer block number to stop searching for transactions
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"blockNumber":"50107",
7
"timeStamp":"1438984016",
8
"hash":"0x3f97c969ddf71f515ce5373b1f8e76e9fd7016611d8ce455881009414301789e",
9
"from":"0x109c4f2ccc82c4d77bde15f306707320294aea3f",
10
"to":"0x881b0a4e9c55d08e31d8d3c022144d75a454211c",
11
"value":"1000000000000000000",
12
"contractAddress":"",
13
"input":"",
14
"type":"call",
15
"gas":"2300",
16
"gasUsed":"0",
17
"traceId":"0",
18
"isError":"1",
19
"errCode":""
20
},
21
{
22
"blockNumber":"50111",
23
"timeStamp":"1438984075",
24
"hash":"0x893c428fed019404f704cf4d9be977ed9ca01050ed93dccdd6c169422155586f",
25
"from":"0x109c4f2ccc82c4d77bde15f306707320294aea3f",
26
"to":"0x881b0a4e9c55d08e31d8d3c022144d75a454211c",
27
"value":"1000000000000000000",
28
"contractAddress":"",
29
"input":"",
30
"type":"call",
31
"gas":"2300",
32
"gasUsed":"0",
33
"traceId":"0",
34
"isError":"0",
35
"errCode":""
36
}
37
]
38
}
Copied!
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.
1
https://api.etherscan.io/api
2
?module=account
3
&action=tokentx
4
&contractaddress=0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2
5
&address=0x4e83362442b8d1bec281594cea3050c8eb01311c
6
&page=1
7
&offset=100
8
&startblock=0
9
&endblock=27025780
10
&sort=asc
11
&apikey=YourApiKeyToken
Copied!
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.
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to check for balance
contractaddress
the string representing the token contract address to check for balance
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page
startblock
the integer block number to start searching for transactions
endblock
the integer block number to stop searching for transactions
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"blockNumber":"4730207",
7
"timeStamp":"1513240363",
8
"hash":"0xe8c208398bd5ae8e4c237658580db56a2a94dfa0ca382c99b776fa6e7d31d5b4",
9
"nonce":"406",
10
"blockHash":"0x022c5e6a3d2487a8ccf8946a2ffb74938bf8e5c8a3f6d91b41c56378a96b5c37",
11
"from":"0x642ae78fafbb8032da552d619ad43f1d81e4dd7c",
12
"contractAddress":"0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
13
"to":"0x4e83362442b8d1bec281594cea3050c8eb01311c",
14
"value":"5901522149285533025181",
15
"tokenName":"Maker",
16
"tokenSymbol":"MKR",
17
"tokenDecimal":"18",
18
"transactionIndex":"81",
19
"gas":"940000",
20
"gasPrice":"32010000000",
21
"gasUsed":"77759",
22
"cumulativeGasUsed":"2523379",
23
"input":"deprecated",
24
"confirmations":"7968350"
25
},
26
{
27
"blockNumber":"4764973",
28
"timeStamp":"1513764636",
29
"hash":"0x9c82e89b7f6a4405d11c361adb6d808d27bcd9db3b04b3fb3bc05d182bbc5d6f",
30
"nonce":"428",
31
"blockHash":"0x87a4d04a6d8fce7a149e9dc528b88dc0c781a87456910c42984bdc15930a2cac",
32
"from":"0x4e83362442b8d1bec281594cea3050c8eb01311c",
33
"contractAddress":"0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
34
"to":"0x69076e44a9c70a67d5b79d95795aba299083c275",
35
"value":"132520488141080",
36
"tokenName":"Maker",
37
"tokenSymbol":"MKR",
38
"tokenDecimal":"18",
39
"transactionIndex":"167",
40
"gas":"940000",
41
"gasPrice":"35828000000",
42
"gasUsed":"127593",
43
"cumulativeGasUsed":"6315818",
44
"input":"deprecated",
45
"confirmations":"7933584"
46
}
47
]
48
}
Copied!

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.
1
https://api.etherscan.io/api
2
?module=account
3
&action=tokennfttx
4
&contractaddress=0x06012c8cf97bead5deae237070f9587f8e7a266d
5
&address=0x6975be450864c02b4613023c2152ee0743572325
6
&page=1
7
&offset=100
8
&startblock=0
9
&endblock=27025780
10
&sort=asc
11
&apikey=YourApiKeyToken
Copied!
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.
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to check for balance
contractaddress
the string representing the token contract address to check for balance
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page
startblock
the integer block number to start searching for transactions
endblock
the integer block number to stop searching for transactions
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"blockNumber":"4708120",
7
"timeStamp":"1512907118",
8
"hash":"0x031e6968a8de362e4328d60dcc7f72f0d6fc84284c452f63176632177146de66",
9
"nonce":"0",
10
"blockHash":"0x4be19c278bfaead5cb0bc9476fa632e2447f6e6259e0303af210302d22779a24",
11
"from":"0xb1690c08e213a35ed9bab7b318de14420fb57d8c",
12
"contractAddress":"0x06012c8cf97bead5deae237070f9587f8e7a266d",
13
"to":"0x6975be450864c02b4613023c2152ee0743572325",
14
"tokenID":"202106",
15
"tokenName":"CryptoKitties",
16
"tokenSymbol":"CK",
17
"tokenDecimal":"0",
18
"transactionIndex":"81",
19
"gas":"158820",
20
"gasPrice":"40000000000",
21
"gasUsed":"60508",
22
"cumulativeGasUsed":"4880352",
23
"input":"deprecated",
24
"confirmations":"7990490"
25
},
26
{
27
"blockNumber":"4708161",
28
"timeStamp":"1512907756",
29
"hash":"0x9626e7064b68b5463cf677e10815a0b394645a0bfa245f26a2de6074324e83ff",
30
"nonce":"1",
31
"blockHash":"0xe1c6cbc39a723496f4cbc3e70241012854f2e88b4d2d5f339d8f0a4a1cc406d8",
32
"from":"0xb1690c08e213a35ed9bab7b318de14420fb57d8c",
33
"contractAddress":"0x06012c8cf97bead5deae237070f9587f8e7a266d",
34
"to":"0x6975be450864c02b4613023c2152ee0743572325",
35
"tokenID":"147739",
36
"tokenName":"CryptoKitties",
37
"tokenSymbol":"CK",
38
"tokenDecimal":"0",
39
"transactionIndex":"41",
40
"gas":"135963",
41
"gasPrice":"40000000000",
42
"gasUsed":"45508",
43
"cumulativeGasUsed":"3359342",
44
"input":"deprecated",
45
"confirmations":"7990449"
46
}
47
]
48
}
Copied!

Get list of Blocks Mined by Address

Returns the list of blocks mined by an address.
1
https://api.etherscan.io/api
2
?module=account
3
&action=getminedblocks
4
&address=0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b
5
&blocktype=blocks
6
&page=1
7
&offset=10
8
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to check for balance
blocktype
the string pre-defined block type, either blocks for canonical blocks or uncles for uncle blocks only
page
the integer page number, if pagination is enabled
offset
the number of transactions displayed per page
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"blockNumber":"3462296",
7
"timeStamp":"1491118514",
8
"blockReward":"5194770940000000000"
9
},
10
{
11
"blockNumber":"2691400",
12
"timeStamp":"1480072029",
13
"blockReward":"5086562212310617100"
14
},
15
{
16
"blockNumber":"2687700",
17
"timeStamp":"1480018852",
18
"blockReward":"5003251945421042780"
19
}
20
]
21
}
Copied!
​
⏳
Note : The timeStamp is represented in Unix timestamp. ****

Get Historical Ether Balance for a Single Address By BlockNo
​

Returns the balance of an address at a certain block height.
​
πŸ“
Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.
1
https://api.etherscan.io/api
2
?module=account
3
&action=balancehistory
4
&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae
5
&blockno=8000000
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
address
the string representing the address to check for balance
blockno
the integer block number to check balance for eg. 12697906​
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":"610538078574759898951277"
5
}
Copied!
​
πŸ“–
Tip: The result field is denoted in wei.
Last modified 7d ago