Mantle (MNT)

GetBlock provides fast and reliable access to Mantle nodes via JSON-RPC API. Connect to the Mantle network without running your own infrastructure.

Mantle is a high-performance Ethereum Layer 2 scaling solution built with a modular architecture. It combines an optimistic rollup protocol with EigenDA for data availability, delivering low fees and high security while maintaining full EVM compatibility. Mantle separates core blockchain functions into specialized modules for optimal performance.

Key Features

  • Full EVM Compatibility: Deploy Ethereum smart contracts without modification

  • Modular Architecture: Separates execution, data availability, and settlement layers

  • EigenDA Integration: First L2 to use EigenDA for efficient data availability

  • MNT Native Token: Uses MNT for gas fees and governance

  • Low Transaction Fees: Significantly cheaper than Ethereum mainnet

  • Ethereum Security: Inherits security from Ethereum L1 through optimistic rollups

  • 7-Day Dispute Window: Fraud proof period for transaction finality

  • High Throughput: Designed for 500+ TPS with modular scaling

TECHNICAL DISCLAIMER: AUTHORITATIVE JSON-RPC API SPECIFICATION.

GetBlock's RPC API reference documentation is provided exclusively for informational purposes and streamlined developer experience optimization. The canonical and normative specification for Ethereum Virtual Machine (EVM) JSON-RPC methods is solely maintained and published through the official Ethereum Foundation documentation portal at ethereum.org. This resource constitutes the sole authoritative reference implementation of the JSON-RPC 2.0 protocol interface across EVM-compatible execution clients.

Network Information

Property
Value

Network Name

Mantle Mainnet

Chain ID

5000

Native Currency

MNT

RPC URL

https://rpc.mantle.xyz

EVM Compatibility

Full bytecode compatibility

Consensus

Optimistic Rollup (Modular)

Data Availability

EigenDA

Settlement Layer

Ethereum L1

Base URL

Supported Networks

Network
Chain ID
JSON RPC
WSS
New York, USA
Frankfurt, Germany
Singapore, Singapore

Mainnet

5000

Quickstart

In this section, you will learn how to make your first call with either:

  • Axios

  • Python

Quickstart with Axios

1

Setup project

Create and initialize a new project:

2

Install Axios

3

Create file

Create a new file named index.js. This is where you will make your first call.

4

Set ES module type

Set the ES module "type": "module" in your package.json.

5

Add code

Add the following code to index.js:

Replace <ACCESS-TOKEN> with your actual access token from GetBlock.

6

Run the script

Expected output (example):

Quickstart with Python and Requests

1

Setup the project directory

2

Create and activate a virtual environment

3

Install requests

4

Create script

Create a file called main.py with the following content:

Replace <ACCESS-TOKEN> with your actual access token from GetBlock.

5

Run the script

Available API Methods

GetBlock provides access to standard Ethereum JSON-RPC methods for the Mantle network.

Transaction Methods

Method
Description

eth_getTransactionByHash

Returns transaction by hash

eth_getTransactionByBlockHashAndIndex

Returns transaction by block hash and index

eth_getTransactionByBlockNumberAndIndex

Returns transaction by block number and index

eth_getTransactionCount

Returns the transaction count (nonce)

eth_getTransactionReceipt

Returns the receipt of a transaction

eth_sendRawTransaction

Submits a signed transaction

Account/State Methods

Method
Description

eth_getBalance

Returns the balance of an address

eth_getStorageAt

Returns the value at a storage position

eth_getCode

Returns the code at an address

eth_call

Executes a call without creating a transaction

eth_getProof

Returns account and storage proof

eth_accounts

Returns a list of addresses owned by client

Gas and Fee Methods

Method
Description

eth_gasPrice

Returns the current gas price

eth_estimateGas

Estimates gas for a transaction

eth_feeHistory

Returns historical gas information

eth_maxPriorityFeePerGas

Returns current max priority fee

Filter Methods

Method
Description

eth_getLogs

Returns logs matching filter criteria

eth_newFilter

Creates a log filter

eth_newBlockFilter

Creates a block filter

eth_getFilterChanges

Returns filter changes since last poll

eth_getFilterLogs

Returns all logs matching filter

eth_uninstallFilter

Removes a filter

Subscription Methods (WebSocket)

Method
Description

eth_subscribe

Creates a subscription for events

eth_unsubscribe

Cancels an existing subscription

Network/Chain Methods

Method
Description

eth_chainId

Returns the chain ID

eth_syncing

Returns sync status

eth_mining

Returns mining status

net_version

Returns the network ID

net_listening

Returns listening status

net_peerCount

Returns number of connected peers

web3_clientVersion

Returns client version

web3_sha3

Returns Keccak-256 hash of data

Debug Methods

Method
Description

debug_traceBlockByHash

Traces all transactions in a block by hash

debug_traceBlockByNumber

Traces block by number

debug_traceTransaction

Traces a specific transaction

debug_traceCall

Traces a call without creating transaction

Support

For technical support and questions:

See Also

Last updated

Was this helpful?