Mantle API overview

Mantle is a Layer 2 scaling solution for Ethereum, designed to offer faster transactions and lower fees while leveraging Ethereum’s security and decentralized infrastructure.

Accounts info#

Retrieve key data about accounts on the Mantle network

eth_accounts
eth_getBalance
eth_getCode
eth_getProof
eth_getStorageAt

Blocks info#

Provides methods to retrieve detailed information about specific blocks

eth_blockNumber
eth_getBlockByHash
eth_getBlockByHash#full
eth_getBlockByNumber
eth_getBlockByNumber#full
eth_newBlockFilter
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber

Chain info#

Provides crucial details about the state and performance of the Mantle network

eth_chainId
net_listening
net_version
net_peerCount
eth_syncing
eth_hashrate

Debug and trace#

Offers advanced debugging and tracing capabilities

debug_traceBlockByHash
debug_traceBlockByNumber
debug_traceTransaction

Event logs#

Provides methods for filtering and retrieving event logs

eth_getLogs
eth_newFilter
eth_getFilterChanges
eth_uninstallFilter
eth_getFilterLogs

Executing transactions#

Provides essential methods for sending transactions, executing smart contract calls, and performing on-chain operations

eth_call
eth_sendRawTransaction

Gas estimation#

Provides methods to estimate the gas required for transactions and fetch information related to gas prices

eth_feeHistory
eth_estimateGas
eth_gasPrice
eth_maxPriorityFeePerGas

Getting uncles#

Retrieves information about "uncle" blocks, which are valid but not included in the blockchain.

eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber

Mining#

Contains methods related to mining operations

eth_mining

Subscriptions#

Allows to subscribe to specific events

eth_subscribe
eth_unsubscribe

Transactions info#

Provides methods to retrieve transaction details, counts, and receipts

eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex

Web3#

Provides methods for retrieving basic network configuration data related to nodes

web3_clientVersion
web3_sha3