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

Get BNB Balance for a Single Address

Returns the BNB balance of a given address.
1
https://api.bscscan.com/api
2
?module=account
3
&action=balance
4
&address=0x70F657164e5b75689b64B7fd1fA275F334f28e18
5
&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":"154476596514118000947297331"
5
}
Copied!
​
πŸ“–
Tip: The result is returned in wei. ​
Convert BNB units using our Unit Converter.

Get BNB Balance for Multiple Addresses in a Single Call

Returns the balance of the accounts from a list of addresses.
1
https://api.bscscan.com/api
2
?module=account
3
&action=balancemulti
4
&address=0x3f349bBaFEc1551819B8be1EfEA2fC46cA749aA1,0x4bF01a5A576bE1254C5E19fbE5EB195D6cFBeBdD,0x70F657164e5b75689b64B7fd1fA275F334f28e18
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 up to 20 addresses per call
tag
the string pre-defined block parameter, either earliest, pending or latest
Sample Response
1
{
2
"status":"1",
3
"message":"OK-Missing/Invalid API Key, rate limit of 1/5sec applied",
4
"result":[
5
{
6
"account":"0x3f349bBaFEc1551819B8be1EfEA2fC46cA749aA1",
7
"balance":"37700000000000001"
8
},
9
{
10
"account":"0x4bF01a5A576bE1254C5E19fbE5EB195D6cFBeBdD",
11
"balance":"4999777740000000000"
12
},
13
{
14
"account":"0x70F657164e5b75689b64B7fd1fA275F334f28e18",
15
"balance":"57443177693229716"
16
}
17
]
18
}
Copied!
​
πŸ“–
Tip: The result is returned in wei. ​
Convert BNB units using our Unit Converter. ​

Get Historical BNB Balance for a Single Address by BlockNo

Returns the historical BNB 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.bscscan.com/api
2
?module=account
3
&action=balancehistory
4
&address=0x0DB011018728D1B91dDB3C77933a40B9B68C9fa7
5
&blockno=2000000
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
blockno
the integer block number to check balance for eg. 2000000
Sample Response
1
{
2
"status":"1",
3
"message":"OK-Missing/Invalid API Key, rate limit of 1/5sec applied",
4
"result":[
5
{
6
"account":"0x3f349bBaFEc1551819B8be1EfEA2fC46cA749aA1",
7
"balance":"37700000000000001"
8
},
9
{
10
"account":"0x4bF01a5A576bE1254C5E19fbE5EB195D6cFBeBdD",
11
"balance":"4999777740000000000"
12
},
13
{
14
"account":"0x70F657164e5b75689b64B7fd1fA275F334f28e18",
15
"balance":"57443177693229716"
16
}
17
]
18
}
Copied!
​
πŸ“–
Tip: The result is returned in wei. ​
Convert BNB 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.bscscan.com/api
2
?module=account
3
&action=txlist
4
&address=0xF426a8d0A94bf039A35CEE66dBf0227A7a12D11e
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 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":"10475175",
7
"timeStamp":"1630314219",
8
"hash":"0x9c12ea64ffe659114e1404509ae82d52ca8b785851ef99405d31a6b65fb4d0a2",
9
"nonce":"851069",
10
"blockHash":"0x52754e796549fe9ab7a4550e0f7d8286fdc8efcac185aad7e7c63ff7c0fb1e5a",
11
"transactionIndex":"22",
12
"from":"0x161ba15a5f335c9f06bb5bbb0a9ce14076fbb645",
13
"to":"0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
14
"value":"90541060000000000",
15
"gas":"207128",
16
"gasPrice":"10000000000",
17
"isError":"0",
18
"txreceipt_status":"1",
19
"input":"0x",
20
"contractAddress":"",
21
"cumulativeGasUsed":"894108",
22
"gasUsed":"21000",
23
"confirmations":"2362"
24
},
25
{
26
"blockNumber":"10477535",
27
"timeStamp":"1630321300",
28
"hash":"0xf95f98ec21315ce7b397be1911719c9b3ab0e9386a34103e052ab36e41e9dc3f",
29
"nonce":"3",
30
"blockHash":"0xaa8e7de4eaced07d438438dfab90c84fea2e270f50a71418a89c87852d2b2a2a",
31
"transactionIndex":"253",
32
"from":"0xf426a8d0a94bf039a35cee66dbf0227a7a12d11e",
33
"to":"0x10ed43c718714eb63d5aa57b78b54704e256024e",
34
"value":"0",
35
"gas":"254285",
36
"gasPrice":"5000000000",
37
"isError":"0",
38
"txreceipt_status":"1",
39
"input":"0x38ed173900000000000000000000000000000000000000000000000805e99fdcc5d000000000000000000000000000000000000000000000000000976181709dbde2904900000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f426a8d0a94bf039a35cee66dbf0227a7a12d11e00000000000000000000000000000000000000000000000000000000612e1ec5000000000000000000000000000000000000000000000000000000000000000300000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c0000000000000000000000002d5c9167fdd5c068c8fcb8992e6af639b42fbf70",
40
"contractAddress":"",
41
"cumulativeGasUsed":"45034490",
42
"gasUsed":"199442",
43
"confirmations":"2"
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.bscscan.com/api
2
?module=account
3
&action=txlistinternal
4
&address=0x0000000000000000000000000000000000001004
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":"958",
7
"timeStamp":"1598674477",
8
"hash":"0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028",
9
"from":"0x0000000000000000000000000000000000001004",
10
"to":"0x4e656459ed25bf986eea1196bc1b00665401645d",
11
"value":"100000000000000",
12
"contractAddress":"",
13
"input":"",
14
"type":"call",
15
"gas":"12300",
16
"gasUsed":"0",
17
"traceId":"0_1_1",
18
"isError":"0",
19
"errCode":""
20
},
21
{
22
"blockNumber":"5561",
23
"timeStamp":"1598688463",
24
"hash":"0x329148b72b4bde1fb77fb3d27bca0e451f2879e5dfd7bb7027dbd9eb7bbf067b",
25
"from":"0x0000000000000000000000000000000000001004",
26
"to":"0x0000000000000000000000000000000000001005",
27
"value":"1000000000000000",
28
"contractAddress":"",
29
"input":"",
30
"type":"call",
31
"gas":"2300",
32
"gasUsed":"55",
33
"traceId":"0_1_1_1",
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.bscscan.com/api
2
?module=account
3
&action=txlistinternal
4
&txhash=0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028
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-Missing/Invalid API Key, rate limit of 1/5sec applied",
4
"result":[
5
{
6
"blockNumber":"958",
7
"timeStamp":"1598674477",
8
"from":"0x0000000000000000000000000000000000001004",
9
"to":"0x4e656459ed25bf986eea1196bc1b00665401645d",
10
"value":"100000000000000",
11
"contractAddress":"",
12
"input":"",
13
"type":"call",
14
"gas":"12300",
15
"gasUsed":"0",
16
"isError":"0",
17
"errCode":""
18
},
19
{
20
"blockNumber":"958",
21
"timeStamp":"1598674477",
22
"from":"0x0000000000000000000000000000000000001004",
23
"to":"0x0000000000000000000000000000000000001005",
24
"value":"1000000000000000",
25
"contractAddress":"",
26
"input":"",
27
"type":"call",
28
"gas":"2300",
29
"gasUsed":"55",
30
"isError":"0",
31
"errCode":""
32
}
33
]
34
}
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.bscscan.com/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":"958",
7
"timeStamp":"1598674477",
8
"hash":"0x4d74a6fc84d57f18b8e1dfa07ee517c4feb296d16a8353ee41adc03669982028",
9
"from":"0x0000000000000000000000000000000000001004",
10
"to":"0x4e656459ed25bf986eea1196bc1b00665401645d",
11
"value":"100000000000000",
12
"contractAddress":"",
13
"input":"",
14
"type":"call",
15
"gas":"12300",
16
"gasUsed":"0",
17
"traceId":"0_1_1",
18
"isError":"0",
19
"errCode":""
20
},
21
{
22
"blockNumber":"5561",
23
"timeStamp":"1598688463",
24
"hash":"0x329148b72b4bde1fb77fb3d27bca0e451f2879e5dfd7bb7027dbd9eb7bbf067b",
25
"from":"0x0000000000000000000000000000000000001004",
26
"to":"0x0000000000000000000000000000000000001005",
27
"value":"1000000000000000",
28
"contractAddress":"",
29
"input":"",
30
"type":"call",
31
"gas":"2300",
32
"gasUsed":"55",
33
"traceId":"0_1_1_1",
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 'BEP-20 Token Transfer Events' by Address

Returns the list of BEP-20 tokens transferred by an address, with optional filtering by token contract.
1
https://api.bscscan.com/api
2
?module=account
3
&action=tokentx
4
&contractaddress=0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51
5
&address=0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a
6
&page=1
7
&offset=5
8
&startblock=0
9
&endblock=999999999
10
&sort=asc
11
&apikey=YourApiKeyToken
Copied!
Usage:
  • BEP-20 transfers from an address, specify the address parameter
  • BEP-20 transfers from a contract address, specify the contract address parameter
  • BEP-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":"2304192",
7
"timeStamp":"1605585978",
8
"hash":"0x7a5abf86c82d3f97a40dd841a9f2089fbe3ac1332157c01bd1a1d89f575c45fc",
9
"nonce":"57",
10
"blockHash":"0x703438fd8ba435996895a6b9b711934cc590c3e9297a7066419aa88dd9d83acc",
11
"from":"0x641414e2a04c8f8ebbf49ed47cc87dccba42bf07",
12
"contractAddress":"0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
13
"to":"0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
14
"value":"27605634758857128698365",
15
"tokenName":"Bunny Token",
16
"tokenSymbol":"BUNNY",
17
"tokenDecimal":"18",
18
"transactionIndex":"2",
19
"gas":"5000000",
20
"gasPrice":"20000000000",
21
"gasUsed":"2312130",
22
"cumulativeGasUsed":"2475576",
23
"input":"deprecated",
24
"confirmations":"8172919"
25
},
26
{
27
"blockNumber":"2304275",
28
"timeStamp":"1605586227",
29
"hash":"0x2712bc982d2486ed87e48965d87b8087695472dcd394a4e31fd182e3e8fb0193",
30
"nonce":"830",
31
"blockHash":"0x1715a97b8333aa91cd495dc19a495402683256f85faf13f4545b629844920faa",
32
"from":"0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
33
"contractAddress":"0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
34
"to":"0xfb2b1ff4a80af6d4f2798e34426e7766626d8f88",
35
"value":"500000000000000000",
36
"tokenName":"Bunny Token",
37
"tokenSymbol":"BUNNY",
38
"tokenDecimal":"18",
39
"transactionIndex":"0",
40
"gas":"208132",
41
"gasPrice":"20000000000",
42
"gasUsed":"163927",
43
"cumulativeGasUsed":"163927",
44
"input":"deprecated",
45
"confirmations":"8172836"
46
},
47
{
48
"blockNumber":"2304303",
49
"timeStamp":"1605586311",
50
"hash":"0xc9c999d7573fbcf70429b4c0d8ce01ef996a92f0c23bc07ac0adfb5cd9559bb0",
51
"nonce":"66",
52
"blockHash":"0x10b242b417becafd5d7dbdba3ed6377134870147de476c3ac4d9b33190b228c8",
53
"from":"0xe87f02606911223c2cf200398ffaf353f60801f7",
54
"contractAddress":"0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51",
55
"to":"0x7bb89460599dbf32ee3aa50798bbceae2a5f7f6a",
56
"value":"27596643935905551037808",
57
"tokenName":"Bunny Token",
58
"tokenSymbol":"BUNNY",
59
"tokenDecimal":"18",
60
"transactionIndex":"3",
61
"gas":"5000000",
62
"gasPrice":"20000000000",
63
"gasUsed":"200227",
64
"cumulativeGasUsed":"527144",
65
"input":"deprecated",
66
"confirmations":"8172808"
67
}
68
]
69
}
Copied!

Get a list of 'BEP-721 Token Transfer Events' by Address

Returns the list of BEP-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.
1
https://api.bscscan.com/api
2
?module=account
3
&action=tokennfttx
4
&contractaddress=0x5e74094cd416f55179dbd0e45b1a8ed030e396a1
5
&address=0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c
6
&page=1
7
&offset=100
8
&startblock=0
9
&endblock=999999999
10
&sort=asc
11
&apikey=YourApiKeyToken
Copied!
Usage:
  • BEP-721 transfers from an address, specify the address parameter
  • BEP-721 transfers from a contract address, specify the contract address parameter
  • BEP-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":"2657100",
7
"timeStamp":"1606646313",
8
"hash":"0x43485c443c235156777148dddcc1483a1c8f46cccf5ab185cfc4bd678f247b6b",
9
"nonce":"6",
10
"blockHash":"0x20b6e2e67e74badc19b225a0aa4febe2382569c99842e32bc9d5dc94631a349d",
11
"from":"0x0000000000000000000000000000000000000000",
12
"contractAddress":"0x5e74094cd416f55179dbd0e45b1a8ed030e396a1",
13
"to":"0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c",
14
"tokenID":"384552",
15
"tokenName":"Pancake Lottery Ticket",
16
"tokenSymbol":"PLT",
17
"tokenDecimal":"0",
18
"transactionIndex":"2",
19
"gas":"27000000",
20
"gasPrice":"20000000000",
21
"gasUsed":"22547256",
22
"cumulativeGasUsed":"22947060",
23
"input":"deprecated",
24
"confirmations":"7819973"
25
},
26
{
27
"blockNumber":"2657100",
28
"timeStamp":"1606646313",
29
"hash":"0x43485c443c235156777148dddcc1483a1c8f46cccf5ab185cfc4bd678f247b6b",
30
"nonce":"6",
31
"blockHash":"0x20b6e2e67e74badc19b225a0aa4febe2382569c99842e32bc9d5dc94631a349d",
32
"from":"0x0000000000000000000000000000000000000000",
33
"contractAddress":"0x5e74094cd416f55179dbd0e45b1a8ed030e396a1",
34
"to":"0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c",
35
"tokenID":"384553",
36
"tokenName":"Pancake Lottery Ticket",
37
"tokenSymbol":"PLT",
38
"tokenDecimal":"0",
39
"transactionIndex":"2",
40
"gas":"27000000",
41
"gasPrice":"20000000000",
42
"gasUsed":"22547256",
43
"cumulativeGasUsed":"22947060",
44
"input":"deprecated",
45
"confirmations":"7819973"
46
},
47
{
48
"blockNumber":"2657100",
49
"timeStamp":"1606646313",
50
"hash":"0x43485c443c235156777148dddcc1483a1c8f46cccf5ab185cfc4bd678f247b6b",
51
"nonce":"6",
52
"blockHash":"0x20b6e2e67e74badc19b225a0aa4febe2382569c99842e32bc9d5dc94631a349d",
53
"from":"0x0000000000000000000000000000000000000000",
54
"contractAddress":"0x5e74094cd416f55179dbd0e45b1a8ed030e396a1",
55
"to":"0xcd4ee0a77e09afa8d5a6518f7cf8539bef684e6c",
56
"tokenID":"384556",
57
"tokenName":"Pancake Lottery Ticket",
58
"tokenSymbol":"PLT",
59
"tokenDecimal":"0",
60
"transactionIndex":"2",
61
"gas":"27000000",
62
"gasPrice":"20000000000",
63
"gasUsed":"22547256",
64
"cumulativeGasUsed":"22947060",
65
"input":"deprecated",
66
"confirmations":"7819973"
67
}
68
]
69
}
Copied!

Get list of Blocks Validated by Address

Returns the list of blocks validated by an address.
1
https://api.bscscan.com/api
2
?module=account
3
&action=getminedblocks
4
&address=0x78f3adfc719c99674c072166708589033e2d9afe
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, blocksfor canonical blocks
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":"5428195",
7
"timeStamp":"1614988862",
8
"blockReward":"106809335800031367"
9
},
10
{
11
"blockNumber":"5428027",
12
"timeStamp":"1614988358",
13
"blockReward":"55018370100000000"
14
},
15
{
16
"blockNumber":"5428006",
17
"timeStamp":"1614988295",
18
"blockReward":"57546050000111471"
19
}
20
]
21
}
Copied!
​
⏳
Note : The timeStamp is represented in Unix timestamp. ​