Get frxETH Balance for a Single Address
Returns the frxETH balance of a given address.
https://api-holesky.fraxscan.com/api
?module=account
&action=balance
&address=0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample Response
{
"status":"1",
"message":"OK",
"result":"108200000000000000000"
}
Get frxETH Balance for Multiple Addresses in a Single Call
Returns the balance of the accounts from a list of addresses.
https://api-holesky.fraxscan.com/api
?module=account
&action=balancemulti
&address=0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c,0xd37dabe2ccca72166f41c236b91ca36494fe5919,0x0e77e424000d5546bd3ae158c1e2de7784203506
&apikey=YourApiKeyToken
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"account": "0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c",
"balance": "108200000000000000000"
},
{
"account": "0xd37dabe2ccca72166f41c236b91ca36494fe5919",
"balance": "103567361400228880916"
},
{
"account": "0x0e77e424000d5546bd3ae158c1e2de7784203506",
"balance": "98000000000000000000"
}
]
}
Get a list of 'Normal' Transactions By Address
Returns the list of transactions performed by an address, with optional pagination.
https://api-holesky.fraxscan.com/api
?module=account
&action=txlist
&address=0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c
&startblock=0
&endblock=latest
&page=1
&offset=2
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "2068160",
"timeStamp": "1704133696",
"hash": "0x43f25149ef3a81d5294392c0b54996852d97f046d923003fb1202f7425fa65e8",
"nonce": "0",
"blockHash": "0x13bea825d0f7c28b6ffcfa91a481579d459653b44cfd01bec446c63a49b3209a",
"transactionIndex": "1",
"from": "0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c",
"to": "0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c",
"value": "2500000000000000000",
"gas": "100000",
"gasPrice": "0",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "93727",
"gasUsed": "21000",
"confirmations": "1236274",
"methodId": "0x",
"functionName": ""
},
{
"blockNumber": "2094046",
"timeStamp": "1704185468",
"hash": "0xfd151a2d5050d1a4c5c25f1c197d88315d8ca12bd05b6708e07ce1a2fc4033e1",
"nonce": "1",
"blockHash": "0x0793c156480135ac032ed5d68313a982db253d904d2c7ccd5f7becd2a2363643",
"transactionIndex": "1",
"from": "0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c",
"to": "0xe1c35ab923d64bb4c7415196ce8416a2b14bdd9c",
"value": "10400000000000000000",
"gas": "100000",
"gasPrice": "0",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "96527",
"gasUsed": "21000",
"confirmations": "1210388",
"methodId": "0x",
"functionName": ""
}
]
}
Get a list of 'Internal' Transactions by Address
Returns the list of internal transactions performed by an address, with optional pagination.
https://api-holesky.fraxscan.com/api
?module=account
&action=txlistinternal
&address=0x5dC9EC157d866257f16DD4459216900D8bb75abc
&startblock=0
&endblock=latest
&page=1
&offset=2
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "2007097",
"timeStamp": "1704011570",
"hash": "0xaf33f517dcefecd8dc1fc433a849dbe6bc471e227369b9b815afd0ea7f0a63f2",
"from": "0x4200000000000000000000000000000000000010",
"to": "0x5dc9ec157d866257f16dd4459216900d8bb75abc",
"value": "300000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "343230",
"gasUsed": "0",
"traceId": "0_1_1_1_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "2024819",
"timeStamp": "1704047014",
"hash": "0xf5689cd073d9694277d02860a1a5e68f50cde66a659ad881f6f8b09ee4170a10",
"from": "0x4200000000000000000000000000000000000010",
"to": "0x5dc9ec157d866257f16dd4459216900d8bb75abc",
"value": "200000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "367839",
"gasUsed": "0",
"traceId": "0_1_1_1_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-holesky.fraxscan.com/api
?module=account
&action=txlistinternal
&txhash=0xddda9b8e9c311ac321a29699623f51561e7fdcf87c7974d37e7698e097326452
&apikey=YourApiKeyToken
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "3302931",
"timeStamp": "1706603238",
"from": "0x4200000000000000000000000000000000000007",
"to": "0x4200000000000000000000000000000000000010",
"value": "13000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "404916",
"gasUsed": "25131",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "3302931",
"timeStamp": "1706603238",
"from": "0x4200000000000000000000000000000000000010",
"to": "0x5dc9ec157d866257f16dd4459216900d8bb75abc",
"value": "13000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "367839",
"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.
https://api-holesky.fraxscan.com/api
?module=account
&action=txlistinternal
&startblock=0
&endblock=3304477
&page=1
&offset=2
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "3142",
"timeStamp": "1700003660",
"hash": "0x60b116a073c9f7830deb9b4ff95ef49dc7bdc1baa4d2cbe0164e955772dfcae9",
"from": "0x4200000000000000000000000000000000000007",
"to": "0x4200000000000000000000000000000000000010",
"value": "1000000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "404939",
"gasUsed": "50131",
"traceId": "0_1_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "3142",
"timeStamp": "1700003660",
"hash": "0x60b116a073c9f7830deb9b4ff95ef49dc7bdc1baa4d2cbe0164e955772dfcae9",
"from": "0x4200000000000000000000000000000000000010",
"to": "0xfcb833d961709969d6b0222f7740a9997fb8de89",
"value": "1000000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "343253",
"gasUsed": "0",
"traceId": "0_1_1_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-holesky.fraxscan.com/api
?module=account
&action=tokentx
&contractaddress=0xB223610E6BC02ED9398F8f10cB3848Ddd39E0055
&address=0xbd2b5034f028a0284648ebf18714f3660a8a9f02
&page=1
&offset=2
&startblock=0
&endblock=latest
&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": "3302391",
"timeStamp": "1706602158",
"hash": "0x93ddc3e69db3b8ac6fe5cb29b3b9c519c1237767498342ce51d7b66bdccb5803",
"nonce": "334",
"blockHash": "0xc61b812e0f047e8f25a6d40061ce3e06aad1c660fe0ba319c1ec0936fb5e97ec",
"from": "0x08a9a8248d1a15b73d07a374c4cd32eac4e43ebb",
"contractAddress": "0xb223610e6bc02ed9398f8f10cb3848ddd39e0055",
"to": "0xbd2b5034f028a0284648ebf18714f3660a8a9f02",
"value": "58718623",
"tokenName": "An Awesome Token",
"tokenSymbol": "AAT",
"tokenDecimal": "18",
"transactionIndex": "1",
"gas": "51559",
"gasPrice": "1000254",
"gasUsed": "46759",
"cumulativeGasUsed": "114398",
"input": "deprecated",
"confirmations": "2156"
},
{
"blockNumber": "3302397",
"timeStamp": "1706602170",
"hash": "0xfc65c1ac23857800c3e9cdf754ba6ec840d413aa59ba857723abb97cef80dd0e",
"nonce": "335",
"blockHash": "0xbe8a09985ffc75dd90ae3569b0c333360d35488710daadf2cd9d435df49f41bb",
"from": "0xbd2b5034f028a0284648ebf18714f3660a8a9f02",
"contractAddress": "0xb223610e6bc02ed9398f8f10cb3848ddd39e0055",
"to": "0x0000000000000000000000000000000000000000",
"value": "58718623",
"tokenName": "An Awesome Token",
"tokenSymbol": "AAT",
"tokenDecimal": "18",
"transactionIndex": "1",
"gas": "8000000",
"gasPrice": "1000254",
"gasUsed": "106707",
"cumulativeGasUsed": "174346",
"input": "deprecated",
"confirmations": "2150"
}
]
}
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-holesky.fraxscan.com/api
?module=account
&action=tokennfttx
&contractaddress=0x5e977F638C9F5AF5217861804e506963722B0D5c
&address=0x5e977f638c9f5af5217861804e506963722b0d5c
&page=1
&offset=2
&startblock=0
&endblock=latest
&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": "2998200",
"timeStamp": "1705993776",
"hash": "0x1fd72b1aab9344a350a75d9f02a40d09f3ce59c754b5e96a34959345a9b233ce",
"nonce": "10",
"blockHash": "0x357ea6ba882480b65239688e6dae7ae3c6341227412e2f2b9438f1359bd77e1e",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x5e977f638c9f5af5217861804e506963722b0d5c",
"to": "0x5e977f638c9f5af5217861804e506963722b0d5c",
"tokenID": "0",
"tokenName": "veBVM",
"tokenSymbol": "veBVM",
"tokenDecimal": "18",
"transactionIndex": "1",
"gas": "5751400",
"gasPrice": "3000000254",
"gasUsed": "4425412",
"cumulativeGasUsed": "4500975",
"input": "deprecated",
"confirmations": "306392"
},
{
"blockNumber": "2998200",
"timeStamp": "1705993776",
"hash": "0x1fd72b1aab9344a350a75d9f02a40d09f3ce59c754b5e96a34959345a9b233ce",
"nonce": "10",
"blockHash": "0x357ea6ba882480b65239688e6dae7ae3c6341227412e2f2b9438f1359bd77e1e",
"from": "0x5e977f638c9f5af5217861804e506963722b0d5c",
"contractAddress": "0x5e977f638c9f5af5217861804e506963722b0d5c",
"to": "0x0000000000000000000000000000000000000000",
"tokenID": "0",
"tokenName": "veBVM",
"tokenSymbol": "veBVM",
"tokenDecimal": "18",
"transactionIndex": "1",
"gas": "5751400",
"gasPrice": "3000000254",
"gasUsed": "4425412",
"cumulativeGasUsed": "4500975",
"input": "deprecated",
"confirmations": "306392"
}
]
}