Get GLMR Balance for a Single Address
Returns the GLMR balance of a given address.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=balance
&address=0x9f816576E878145a52D76D52aBab010F0c34e513
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Request Response
Sample response
Copy {
"status": "1",
"message": "OK",
"result": "610173082362526642152"
}
Get GLMR Balance for Multiple Addresses in a Single Call
Returns the balance of the accounts from a list of addresses.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=balancemulti
&address=0x9f816576E878145a52D76D52aBab010F0c34e513,0x4704d15d858e5a83a9716489d48aeda79475c127
&tag=latest
&apikey=YourApiKeyToken
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"account": "0x9f816576E878145a52D76D52aBab010F0c34e513",
"balance": "610173082362526642152"
},
{
"account": "0x4704d15d858e5a83a9716489d48aeda79475c127",
"balance": "190682379572122824958435"
}
]
}
Get a list of 'Normal' Transactions By Address
Returns the list of transactions performed by an address, with optional pagination.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=txlist
&address=0x4704d15D858e5a83A9716489D48AEDA79475c127
&startblock=0
&endblock=latest
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "809653",
"timeStamp": "1649840130",
"hash": "0x744e3ad0384eb0c55346225b8896ef65fc26f1ac60fcb3ee76f6dc3872b9dae2",
"nonce": "26188",
"blockHash": "0xf5632cad42222d29d1eecfe2137a97a2549e9e3d89e5d236b3838a293f5ac8cc",
"transactionIndex": "5",
"from": "0x0092f7f93eeb8387542decbe25572ca1c3f42fbf",
"to": "0x4704d15d858e5a83a9716489d48aeda79475c127",
"value": "1000000000000000000",
"gas": "21000",
"gasPrice": "100000000000",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "1103976",
"gasUsed": "21000",
"confirmations": "2911932",
"methodId": "0x",
"functionName": ""
},
{
"blockNumber": "809820",
"timeStamp": "1649842164",
"hash": "0x9212655d2b0889be00fd4da9e43b6373c317edc3a6153b127ac2a346185827ac",
"nonce": "0",
"blockHash": "0x9bf7ec169113099350c78273a55a7bf408de4da5a703031b261f952d36add726",
"transactionIndex": "5",
"from": "0x4704d15d858e5a83a9716489d48aeda79475c127",
"to": "0x766d19bbdae818b4dd9eaae5fb9bcdaeb95bebfa",
"value": "500000000000000000",
"gas": "21000",
"gasPrice": "100000000000",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "364821",
"gasUsed": "21000",
"confirmations": "2911765",
"methodId": "0x",
"functionName": ""
}
]
}
Get a list of 'Internal' Transactions by Address
Returns the list of internal transactions performed by an address, with optional pagination.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=txlistinternal
&address=0x063b0937975041c79132953c144D67bD96f81AB9
&startblock=0
&endblock=latest
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "3579992",
"timeStamp": "1684310682",
"hash": "0x129866aaea529db31a197f1cabe57f17d42e389e4f330c0754bdd020b910f85c",
"from": "0x054fb7d6c1e3d7771b128eb6fa63864745284fc5",
"to": "0x063b0937975041c79132953c144d67bd96f81ab9",
"value": "22756006277011976760",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "18154",
"gasUsed": "0",
"traceId": "0_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "3609863",
"timeStamp": "1684676388",
"hash": "0x4682ce745a9c1bf18230f3aeb03fa7041c89941d6830aa2d9bb6b192c8db925b",
"from": "0x054fb7d6c1e3d7771b128eb6fa63864745284fc5",
"to": "0x063b0937975041c79132953c144d67bd96f81ab9",
"value": "16455722931875685082",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "18154",
"gasUsed": "0",
"traceId": "0_1",
"isError": "0",
"errCode": ""
}
]
}
Get 'Internal Transactions' by Transaction Hash
Returns the list of internal transactions performed within a transaction.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=txlistinternal
&txhash=0x690f9316cfd2fcb9f7cb886fdf0c4905419cdcab8fed7ba536587ef04b2231d8
&apikey=YourApiKeyToken
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "3679270",
"timeStamp": "1685525838",
"from": "0xacc15dc74880c9944775448304b263d191c6077f",
"to": "0x054fb7d6c1e3d7771b128eb6fa63864745284fc5",
"value": "242296257788790718130",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "2245",
"gasUsed": "125637",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "3679270",
"timeStamp": "1685525838",
"from": "0x054fb7d6c1e3d7771b128eb6fa63864745284fc5",
"to": "0x1421fcb12d209ab56bf843e1a9f2f8a62a4ec2bf",
"value": "14419592406375295411",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "121292",
"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.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=txlistinternal
&startblock=0
&endblock=latest
&page=1
&offset=10
&sort=asc
&apikey=YourApiKeyToken
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "171247",
"timeStamp": "1641897852",
"hash": "0x96e44154f95bff624503777b5c216eda8961feb480ef3b16bbf9f9ecee24e5a6",
"from": "0x31efc4aeaa7c39e54a33fdc3c46ee2bd70ae0a09",
"to": "",
"value": "0",
"contractAddress": "0x5b9e4d0dd21f4e071729a9eb522a2366abed149a",
"input": "",
"type": "create",
"gas": "4050646",
"gasUsed": "85498",
"traceId": "0_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "171280",
"timeStamp": "1641898248",
"hash": "0x0c525810c25a831771a27632e6ecd2407bb177d939ee8c0aa1ea64db576816f8",
"from": "0xacc15dc74880c9944775448304b263d191c6077f",
"to": "0x7df5e9e405516c79ff24919b2d4fe7de6310d77a",
"value": "1000000000000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "19353",
"gasUsed": "0",
"traceId": "0_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "171304",
"timeStamp": "1641898536",
"hash": "0x21a72065fa57556599641daeeb788f8267eeb38e9e294b4262adda2b7961ea39",
"from": "0x73a37b3eb030cc3f9739ca5c16b7e6802f294122",
"to": "",
"value": "0",
"contractAddress": "0x95ce8b1c273af612cd895e6b0c633039c3572827",
"input": "",
"type": "create",
"gas": "2200744",
"gasUsed": "60193",
"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.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=tokentx
&contractaddress=0xAcc15dC74880C9944775448304B263D191c6077F
&address=0xd27cece5ce8b4f6fa47a160105d842f97aee227d
&page=1
&offset=10
&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.
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "2346684",
"timeStamp": "1669051128",
"hash": "0xbff60ebd06357c56cced37faaae385632e11dc2df88f2e2224a5fcb4b62a3a21",
"nonce": "7",
"blockHash": "0x08ad92ddd91daa1a2ce7071d425d163e0b1a8fbda3cbdae183f4798caddfccaa",
"from": "0xd27cece5ce8b4f6fa47a160105d842f97aee227d",
"contractAddress": "0xacc15dc74880c9944775448304b263d191c6077f",
"to": "0x8ccbbcaf58f5422f6efd4034d8e8a3c9120adf79",
"value": "100000000000000000",
"tokenName": "Wrapped GLMR",
"tokenSymbol": "WGLMR",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "191180",
"gasPrice": "101500000000",
"gasUsed": "141127",
"cumulativeGasUsed": "141127",
"input": "deprecated",
"confirmations": "1374959"
},
{
"blockNumber": "2346696",
"timeStamp": "1669051272",
"hash": "0xb729028bc118d8a4bb58b3bdb90e1d8a513046db17304f3038b850590d20a47a",
"nonce": "9",
"blockHash": "0x891c8d3f2ee818af7c36d21c84fd88c8988002f838563e34e83c71087f78b06c",
"from": "0xd27cece5ce8b4f6fa47a160105d842f97aee227d",
"contractAddress": "0xacc15dc74880c9944775448304b263d191c6077f",
"to": "0x8ccbbcaf58f5422f6efd4034d8e8a3c9120adf79",
"value": "1250000000000000000",
"tokenName": "Wrapped GLMR",
"tokenSymbol": "WGLMR",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "250000",
"gasPrice": "101500000000",
"gasUsed": "119263",
"cumulativeGasUsed": "119263",
"input": "deprecated",
"confirmations": "1374947"
}
]
}
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.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=tokennfttx
&contractaddress=0x72A33394f0652e2Bf15d7901f3Cd46863d968424
&address=0x22abaec9110d7b61770e39626454138d51bddd8b
&page=1
&offset=10
&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.
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "2921629",
"timeStamp": "1676064330",
"hash": "0x52fefb1913c8f0c8b5f6c005cc6bb93003e6c0e74e97e7afa53f22862ca5338c",
"nonce": "509",
"blockHash": "0x4587435c64e7d64ad1f75031915b9a33ae943bae4ab7496d4e105df26c205956",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x72a33394f0652e2bf15d7901f3cd46863d968424",
"to": "0x22abaec9110d7b61770e39626454138d51bddd8b",
"tokenID": "350000",
"tokenName": "DSP Voyage",
"tokenSymbol": "DSPVoyage",
"tokenDecimal": "0",
"transactionIndex": "0",
"gas": "13000000",
"gasPrice": "200000000000",
"gasUsed": "12312930",
"cumulativeGasUsed": "12312930",
"input": "deprecated",
"confirmations": "800033"
},
{
"blockNumber": "2921629",
"timeStamp": "1676064330",
"hash": "0x52fefb1913c8f0c8b5f6c005cc6bb93003e6c0e74e97e7afa53f22862ca5338c",
"nonce": "509",
"blockHash": "0x4587435c64e7d64ad1f75031915b9a33ae943bae4ab7496d4e105df26c205956",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x72a33394f0652e2bf15d7901f3cd46863d968424",
"to": "0x22abaec9110d7b61770e39626454138d51bddd8b",
"tokenID": "580159",
"tokenName": "DSP Voyage",
"tokenSymbol": "DSPVoyage",
"tokenDecimal": "0",
"transactionIndex": "0",
"gas": "13000000",
"gasPrice": "200000000000",
"gasUsed": "12312930",
"cumulativeGasUsed": "12312930",
"input": "deprecated",
"confirmations": "800033"
}
]
}
Get a list of 'ERC1155 - Token Transfer Events' by Address
Returns the list of ERC-1155 ( Multi Token Standard ) tokens transferred by an address, with optional filtering by token contract.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=token1155tx
&contractaddress=0x74163C29bde072420F3E501d98426b9470Bb9f2d
&address=0xf9896e42c33a4ae029c12135a390de542ebc340e
&page=1
&offset=10
&startblock=0
&endblock=latest
&sort=asc
&apikey=YourApiKeyToken
Usage:
ERC-1155 transfers from an address , specify the address
parameter
ERC-1155 transfers from a contract address , specify the contract address
parameter
ERC-1155 transfers from an address filtered by a token contract , specify both address
and contract address
parameters.
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "2920241",
"timeStamp": "1676047152",
"hash": "0x2af19ef811f269828135ba13cca12716016354d1406ed2f36851c633cc5b12bd",
"nonce": "317",
"blockHash": "0x05f11bc0e4ac22666a0c85da758cfba5d81ba75811e3648590f51cb1d6ce9875",
"transactionIndex": "0",
"gas": "10000000",
"gasPrice": "200000000000",
"gasUsed": "2977607",
"cumulativeGasUsed": "2977607",
"input": "deprecated",
"contractAddress": "0x74163c29bde072420f3e501d98426b9470bb9f2d",
"from": "0x0000000000000000000000000000000000000000",
"to": "0xf9896e42c33a4ae029c12135a390de542ebc340e",
"tokenID": "0",
"tokenValue": "4",
"tokenName": "DPS Support Ship",
"tokenSymbol": "DPSSupportShip",
"confirmations": "801442"
},
{
"blockNumber": "2920241",
"timeStamp": "1676047152",
"hash": "0x2af19ef811f269828135ba13cca12716016354d1406ed2f36851c633cc5b12bd",
"nonce": "317",
"blockHash": "0x05f11bc0e4ac22666a0c85da758cfba5d81ba75811e3648590f51cb1d6ce9875",
"transactionIndex": "0",
"gas": "10000000",
"gasPrice": "200000000000",
"gasUsed": "2977607",
"cumulativeGasUsed": "2977607",
"input": "deprecated",
"contractAddress": "0x74163c29bde072420f3e501d98426b9470bb9f2d",
"from": "0x0000000000000000000000000000000000000000",
"to": "0xf9896e42c33a4ae029c12135a390de542ebc340e",
"tokenID": "1",
"tokenValue": "2",
"tokenName": "DPS Support Ship",
"tokenSymbol": "DPSSupportShip",
"confirmations": "801442"
}
]
}
Get list of Collator blocks by Address
Returns the list of collator blocks by an address.
Copy https://api-moonbeam.moonscan.io/api
?module=account
&action=getminedblocks
&address=0xb6758E748F5D76B8b1264F9B907D8675DA52c97C
&blocktype=blocks
&page=1
&offset=10
&apikey=YourApiKeyToken
Request Response
Sample Response
Copy {
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "3721688",
"timeStamp": "1686045012",
"blockReward": "1086131513243440"
},
{
"blockNumber": "3721678",
"timeStamp": "1686044892",
"blockReward": "1362192000000000"
}
]
}