Get DEV Balance for a Single Address
Returns the DEV balance of a given address.
https://api-moonbase.moonscan.io/api
?module=account
&action=balance
&address=0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Query Parameters
the string
representing the address to check for balance
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
{
"status": "1",
"message": "OK",
"result": "14835314654873819544"
}
Get DEV Balance for Multiple Addresses in a Single Call
Returns the balance of the accounts from a list of addresses.
https://api-moonbase.moonscan.io/api
?module=account
&action=balancemulti
&address=0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0,0x1038F9E41836b3E8BBD3416fbdbE9836F1EA83C5,0x37824eA65394388D92f6EBd3b1186c463c0CdCdb
&apikey=YourApiKeyToken
Query Parameters
the strings
representing the addresses to check for balance, separated by ,
commas
up to 20 addresses per call
the integer
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"account": "0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0",
"balance": "14801302431732025764"
},
{
"account": "0x1038F9E41836b3E8BBD3416fbdbE9836F1EA83C5",
"balance": "999499497250000000"
},
{
"account": "0x37824eA65394388D92f6EBd3b1186c463c0CdCdb",
"balance": "4440812260416746875"
}
]
}
Get a list of 'Normal' Transactions By Address
Returns the list of transactions performed by an address, with optional pagination.
https://api-moonbase.moonscan.io/api
?module=account
&action=txlist
&address=0x1038F9E41836b3E8BBD3416fbdbE9836F1EA83C5
&startblock=0
&endblock=latest
&page=1
&offset=3
&sort=asc
&apikey=YourApiKeyToken
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
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "2987158",
"timeStamp": "1665408402",
"hash": "0xe00ac149583171da3c83fa46459dff5286cd2d2ca066ff93501a1eb53d33027d",
"nonce": "11",
"blockHash": "0xb1d5701ecb4954fdf93be2e2ca47ac222f81b63ffc0d4d6443aecea6a08dadce",
"transactionIndex": "1",
"from": "0xc4a5dfe42cb4c4510dd7f7612b82db2ce3a517df",
"to": "0x1038f9e41836b3e8bbd3416fbdbe9836f1ea83c5",
"value": "1000000000000000000",
"gas": "21000",
"gasPrice": "2500000000",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "69539",
"gasUsed": "21000",
"confirmations": "1513884",
"methodId": "0x",
"functionName": ""
},
{
"blockNumber": "2987173",
"timeStamp": "1665408618",
"hash": "0xa0529889d5faad048869f5ea5608d196c8c52c418ec025bfacb9f29f0cd71e31",
"nonce": "0",
"blockHash": "0xab0e4eb093d252f92b166f9b2ae3f29541181d1ef4960e57d162f4ec0a8d56e1",
"transactionIndex": "43",
"from": "0x1038f9e41836b3e8bbd3416fbdbe9836f1ea83c5",
"to": "0xf2c84cb3d1e9fac001f36c965260aa2a9c9d822d",
"value": "0",
"gas": "70239",
"gasPrice": "1000000000",
"isError": "0",
"txreceipt_status": "1",
"input": "0x095ea7b30000000000000000000000003018e616d11761031e5f9016f416c571a95f74b3000000000000000000000000000000000000000026c62ad77dc602dae0000000",
"contractAddress": "",
"cumulativeGasUsed": "1147564",
"gasUsed": "46355",
"confirmations": "1513869",
"methodId": "0x095ea7b3",
"functionName": "approve(address guy, uint256 wad)"
}
]
}
Get a list of 'Internal' Transactions by Address
Returns the list of internal transactions performed by an address, with optional pagination.
https://api-moonbase.moonscan.io/api
?module=account
&action=txlistinternal
&address=0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
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
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "611471",
"timeStamp": "1629820200",
"hash": "0xd0f36dc51d3e82bfd9ff32de99de33327ae6e66aceff0c07e1bfd850ff943767",
"from": "0xcad421e0afb6d5fec1875a04d28f9a5b4e7908f3",
"to": "0xc6ef8a96f20d50e347ed9a1c84142d02b1efedc0",
"value": "16427835852916259",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "230720",
"gasUsed": "0",
"traceId": "0_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "1556690",
"timeStamp": "1642716996",
"hash": "0x018dda82848625526436b5d188fe644d046df3b8ace3ede4db3033806b944f73",
"from": "0xcad421e0afb6d5fec1875a04d28f9a5b4e7908f3",
"to": "0xc6ef8a96f20d50e347ed9a1c84142d02b1efedc0",
"value": "16246255286074351",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "230215",
"gasUsed": "0",
"traceId": "0_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-moonbase.moonscan.io/api
?module=account
&action=txlistinternal
&txhash=0x018dda82848625526436b5d188fe644d046df3b8ace3ede4db3033806b944f73
&apikey=YourApiKeyToken
Query Parameters
the string
representing the transaction hash to check for internal transactions
Sample Response
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "1556690",
"timeStamp": "1642716996",
"from": "0xbd23fcd60bd2682dea6a3aad84b498c54d56c494",
"to": "0xcad421e0afb6d5fec1875a04d28f9a5b4e7908f3",
"value": "16246255286074351",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "2205",
"gasUsed": "233473",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "1556690",
"timeStamp": "1642716996",
"from": "0xcad421e0afb6d5fec1875a04d28f9a5b4e7908f3",
"to": "0xc6ef8a96f20d50e347ed9a1c84142d02b1efedc0",
"value": "16246255286074351",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "230215",
"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-moonbase.moonscan.io/api
?module=account
&action=txlistinternal
&startblock=484887
&endblock=765371
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
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
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "484913",
"timeStamp": "1628243166",
"hash": "0x58fb220920eb33e8cecc8388576c5356362207e9c69b739698eae02b2eb3b655",
"from": "0xe330a8870b16d3fdf5b3717363935f9141afa0d4",
"to": "0x36f7ec6153f460d0eab6eee995a29a522bf10cb4",
"value": "0",
"contractAddress": "",
"input": "",
"type": "delegatecall",
"gas": "285296",
"gasUsed": "121551",
"traceId": "0_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "484945",
"timeStamp": "1628243550",
"hash": "0x32f0394d531d0fe4165ed8975fb51dcf03d0291220942a5252e54dc6195015f6",
"from": "0x0d3cd8aa6e092cbb2979d8c4676a0a5d2f02c4e6",
"to": "0x3f9b54a72e7c35af0d58ec9c5c9592de13796b62",
"value": "0",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "445945",
"gasUsed": "34268",
"traceId": "0_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "484956",
"timeStamp": "1628243682",
"hash": "0xb901952d91c1b17bac4edc8ce26a83111a28b0b72ca1d1b811f4adeef0208390",
"from": "0x0d3cd8aa6e092cbb2979d8c4676a0a5d2f02c4e6",
"to": "0x3f9b54a72e7c35af0d58ec9c5c9592de13796b62",
"value": "0",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "1658749",
"gasUsed": "34014",
"traceId": "0_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-moonbase.moonscan.io/api
?module=account
&action=tokentx
&contractaddress=0xa36085F69e2889c224210F603D836748e7dC0088
&address=0xfe2882ac0a337a976aa73023c2a2a917f57ba2ed
&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.
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
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "13374",
"timeStamp": "1622219280",
"hash": "0xd223c6bd715f6595f6bea0cdcd91d97079e6cd3abed29f30840aaea542f38b3a",
"nonce": "0",
"blockHash": "0x7402a93abafd155be731a342f9dee854b493b116dab43860c7c263948d0431bd",
"from": "0xe5ca6316ef972eae0bb38ec6c77e345ea7c31a3b",
"contractAddress": "0xa36085f69e2889c224210f603d836748e7dc0088",
"to": "0xfe2882ac0a337a976aa73023c2a2a917f57ba2ed",
"value": "100000000000000000000000",
"tokenName": "ChainLink Token",
"tokenSymbol": "LINK",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "99115",
"gasPrice": "1000000000",
"gasUsed": "46877",
"cumulativeGasUsed": "46877",
"input": "deprecated",
"confirmations": "4487949"
},
{
"blockNumber": "13399",
"timeStamp": "1622219580",
"hash": "0x0efea118b2d2ddd02112e3d763ebeb5cbd5ac6f3de66a12c2f3f8b54ea42624c",
"nonce": "5",
"blockHash": "0x2f097e425bd008ab71a75fa82f086e6ed5801f06e9bb56bb3d095362b9a90468",
"from": "0xfe2882ac0a337a976aa73023c2a2a917f57ba2ed",
"contractAddress": "0xa36085f69e2889c224210f603d836748e7dc0088",
"to": "0x6eeb6b0ca169be368bd2359f260b9b321ce5952b",
"value": "1500000000000000000000",
"tokenName": "ChainLink Token",
"tokenSymbol": "LINK",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "100000",
"gasPrice": "1000000000",
"gasUsed": "46865",
"cumulativeGasUsed": "46865",
"input": "deprecated",
"confirmations": "4487924"
}
]
}
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-moonbase.moonscan.io/api
?module=account
&action=tokennfttx
&contractaddress=0x9f9Eef8078091429D302B07fcFA78305f2F6447A
&address=0x05105f30b68bf028bedd12856aa8e605a4ca5e08
&page=1
&offset=100
&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.
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
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "4124489",
"timeStamp": "1681221270",
"hash": "0x9731200c41a910189ea47c06e45515ff8a32e2a1db416b103692ef8d33bf35db",
"nonce": "6",
"blockHash": "0x0ccf9dd2c4b280cea0999d2cedd3a75e3fbc0e5d71b6e77cb94f371428c2e590",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x9f9eef8078091429d302b07fcfa78305f2f6447a",
"to": "0x05105f30b68bf028bedd12856aa8e605a4ca5e08",
"tokenID": "19037242035",
"tokenName": "zkBridgeCreator721",
"tokenSymbol": "zkBridgeCreator721",
"tokenDecimal": "0",
"transactionIndex": "0",
"gas": "663154",
"gasPrice": "1625000000",
"gasUsed": "481298",
"cumulativeGasUsed": "481298",
"input": "deprecated",
"confirmations": "376861"
}
]
}
Get list of Blocks Collated by Address
Returns the list of blocks collated by an address.
https://api-moonbase.moonscan.io/api
?module=account
&action=getminedblocks
&address=0x0cfb2bdd20c5edeeeed2d2fbddb9697f0441668a
&blocktype=blocks
&page=1
&offset=10
&apikey=YourApiKeyToken
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
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "4501361",
"timeStamp": "1686199188",
"blockReward": "1994919575000000"
},
{
"blockNumber": "4501349",
"timeStamp": "1686199032",
"blockReward": "0"
},
{
"blockNumber": "4501312",
"timeStamp": "1686198534",
"blockReward": "0"
}
]
}