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-moonriver.moonscan.io/api
?module=proxy
&action=eth_blockNumber
&apikey=YourApiKeyToken
Try this endpoint in your browser
Sample response
{
"jsonrpc":"2.0",
"result":"0x436c95",
"id":83
}
eth_getBlockByNumber
Returns information about a block by block number.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_getBlockByNumber
&tag=0x436c95
&boolean=true
&apikey=YourApiKeyToken
Query Parameters
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",
"result": {
"author": "0x010202a6f849e42b6f9613279e2df840ce5fc788",
"baseFeePerGas": "0x4a817c80",
"difficulty": "0x0",
"extraData": "0x",
"gasLimit": "0xe4e1c0",
"gasUsed": "0x1a96e",
"hash": "0x2908269a09e7e6b85a1df51c9a364f63807eca7bc78a459f239e1be8e1383516",
"logsBloom": "0x000000000000000800000000000000000000000000000000000000020000000000000000000000000000000000000000000000000001000000000000100020000000000000000000000000000000000000000000000208000000000000000000000000000000000000400000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000200000020000000020a0000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000002000000000000000000000000000000",
"miner": "0x010202a6f849e42b6f9613279e2df840ce5fc788",
"nonce": "0x0000000000000000",
"number": "0x436c95",
"parentHash": "0x4cbc839a489bf88370777a35c6db58563e34aceca9e0f2db5123d0ea5d220c85",
"receiptsRoot": "0x579a524413bb3814c8fdc3c5eb12a583dafd1d22419aa592e11b074e296522c1",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x47a",
"stateRoot": "0xd6e75983dd087827342da95ad557bb768ba01d076749c1a6f77fd912a98186d2",
"timestamp": "0x64829e38",
"totalDifficulty": "0x0",
"transactions": [
{
"accessList": null,
"blockHash": "0x2908269a09e7e6b85a1df51c9a364f63807eca7bc78a459f239e1be8e1383516",
"blockNumber": "0x436c95",
"chainId": "0x505",
"creates": null,
"from": "0xb8ff877ed78ba520ece21b1de7843a8a57ca47cb",
"gas": "0x48d9c",
"gasPrice": "0xb2d05e00",
"hash": "0x054c709e8431281f88d1fc809de5c0b0a58117f01c078bbc0de3d02010397104",
"input": "0x6c459a28000000000000000000000000e9ba4c1e76d874a43942718dafc96009ec9d99170000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000006482f28000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000084704316e5000000000000000000000000000000000000000000000000000000000000006674e5f657791d414c7337ba7213d999f69a13d9ee7d56662fcb394b56bdbcf51a000000000000000000000000000000000000000000000000000000000000001474e5f657791d414c7337ba7213d999f69a13d9ee7d56662fcb394b56bdbcf51a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082cdbb30f62f2f55e33c3104dd28a8eb16f2168cd47c7846cc911bdb0a4bea380c20bc9359b17143c381c44015be5dcf09158e26e81dae4ec518ebe3e5c9c028421cb5c67f8190fae72e7413083c563ef0bf3124177a0c6068d74b354919a89a00cd310c8b6801125903f3bc25664c26fea259dbbaab235bbc5d61823ba4e17981551c000000000000000000000000000000000000000000000000000000000000",
"nonce": "0xf75",
"publicKey": "0xb21a7e285d76230d8c1741676a696a7edbf8e3277d137c9f2c9b0fb3ce4e10b496314d8490f2943938c1887fa15a14dcc1ebe6cff53901fd67163b3ed8de6a76",
"r": "0xc3a591c2bb991cf9e55b0f20ba3b5ed86e84d744159ea75b243619f174c71b05",
"raw": "0xf9026e820f7584b2d05e0083048d9c9484070061032f3e7ea4e068f447fb7cdfc98d57fe80b902046c459a28000000000000000000000000e9ba4c1e76d874a43942718dafc96009ec9d99170000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000006482f28000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000084704316e5000000000000000000000000000000000000000000000000000000000000006674e5f657791d414c7337ba7213d999f69a13d9ee7d56662fcb394b56bdbcf51a000000000000000000000000000000000000000000000000000000000000001474e5f657791d414c7337ba7213d999f69a13d9ee7d56662fcb394b56bdbcf51a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082cdbb30f62f2f55e33c3104dd28a8eb16f2168cd47c7846cc911bdb0a4bea380c20bc9359b17143c381c44015be5dcf09158e26e81dae4ec518ebe3e5c9c028421cb5c67f8190fae72e7413083c563ef0bf3124177a0c6068d74b354919a89a00cd310c8b6801125903f3bc25664c26fea259dbbaab235bbc5d61823ba4e17981551c000000000000000000000000000000000000000000000000000000000000820a2da0c3a591c2bb991cf9e55b0f20ba3b5ed86e84d744159ea75b243619f174c71b05a040442cc6c0e1a21f72a38da2c003c995e2f22132d977883676a85cbc6b904824",
"s": "0x40442cc6c0e1a21f72a38da2c003c995e2f22132d977883676a85cbc6b904824",
"standardV": "0x0",
"to": "0x84070061032f3e7ea4e068f447fb7cdfc98d57fe",
"transactionIndex": "0x0",
"type": "0x0",
"v": "0xa2d",
"value": "0x0"
}
],
"transactionsRoot": "0xdf7f6b3b15084ae200c321a9b3157e0e8ceca503119c4f49ffb3a689698900db",
"uncles": []
},
"id": 1
}
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_getBlockTransactionCountByNumber
&tag=0x10A70A
&apikey=YourApiKeyToken
Query Parameters
the block number, in hex eg. 0x10FB78
Sample response
{
"jsonrpc":"2.0",
"id":1,
"result":"0xf"
}
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_getTransactionByHash
&txhash=0x16d497db19a2dca7d840e4b8987927e9f5077ab164d218cccc62808654a9cf43
&apikey=YourApiKeyToken
Query Parameters
the string
representing the hash of the transaction
Sample Response
{
"jsonrpc": "2.0",
"result": {
"hash": "0x16d497db19a2dca7d840e4b8987927e9f5077ab164d218cccc62808654a9cf43",
"nonce": "0xf63",
"blockHash": "0xbde50ac1e75783482d97ddaa45477519db35020e29a115d395ee2423faf07880",
"blockNumber": "0x436c79",
"transactionIndex": "0x1",
"from": "0xb8ff877ed78ba520ece21b1de7843a8a57ca47cb",
"to": "0x84070061032f3e7ea4e068f447fb7cdfc98d57fe",
"value": "0x0",
"gasPrice": "0xb2d05e00",
"gas": "0x48d9c",
"input": "0x6c459a28000000000000000000000000e9ba4c1e76d874a43942718dafc96009ec9d99170000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000006482f12a00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000084704316e50000000000000000000000000000000000000000000000000000000000000070ccb3716c66398fe9f990ea60863d530d5e6b38bc272cb9f68369ed96daf4a2730000000000000000000000000000000000000000000000000000000000000005ccb3716c66398fe9f990ea60863d530d5e6b38bc272cb9f68369ed96daf4a27300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008217d73c1898443d5bd7309af78aea352659e25ac8840dcf84697c5f7141f759162bbe84991e84b666e39b82ff18b4a192a18b45d0584e35519c4c1dc742614d7c1cd8dd976defcf497cd17d714dd95baeaaa4b7f46feb3037f7f9484cb7fc2f52831c77b7aab5237431950e57228c10e729d7a40dcc98bef696496be184cc9a244b1b000000000000000000000000000000000000000000000000000000000000",
"creates": null,
"raw": "0xf9026e820f6384b2d05e0083048d9c9484070061032f3e7ea4e068f447fb7cdfc98d57fe80b902046c459a28000000000000000000000000e9ba4c1e76d874a43942718dafc96009ec9d99170000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000006482f12a00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000084704316e50000000000000000000000000000000000000000000000000000000000000070ccb3716c66398fe9f990ea60863d530d5e6b38bc272cb9f68369ed96daf4a2730000000000000000000000000000000000000000000000000000000000000005ccb3716c66398fe9f990ea60863d530d5e6b38bc272cb9f68369ed96daf4a27300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008217d73c1898443d5bd7309af78aea352659e25ac8840dcf84697c5f7141f759162bbe84991e84b666e39b82ff18b4a192a18b45d0584e35519c4c1dc742614d7c1cd8dd976defcf497cd17d714dd95baeaaa4b7f46feb3037f7f9484cb7fc2f52831c77b7aab5237431950e57228c10e729d7a40dcc98bef696496be184cc9a244b1b000000000000000000000000000000000000000000000000000000000000820a2ea06a3c1aa515ccba5d2dc3ab1362c08bd70f6b2362936ce1e0c3429085cbf18c3da013dd8f529786ccdafab2878162bd9ec5d44f573e6cea2fcd51bb4e01721427e6",
"publicKey": "0xb21a7e285d76230d8c1741676a696a7edbf8e3277d137c9f2c9b0fb3ce4e10b496314d8490f2943938c1887fa15a14dcc1ebe6cff53901fd67163b3ed8de6a76",
"chainId": "0x505",
"standardV": "0x1",
"v": "0xa2e",
"r": "0x6a3c1aa515ccba5d2dc3ab1362c08bd70f6b2362936ce1e0c3429085cbf18c3d",
"s": "0x13dd8f529786ccdafab2878162bd9ec5d44f573e6cea2fcd51bb4e01721427e6",
"accessList": null,
"type": "0x0"
},
"id": 1
}
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_getTransactionByBlockNumberAndIndex
&tag=0x10A70A
&index=0x0
&apikey=YourApiKeyToken
Query Parameters
the block number, in hex eg. 0x10FB78
the position of the uncle's index in the block, in hex eg. 0x0
Sample Response
{
"jsonrpc": "2.0",
"result": {
"hash": "0x9a226022e646f4ff638280eaa600a2dcddd70d99028758a5c96fc578dcd9b638",
"nonce": "0x0",
"blockHash": "0xb907de9fd6a69367d91168565527073b5a779dfd870a62d785c3440c243bc17c",
"blockNumber": "0x10a70a",
"transactionIndex": "0x0",
"from": "0x69425ef72f50f1929afe6bac874dcb01fc0c9f5a",
"to": "0xaa30ef758139ae4a7f798112902bf6d65612045f",
"value": "0x2f5a73a58113cfe7",
"gasPrice": "0x9502f900",
"gas": "0x10b628",
"input": "0xfb3bdb4100000000000000000000000000000000000000000000000000000000743aa380000000000000000000000000000000000000000000000000000000000000008000000000000000000000000069425ef72f50f1929afe6bac874dcb01fc0c9f5a0000000000000000000000000000000000000000000000000000000061b9adfa000000000000000000000000000000000000000000000000000000000000000300000000000000000000000098878b06940ae243284ca214f92bb71a2b032b8a0000000000000000000000001a93b23281cc1cde4c4741353f3064709a16197d0000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d6",
"creates": null,
"raw": "0xf9017480849502f9008310b62894aa30ef758139ae4a7f798112902bf6d65612045f882f5a73a58113cfe7b90104fb3bdb4100000000000000000000000000000000000000000000000000000000743aa380000000000000000000000000000000000000000000000000000000000000008000000000000000000000000069425ef72f50f1929afe6bac874dcb01fc0c9f5a0000000000000000000000000000000000000000000000000000000061b9adfa000000000000000000000000000000000000000000000000000000000000000300000000000000000000000098878b06940ae243284ca214f92bb71a2b032b8a0000000000000000000000001a93b23281cc1cde4c4741353f3064709a16197d0000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d6820a2ea0b8f744c3614fd49eba557fb6bfa5dd27559314b61c8ed32a08f2737365467a0fa02023cc07182c5ee9304b3a718ed126dd1eed3485490ef5ac92291f4e96edaff7",
"publicKey": "0xd714421f89229a496f3252a72498beef236a2c5c5c214b84e9991b869fcc17a05bcd2b08be4f6fea763e730de2ad08b062eea94b5cb547f860a46515b11ae31a",
"chainId": "0x505",
"standardV": "0x1",
"v": "0xa2e",
"r": "0xb8f744c3614fd49eba557fb6bfa5dd27559314b61c8ed32a08f2737365467a0f",
"s": "0x2023cc07182c5ee9304b3a718ed126dd1eed3485490ef5ac92291f4e96edaff7",
"accessList": null,
"type": "0x0"
},
"id": 1
}
eth_getTransactionCount
Returns the number of transactions performed by an address.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_getTransactionCount
&address=0xb8ff877ed78ba520ece21b1de7843a8a57ca47cb
&tag=latest
&apikey=YourApiKeyToken
Query Parameters
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":"0xf84"
}
eth_sendRawTransaction
Submits a pre-signed transaction for broadcast to the Moonriver network.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_sendRawTransaction
&hex=0x02f874030185012a05f200852e90edd00082520894eeee7341f206302f2216e39d715b96d8c6901a1c880de0b6b3a764000080c001a0bf61ea5419c7856be4ea2221b721b849d50fec738d10a714e7aaa809d9ad8838a01e59353aa8e567cc0661fb58b047361998df234df6593bf424839bc5ea214a2c
&apikey=YourApiKeyToken
Query Parameters
the string
representing the signed raw transaction data to broadcast.
Sample Response
{
"id":1,
"jsonrpc": "2.0",
"result": "0x84c81fc1e23474e13be0114f94f99b43696830f33292fd1d642f37e87e95acd6"
}
Use eth_getTransactionReceipt to retrieve full details.
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_getTransactionReceipt
&txhash=0x16d497db19a2dca7d840e4b8987927e9f5077ab164d218cccc62808654a9cf43
&apikey=YourApiKeyToken
Query Parameters
the string
representing the hash of the transaction
Sample Response
{
"jsonrpc": "2.0",
"result": {
"transactionHash": "0x16d497db19a2dca7d840e4b8987927e9f5077ab164d218cccc62808654a9cf43",
"transactionIndex": "0x1",
"blockHash": "0xbde50ac1e75783482d97ddaa45477519db35020e29a115d395ee2423faf07880",
"from": "0xb8ff877ed78ba520ece21b1de7843a8a57ca47cb",
"to": "0x84070061032f3e7ea4e068f447fb7cdfc98d57fe",
"blockNumber": "0x436c79",
"cumulativeGasUsed": "0x3cd2d",
"gasUsed": "0x1a97a",
"contractAddress": null,
"logs": [
{
"address": "0xe9ba4c1e76d874a43942718dafc96009ec9d9917",
"topics": [
"0x74bbc026808dcba59692d6a8bb20596849ca718e10e2432c6cdf48af865bc5d9",
"0x0000000000000000000000000000000000000000000000000000000000000070",
"0x00000000000000000000000084070061032f3e7ea4e068f447fb7cdfc98d57fe"
],
"data": "0xccb3716c66398fe9f990ea60863d530d5e6b38bc272cb9f68369ed96daf4a273ccb3716c66398fe9f990ea60863d530d5e6b38bc272cb9f68369ed96daf4a2730000000000000000000000000000000000000000000000000000000000000005",
"blockHash": "0xbde50ac1e75783482d97ddaa45477519db35020e29a115d395ee2423faf07880",
"blockNumber": "0x436c79",
"transactionHash": "0x16d497db19a2dca7d840e4b8987927e9f5077ab164d218cccc62808654a9cf43",
"transactionIndex": "0x1",
"logIndex": "0x3",
"transactionLogIndex": "0x0",
"removed": false
},
{
"address": "0x84070061032f3e7ea4e068f447fb7cdfc98d57fe",
"topics": [
"0x293e3a2153dc5c8d3667cbd6ede71a71674b2381e5dc4b40c91ad0e813447c0f"
],
"data": "0x000000000000000000000000e9ba4c1e76d874a43942718dafc96009ec9d9917c7268b4f0bd81587de51aeb13d6fa405a80b42fbf9b73643b29966bf39f206b3000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xbde50ac1e75783482d97ddaa45477519db35020e29a115d395ee2423faf07880",
"blockNumber": "0x436c79",
"transactionHash": "0x16d497db19a2dca7d840e4b8987927e9f5077ab164d218cccc62808654a9cf43",
"transactionIndex": "0x1",
"logIndex": "0x4",
"transactionLogIndex": "0x1",
"removed": false
}
],
"logsBloom": "0x000000000000000800000000000000000000080000000000000000020000000000000000000000000000000000000000000000000000000000000000100020000000000000000000000000000000000000000000000208000000000000000000000000000000000000400000000000000000000000080000000000000000000080000000000000000000000000000000000000000000000000000000000040000000000200000020000000020a0000000000000000000000000000000000000200000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"effectiveGasPrice": "0xb2d05e00",
"type": "0x0"
},
"id": 1
}
eth_call
Executes a new message call immediately without creating a transaction on the block chain.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_call
&to=0xb8ff877ed78ba520ece21b1de7843a8a57ca47cb
&data=0x60fe47b10000000000000000000000000000000000000000000000000000000000010f2c
&tag=latest
&apikey=YourApiKeyToken
Query Parameters
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
Sample Response
{
"jsonrpc": "2.0",
"result": "0x",
"id": 1
}
eth_getCode
Returns code at a given address.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_getCode
&address=0x84070061032f3e7ea4e068f447fb7cdfc98d57fe
&tag=latest
&apikey=YourApiKeyToken
Query Parameters
the string
representing the address to get code
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
{
"jsonrpc": "2.0",
"result": "0x6080604052600436106100435760003560e01c80633659cfe61461005a5780634f1ef2861461009a5780635c60da1b14610127578063f851a4401461016557610052565b366100525761005061017a565b005b61005061017a565b34801561006657600080fd5b506100506004803603602081101561007d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610194565b610050600480360360408110156100b057600080fd5b73ffffffffffffffffffffffffffffffffffffffff82351691908101906040810160208201356401000000008111156100e857600080fd5b8201836020820111156100fa57600080fd5b8035906020019184600183028401116401000000008311171561011c57600080fd5b5090925090506101e8565b34801561013357600080fd5b5061013c6102bc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561017157600080fd5b5061013c610313565b610182610394565b61019261018d610428565b61044d565b565b61019c610471565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101dd576101d881610495565b6101e5565b6101e561017a565b50565b6101f0610471565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102af5761022c83610495565b60008373ffffffffffffffffffffffffffffffffffffffff1683836040518083838082843760405192019450600093509091505080830381855af49150503d8060008114610296576040519150601f19603f3d011682016040523d82523d6000602084013e61029b565b606091505b50509050806102a957600080fd5b506102b7565b6102b761017a565b505050565b60006102c6610471565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561030857610301610428565b9050610310565b61031061017a565b90565b600061031d610471565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561030857610301610471565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061038c57508115155b949350505050565b61039c610471565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604281526020018061059b6042913960600191505060405180910390fd5b610192610192565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e80801561046c573d6000f35b3d6000fd5b7f0000000000000000000000000ec101cbaf62dfd933745d0efa5a5c7466deafb290565b61049e816104e2565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6104eb81610358565b610540576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806105656036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe5570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e74726163745472616e73706172656e745570677261646561626c6550726f78793a2061646d696e2063616e6e6f742066616c6c6261636b20746f2070726f787920746172676574a26469706673582212200f42fc9d1f991236ae26e240c8505def958528031655d7dd335d3988cc0c88f564736f6c63430007060033",
"id": 1
}
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-moonriver.moonscan.io/api
?module=proxy
&action=eth_getStorageAt
&address=0x84070061032f3e7ea4e068f447fb7cdfc98d57fe
&position=0x0
&tag=latest
&apikey=YourApiKeyToken
Query Parameters
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",
"result": "0x0000000000000000000000000000000000000000000000000000000000000000",
"id": 1
}
eth_gasPrice
Returns the current price per gas in wei.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_gasPrice
&apikey=YourApiKeyToken
Sample Response
{
"jsonrpc":"2.0",
"id":73,
"result":"0x3b9aca07"
}
eth_estimateGas
Makes a call or transaction, which won't be added to the blockchain and returns the used gas.
https://api-moonriver.moonscan.io/api
?module=proxy
&action=eth_estimateGas
&data=0x60fe47b10000000000000000000000000000000000000000000000000000000000000004
&to=0x272c31fC25E4e609CbCC9E7a9e6171b4B39feAca
&value=0x0
&gasPrice=0x51da038cc
&gas=0x186A0
&apikey=YourApiKeyToken
Query Parameters
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
Sample Response
{
"jsonrpc":"2.0",
"id":1,
"result":"0x4a817c80"
}