JSON-RPC API
This section provides an interactive reference for the Monad's JSON-RPC API. For a simple example, try getting the latest block.
Debug methods
debug_getRawBlock- returns an RLP-encoded blockdebug_getRawHeader- returns an RLP-encoded headerdebug_getRawReceipts- returns an array of EIP-2718 binary-encoded receiptsdebug_getRawTransaction- returns an EIP-2718 binary-encoded transactiondebug_traceBlockByHash- returns the tracing result by executing all transactions in the block; supports callTracer or prestateTracerdebug_traceBlockByNumber- samedebug_traceCall- returns the tracing result by executing aneth_calldebug_traceTransaction- returns all the traces of a given transaction
Eth methods
eth_blockNumber- returns the most recent block numbereth_call- simulates calling a smart contract without writing a transactioneth_chainId- returns the chainId in hexeth_estimateGas- estimates the gasLimit for a smart contract call to run successfully, using simulation and binary searcheth_feeHistory- returns transaction base fee per gas and effective priority fee per gas for the block rangeeth_gasPrice- returns the current price per gas in MON-wei in hexeth_getBalance- returns the balance of an account in MON-wei in hexeth_getBlockByHash- returns a blocketh_getBlockByNumber- returns a blocketh_getBlockReceipts- returns the receipts of a blocketh_getBlockTransactionCountByHash- returns the number of transactions in a blocketh_getBlockTransactionCountByNumber- returns the number of transactions in a blocketh_getTransactionByBlockHashAndIndex- returns a transactioneth_getTransactionByBlockNumberAndIndex- returns a transactioneth_getTransactionByHash- returns a transactioneth_getTransactionCount- returns the nonce of an addresseth_getTransactionReceipt- returns the receipt for a transactioneth_maxPriorityFeePerGas- returns the currentmaxPriorityFeePerGasin MON-weieth_sendRawTransactioneth_syncing- indicates if node is currently syncing (RPC providers should ensure no node that returns true for this call is serving users)
Other methods
net_version- always returns the chain idweb3_clientVersion- returns the Monad version