For the full documentation of available parameters and descriptions, please visit the official Ethereum JSON-RPC docs.
For compatibility with Parity, please prefix all hex strings with " 0x ".
eth_blockNumber
Returns the number of most recent block
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Sample response
{
"jsonrpc":"2.0",
"id":83,
"result":"0x3ba89b6"
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x3ba89b6
&boolean=true
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the block number, in hex eg. 0xC36B3C |
| the boolean value to show full transaction objects. when true , returns full transaction objects and their information, when false only returns a list of transactions. |
Sample response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x1312d00",
"difficulty": "0x0",
"extraData": "0x",
"gasLimit": "0x2e90edd000",
"gasUsed": "0x3506ab67",
"hash": "0x7b4ef5a6ec415183c7ea324c7e9b0af5612baec614ff19f2fb7c2d05795bfd4c",
"logsBloom": "0x0000000000000000000000000000000000000000000100880000000000000000000400000000000000000000000200000000000000200000000000000020000014000000004000000000000800400000000000c000042000000200200000000000000000000000000000000000000080000000100000010000000010000000000000000000000000800000010000040200100000000000020000000040000040020000000000000000000000000200000000000001000000004000100000000000000003000000000000000000000000000000000000000000000010000000000010000000000000000200000000000000000000000000004000000000000000",
"miner": "0x4200000000000000000000000000000000000011",
"mixHash": "0xb6605b786250bf01babb472da31833059cc768f5182febf01911dfef7480de21",
"nonce": "0x0000000000000000",
"number": "0x3ba89b6",
"parentHash": "0x7ab398f10e6f6812bfd8b4ea2c80b292a1fb83820063becaf8820a753029baaf",
"receiptsRoot": "0x954103d2176db6b3fe4c5ca123f47871ddc05ee826ce2be787bfec4f8b008ad6",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x652",
"stateRoot": "0xe9a59f0b183770a7e32a44141a4619fffebf4a7161f264086301c7da57268a09",
"timestamp": "0x661e0574",
"totalDifficulty": "0x0",
"transactions": [
{
"blockHash": "0x7b4ef5a6ec415183c7ea324c7e9b0af5612baec614ff19f2fb7c2d05795bfd4c",
"blockNumber": "0x3ba89b6",
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
"gas": "0xf4240",
"gasPrice": "0x0",
"hash": "0xaec9b6906542211a12579c65c138858d6547cec779da71d00cfb5a3f58af9642",
"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012c139000000000000000000000000000000000000000000000000000000000661e053f0000000000000000000000000000000000000000000000000000000254ee063febbf10a3fb66c138eeb254a24642c7c1ddc4a32e4bf70b7c9a1c59c50cb6c3f700000000000000000000000000000000000000000000000000000000000000030000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710",
"nonce": "0x1520cb",
"to": "0x4200000000000000000000000000000000000015",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x7e",
"v": "0x0",
"r": "0x0",
"s": "0x0",
"sourceHash": "0x4a1d4ea60d24f691870be6c7e882ebf2e6051e2e30eae9cf67d235cda50d160d",
"mint": "0x0",
"ethValue": "0x0"
},
{
"blockHash": "0x7b4ef5a6ec415183c7ea324c7e9b0af5612baec614ff19f2fb7c2d05795bfd4c",
"blockNumber": "0x3ba89b6",
"from": "0xe3ca2ab8cea6011b2fb1d79009f730ba874b4276",
"gas": "0x24ae206a",
"gasPrice": "0x1312d00",
"hash": "0x413e7fc7b68b2d97177a78a5cb8d17ee596015dafb1e22bd7ce88a9662e505a6",
"input": "0x414bf38900000000000000000000000009bc4e0d864854c6afb6eb9a9cdf58ac190d0df9000000000000000000000000201eba5cc46d216ce6dc03f6a759e8e766e956ae0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000e3ca2ab8cea6011b2fb1d79009f730ba874b427600000000000000000000000000000000000000000000000000000000661e058f00000000000000000000000000000000000000000000000000000000000378ac000000000000000000000000000000000000000000000000000000000003666b0000000000000000000000000000000000000000da1bb9c300ec979118f3fc4d",
"nonce": "0x5e04",
"to": "0x5989fb161568b9f133edf5cf6787f5597762797f",
"transactionIndex": "0x1",
"value": "0x0",
"type": "0x0",
"chainId": "0x1388",
"v": "0x2734",
"r": "0x87cf68a57c50a381ef94a7e2781593794879d6044f5cab84bf41c927afa79909",
"s": "0x5fc5ce8c3e24418fbfc0afba2db7afd7c2c457ffc7cd0ece874383d86cfa40bc"
},
{
"blockHash": "0x7b4ef5a6ec415183c7ea324c7e9b0af5612baec614ff19f2fb7c2d05795bfd4c",
"blockNumber": "0x3ba89b6",
"from": "0xda1e5128acb310bc6138ebdc8c317632ad7e9342",
"gas": "0x1d677197",
"gasPrice": "0x1312d00",
"hash": "0xea1d7b20707db0a6ca49a604b56862257d7cb2e23c318beff2c48fc667371853",
"input": "0x414bf389000000000000000000000000201eba5cc46d216ce6dc03f6a759e8e766e956ae00000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb800000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000da1e5128acb310bc6138ebdc8c317632ad7e934200000000000000000000000000000000000000000000000000000000661e058f000000000000000000000000000000000000000000000000000000000003037c000000000000000000000000000000000000000000000000026c532ca16fc4e800000000000000000000000000000000000c5b4bc86f21bc86f21bc86f21bc86",
"nonce": "0x27b2",
"to": "0x319b69888b0d11cec22caa5034e25fffbdc88421",
"transactionIndex": "0x2",
"value": "0x0",
"type": "0x0",
"chainId": "0x1388",
"v": "0x2733",
"r": "0x3428a31b3d94725f0644ffc1faa21926ceee6b1474a1365a2b66d60a635df5fc",
"s": "0x15cf14e20dd4d859779e97eb7801304a47a4c058a4ee08195b186b4cf34a923c"
}
],
"transactionsRoot": "0x38ab41e5c6d0402b0f3c1174d6d36499f93fb1d4c2be335c6a27fedaef826178",
"uncles": []
}
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x3ba89b6
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the block number, in hex eg. 0x10FB78 |
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x3"
}
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0xaec9b6906542211a12579c65c138858d6547cec779da71d00cfb5a3f58af9642
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the hash of the transaction |
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x7b4ef5a6ec415183c7ea324c7e9b0af5612baec614ff19f2fb7c2d05795bfd4c",
"blockNumber": "0x3ba89b6",
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
"gas": "0xf4240",
"gasPrice": "0x0",
"hash": "0xaec9b6906542211a12579c65c138858d6547cec779da71d00cfb5a3f58af9642",
"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012c139000000000000000000000000000000000000000000000000000000000661e053f0000000000000000000000000000000000000000000000000000000254ee063febbf10a3fb66c138eeb254a24642c7c1ddc4a32e4bf70b7c9a1c59c50cb6c3f700000000000000000000000000000000000000000000000000000000000000030000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710",
"nonce": "0x1520cb",
"to": "0x4200000000000000000000000000000000000015",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x7e",
"v": "0x0",
"r": "0x0",
"s": "0x0",
"sourceHash": "0x4a1d4ea60d24f691870be6c7e882ebf2e6051e2e30eae9cf67d235cda50d160d",
"mint": "0x0",
"ethValue": "0x0"
}
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x3ba89b6
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the block number, in hex eg. 0x10FB78 |
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x7b4ef5a6ec415183c7ea324c7e9b0af5612baec614ff19f2fb7c2d05795bfd4c",
"blockNumber": "0x3ba89b6",
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
"gas": "0xf4240",
"gasPrice": "0x0",
"hash": "0xaec9b6906542211a12579c65c138858d6547cec779da71d00cfb5a3f58af9642",
"input": "0x015d8eb900000000000000000000000000000000000000000000000000000000012c139000000000000000000000000000000000000000000000000000000000661e053f0000000000000000000000000000000000000000000000000000000254ee063febbf10a3fb66c138eeb254a24642c7c1ddc4a32e4bf70b7c9a1c59c50cb6c3f700000000000000000000000000000000000000000000000000000000000000030000000000000000000000002f40d796917ffb642bd2e2bdd2c762a5e40fd74900000000000000000000000000000000000000000000000000000000000000bc0000000000000000000000000000000000000000000000000000000000002710",
"nonce": "0x1520cb",
"to": "0x4200000000000000000000000000000000000015",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x7e",
"v": "0x0",
"r": "0x0",
"s": "0x0",
"sourceHash": "0x4a1d4ea60d24f691870be6c7e882ebf2e6051e2e30eae9cf67d235cda50d160d",
"mint": "0x0",
"ethValue": "0x0"
}
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getTransactionCount
&address=0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the address to get transaction count |
| the string pre-defined block parameter, either earliest , pending or latest |
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x152119"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Mantle network.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0xf904808000831cfde080
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the signed raw transaction data to broadcast. |
💡 Tip: Send a POST request if your hex string is particularly long.
🖋️ For more information on creating a signed raw transaction, visit this page.
Sample Response
{
"id":1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}
⛏️ Note: The result
represents the transaction hash of the submitted raw transaction.
Use eth_getTransactionReceipt to retrieve full details.
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0xaec9b6906542211a12579c65c138858d6547cec779da71d00cfb5a3f58af9642
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the hash of the transaction |
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x7b4ef5a6ec415183c7ea324c7e9b0af5612baec614ff19f2fb7c2d05795bfd4c",
"blockNumber": "0x3ba89b6",
"contractAddress": null,
"cumulativeGasUsed": "0xb735",
"depositNonce": "0x1520cb",
"effectiveGasPrice": "0x0",
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
"gasUsed": "0xb735",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x4200000000000000000000000000000000000015",
"transactionHash": "0xaec9b6906542211a12579c65c138858d6547cec779da71d00cfb5a3f58af9642",
"transactionIndex": "0x0",
"type": "0x7e"
}
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_call
&to=0xAEEF46DB4855E25702F8237E8f403FddcaF931C0
&data=0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the address to interact with |
| the hash of the method signature and encoded parameters |
| the string pre-defined block parameter, either earliest , pending or latest |
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x00000000000000000000000000000000000000000000000000601d8888141c00"
}
eth_getCode
Returns code at a given address.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getCode
&address=0x01a97C03fCe8DcE233A269678Fb5F9Ba6c6a3Ab9
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the string representing the address to get code |
| the string pre-defined block parameter, either earliest , pending or latest |
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x60806040523661001357610011610017565b005b6100115b61001f6101b7565b6001600160a01b0316336001600160a01b0316141561016f5760606001600160e01b031960003516631b2ce7f360e11b8114156100655761005e6101ea565b9150610167565b6001600160e01b0319811663278f794360e11b14156100865761005e610241565b6001600160e01b031981166308f2839760e41b14156100a75761005e610287565b6001600160e01b031981166303e1469160e61b14156100c85761005e6102b8565b6001600160e01b03198116635c60da1b60e01b14156100e95761005e6102f8565b60405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b815160208301f35b61017761030c565b565b606061019e83836040518060600160405280602781526020016108576027913961031c565b9392505050565b90565b6001600160a01b03163b151590565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b60606101f4610394565b600061020336600481846106a2565b81019061021091906106e8565b905061022d8160405180602001604052806000815250600061039f565b505060408051602081019091526000815290565b606060008061025336600481846106a2565b8101906102609190610719565b915091506102708282600161039f565b604051806020016040528060008152509250505090565b6060610291610394565b60006102a036600481846106a2565b8101906102ad91906106e8565b905061022d816103cb565b60606102c2610394565b60006102cc6101b7565b604080516001600160a01b03831660208201529192500160405160208183030381529060405291505090565b6060610302610394565b60006102cc610422565b610177610317610422565b610431565b6060600080856001600160a01b0316856040516103399190610807565b600060405180830381855af49150503d8060008114610374576040519150601f19603f3d011682016040523d82523d6000602084013e610379565b606091505b509150915061038a86838387610455565b9695505050505050565b341561017757600080fd5b6103a8836104d3565b6000825111806103b55750805b156103c6576103c48383610179565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103f46101b7565b604080516001600160a01b03928316815291841660208301520160405180910390a161041f81610513565b50565b600061042c6105bc565b905090565b3660008037600080366000845af43d6000803e808015610450573d6000f35b3d6000fd5b606083156104c15782516104ba576001600160a01b0385163b6104ba5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161015e565b50816104cb565b6104cb83836105e4565b949350505050565b6104dc8161060e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105785760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b606482015260840161015e565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6101db565b8151156105f45781518083602001fd5b8060405162461bcd60e51b815260040161015e9190610823565b6001600160a01b0381163b61067b5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161015e565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc61059b565b600080858511156106b257600080fd5b838611156106bf57600080fd5b5050820193919092039150565b80356001600160a01b03811681146106e357600080fd5b919050565b6000602082840312156106fa57600080fd5b61019e826106cc565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561072c57600080fd5b610735836106cc565b9150602083013567ffffffffffffffff8082111561075257600080fd5b818501915085601f83011261076657600080fd5b81358181111561077857610778610703565b604051601f8201601f19908116603f011681019083821181831017156107a0576107a0610703565b816040528281528860208487010111156107b957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b838110156107f65781810151838201526020016107de565b838111156103c45750506000910152565b600082516108198184602087016107db565b9190910192915050565b60208152600082518060208401526108428160408501602087016107db565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122012bb4f564f73959a03513dc74fc3c6e40e8386e6f02c16b78d6db00ce0aa16af64736f6c63430008090033"
}
eth_getStorageAt
Returns the value from a storage position at a given address.
This endpoint is still experimental and may have potential issues
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_getStorageAt
&address=0x01a97C03fCe8DcE233A269678Fb5F9Ba6c6a3Ab9
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Query Parameters
Parameter | Description |
---|
| the string representing the address to get code |
| the hex code of the position in storage, eg 0x0 |
| the string pre-defined block parameter, either earliest , pending or latest |
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
eth_gasPrice
Returns the current price per gas in wei.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Sample Response
{
"jsonrpc":"2.0",
"id":73,
"result":"0x430e23400"
}
📖 Tip: The result
is returned in wei.
Easily convert Ethereum units using our unit converter.
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
https://api.mantlescan.xyz/api
?module=proxy
&action=eth_estimateGas
&data=0x4e71d92d
&to=0xf0160428a8552ac9bb7e050d90eeade4ddd52843
&value=0xff22
&gasPrice=0x51da038cc
&gas=0x5f5e0ff
&apikey=YourApiKeyToken
Try this endpoint in your browser 🔗
Query Parameters
Parameter | Description |
---|
| the hash of the method signature and encoded parameters |
| the string representing the address to interact with |
| the value sent in this transaction, in hex eg. 0xff22 |
| the amount of gas provided for the transaction, in hex eg. 0x5f5e0ff |
| the gas price paid for each unit of gas, in wei post EIP-1559, the gasPrice has to be higher than the block's baseFeePerGas |
⛽ Note: The gas
parameter is capped at 2x the current block gas limit.
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x6556"
}
Last updated