Get AVAX Balance for a Single Address
Returns the AVAX balance of a given address.
https://api-testnet.snowscan.xyz/api
?module=account
&action=balance
&address=0xa65760c16a47bb1c7d5373d9d18736084e2d3f66
&tag=latest
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":"5200000000000000000"
}
Get AVAX Balance for Multiple Addresses in a Single Call
Returns the balance of the accounts from a list of addresses.
https://api-testnet.snowscan.xyz/api
?module=account
&action=balancemulti
&address=0xa65760c16a47bb1c7d5373d9d18736084e2d3f66,0xa65760c16a47bb1c7d5373d9d18736084e2d3f66,0x39fe7a6512c0b70d734515ddbdea9410ae7c26d0
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"account":"0xa65760c16a47bb1c7d5373d9d18736084e2d3f66",
"balance":"5200000000000000000"
},
{
"account":"0xa65760c16a47bb1c7d5373d9d18736084e2d3f66",
"balance":"5200000000000000000"
},
{
"account":"0x39fe7a6512c0b70d734515ddbdea9410ae7c26d0",
"balance":"500000000000000000"
}
]
}
Get a list of 'Normal' Transactions By Address
Returns the list of transactions performed by an address, with optional pagination.
https://api-testnet.snowscan.xyz/api
?module=account
&action=txlist
&address=0x8d6896bd0f12ec867ee7a6e92f13add924bacf03
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"5782338",
"timeStamp":"1635909569",
"hash":"0xea20d60639bdda99e07812a77f3b4193226e9e214cfa543bdd9e9c1df7bbd99a",
"nonce":"29",
"blockHash":"0x298a09a904e53ef1f1ecf0ffd36a56bdc01cc080b068fa95555ff6315e938475",
"transactionIndex":"1",
"from":"0x250252bb1f23182230f51ac65d37cef285437fc6",
"to":"0x8d6896bd0f12ec867ee7a6e92f13add924bacf03",
"value":"270000001260000",
"gas":"90000",
"gasPrice":"1500000007",
"isError":"0",
"txreceipt_status":"1",
"input":"0x",
"contractAddress":"",
"cumulativeGasUsed":"151526",
"gasUsed":"21000",
"confirmations":"1437"
},
{
"blockNumber":"5782752",
"timeStamp":"1635915781",
"hash":"0x285390e33c125661f2f97bb48277c184e767f5c7ac8fdf11850a1b49e8813efc",
"nonce":"0",
"blockHash":"0x6f642eaac338ebf5d85c39a791161a38c792c09d882bd0f4bb24a4bd36fc9af2",
"transactionIndex":"1",
"from":"0x8d6896bd0f12ec867ee7a6e92f13add924bacf03",
"to":"0x6507693dda8ef46a93cd5975051e2d7a9308fddf",
"value":"0",
"gas":"90000",
"gasPrice":"1950004023",
"isError":"0",
"txreceipt_status":"1",
"input":"0xa9059cbb000000000000000000000000b772ef1768e6613e83cb1571f78f9a478dc2b34200000000000000000000000000000000000000000000003635c9adc5dea00000",
"contractAddress":"",
"cumulativeGasUsed":"135997",
"gasUsed":"29624",
"confirmations":"1023"
}
]
}
Get a list of 'Internal' Transactions by Address
Returns the list of internal transactions performed by an address, with optional pagination.
https://api-testnet.snowscan.xyz/api
?module=account
&action=txlistinternal
&address=0x118ee078c3625144e3a942566fbc84f187f8c8b6
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"5732285",
"timeStamp":"1635156526",
"hash":"0x183b4d40a1a31481c7862b2dd29c740384afc4758c1e870da977076ecdedd1b1",
"from":"0x8605e5d23374d94b9b9d0991d01aca39cd7f1c5d",
"to":"0x118ee078c3625144e3a942566fbc84f187f8c8b6",
"value":"0",
"contractAddress":"",
"input":"",
"type":"delegatecall",
"gas":"1086296",
"gasUsed":"513823",
"traceId":"0_0",
"isError":"0",
"errCode":""
},
{
"blockNumber":"5732709",
"timeStamp":"1635162889",
"hash":"0x7b84a63771e3ad307eec2bfd03dc7260b4b1e694db4d17432c6fd33673b5810d",
"from":"0x8605e5d23374d94b9b9d0991d01aca39cd7f1c5d",
"to":"0x118ee078c3625144e3a942566fbc84f187f8c8b6",
"value":"0",
"contractAddress":"",
"input":"",
"type":"delegatecall",
"gas":"518496",
"gasUsed":"329256",
"traceId":"0_0_0",
"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-testnet.snowscan.xyz/api
?module=account
&action=txlistinternal
&txhash=0xfacd88edd672ce7afe2599a989c685a620eb6d5936c42869560572f20df61344
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"5783806",
"timeStamp":"1635931593",
"from":"0xb58d05247d16b3f1bd6b59c52f7f61ffef02bec8",
"to":"0x8d86bc475bedcb08179c5e6a4d494ebd3b44ea8b",
"value":"1205470000000000",
"contractAddress":"",
"input":"",
"type":"call",
"gas":"2300",
"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-testnet.snowscan.xyz/api
?module=account
&action=txlistinternal
&startblock=5783806
&endblock=5783906
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"5783806",
"timeStamp":"1635931593",
"hash":"0xfacd88edd672ce7afe2599a989c685a620eb6d5936c42869560572f20df61344",
"from":"0xb58d05247d16b3f1bd6b59c52f7f61ffef02bec8",
"to":"0x697faf50a997b9655047658bf1ffc0805689e053",
"value":"0",
"contractAddress":"",
"input":"",
"type":"delegatecall",
"gas":"170168",
"gasUsed":"107198",
"traceId":"0",
"isError":"0",
"errCode":""
},
{
"blockNumber":"5783806",
"timeStamp":"1635931593",
"hash":"0xfacd88edd672ce7afe2599a989c685a620eb6d5936c42869560572f20df61344",
"from":"0xb58d05247d16b3f1bd6b59c52f7f61ffef02bec8",
"to":"0x8d86bc475bedcb08179c5e6a4d494ebd3b44ea8b",
"value":"1205470000000000",
"contractAddress":"",
"input":"",
"type":"call",
"gas":"2300",
"gasUsed":"0",
"traceId":"0_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.
https://api-testnet.snowscan.xyz/api
?module=account
&action=tokentx
&contractaddress=0xb809b9b2dc5e93cb863176ea2d565425b03c0540
&address=0xfbc324f89831015a906b7daff97c7fd46c374413
&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.
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"5582998",
"timeStamp":"1632916649",
"hash":"0xed3a265cebd603aa2cb9771be5c6ce10ff1e4c7a0be755527308fba56901e2b1",
"nonce":"2682",
"blockHash":"0x1f051722b99b6d5ba3ad505f0725d5851bfecd33266c26cb16cff46d2278069f",
"from":"0x0000000000000000000000000000000000000000",
"contractAddress":"0xb809b9b2dc5e93cb863176ea2d565425b03c0540",
"to":"0xfbc324f89831015a906b7daff97c7fd46c374413",
"value":"10000000000000000000000000000000",
"tokenName":"Binance USD",
"tokenSymbol":"BUSD",
"tokenDecimal":"18",
"transactionIndex":"2",
"gas":"100000",
"gasPrice":"4426464068",
"gasUsed":"58830",
"cumulativeGasUsed":"169150",
"input":"deprecated",
"confirmations":"200827"
},
{
"blockNumber":"5583163",
"timeStamp":"1632919125",
"hash":"0x9f1f94129dc5ccb7fb7b7837bb8da51e32290c31442910abd01d03cc85492eab",
"nonce":"10",
"blockHash":"0x34071e7a2e2ff3a231a8c3dda1d870642be6bfe96dd5d2213e90c76614a5b37f",
"from":"0xfbc324f89831015a906b7daff97c7fd46c374413",
"contractAddress":"0xb809b9b2dc5e93cb863176ea2d565425b03c0540",
"to":"0xcd22b8ec5af086ea670f700b039520e30aca2ed0",
"value":"19893880750000000000",
"tokenName":"Binance USD",
"tokenSymbol":"BUSD",
"tokenDecimal":"18",
"transactionIndex":"4",
"gas":"200000",
"gasPrice":"2213232032",
"gasUsed":"129230",
"cumulativeGasUsed":"380998",
"input":"deprecated",
"confirmations":"200662"
}
]
}
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-testnet.snowscan.xyz/api
?module=account
&action=tokennfttx
&contractaddress=0x44458837ac4036337e5ce46ce28a744e05e02016
&address=0x87e93ad897044086a0f0537963a6bd50711c58ac
&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.
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"4772010",
"timeStamp":"1620726033",
"hash":"0x0d2961a16754dc4565cc004a1a9e9bc0a35b9cbc74199a439d84fa81c93a1aee",
"nonce":"0",
"blockHash":"0xdaf49361a33950a3edc5ce44353a443919f64ff83f20f6a85def84cdfb964b00",
"from":"0x0000000000000000000000000000000000000000",
"contractAddress":"0x44458837ac4036337e5ce46ce28a744e05e02016",
"to":"0x87e93ad897044086a0f0537963a6bd50711c58ac",
"tokenID":"4696",
"tokenName":"FND NFT",
"tokenSymbol":"FNDNFT",
"tokenDecimal":"0",
"transactionIndex":"8",
"gas":"358752",
"gasPrice":"2000000000",
"gasUsed":"321549",
"cumulativeGasUsed":"7802125",
"input":"deprecated",
"confirmations":"1011820"
},
{
"blockNumber":"5046167",
"timeStamp":"1624862946",
"hash":"0xf511eabdcabfd1fe85d614fcfa44fe404260dd9c0f19f62378a1d25befaeb60a",
"nonce":"10",
"blockHash":"0x888e0a866fbc4656c9cdb876961d50d670eaace28e66b406aa1388dba593f300",
"from":"0x0000000000000000000000000000000000000000",
"contractAddress":"0x44458837ac4036337e5ce46ce28a744e05e02016",
"to":"0x87e93ad897044086a0f0537963a6bd50711c58ac",
"tokenID":"4813",
"tokenName":"FND NFT",
"tokenSymbol":"FNDNFT",
"tokenDecimal":"0",
"transactionIndex":"4",
"gas":"317694",
"gasPrice":"181500000004",
"gasUsed":"284542",
"cumulativeGasUsed":"517646",
"input":"deprecated",
"confirmations":"737663"
}
]
}
Last updated