Docs
Supported ChainsMantleJSON-RPC APIAccount Methods

eth_getCode - Mantle RPC Method

Get contract bytecode on Mantle. Essential for verifying smart contracts for liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies.

Returns the bytecode at a given address on Mantle.

Why Mantle? Build on the world's largest ZK rollup by TVL with $2.5B+ secured and deep Bybit integration with near-instant ZK finality via OP Succinct, $6.2B treasury backing, mETH liquid staking, and 25% Bybit trading fee discounts.

Use Cases

The eth_getCode method is essential for:

  • Contract verification - Check if address is a contract
  • Security analysis - Verify deployed bytecode matches expected
  • DeFi integrations - Validate contracts before interactions
  • Protocol analysis - Analyze contract deployments for liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies

Request Parameters

Request
addressDATA

20-byte address

blockParameterQUANTITY|TAG

Block number or tag

Response Body

Response
resultDATA

Contract bytecode or 0x if EOA

Code Examples

Bash
curl -X POST https://api-mantle-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getCode",
    "params": [
      "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
      "latest"
    ],
    "id": 1
  }'

On this page