eth_sendRawTransaction - Mantle

Example code for the eth_sendRawTransaction JSON-RPC method. Complete guide on how to use eth_sendRawTransaction JSON-RPC in GetBlock Web3 documentation.

This method creates a new message call transaction or contract creation for signed transactions on the Mantle network.

Parameters

Parameter
Type
Description

signedTransactionData

string

The signed transaction data (hex encoded)

Request

curl
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_sendRawTransaction",
    "params": ["0xf86c0a8502540be400825208944bbeeb066ed09b7aed07bf39eee0460dfa261520880de0b6b3a7640000801ca0f3ae..."],
    "id": "getblock.io"
}'

Response

response.json
{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}

Response Parameters

Field
Type
Description

jsonrpc

string

JSON-RPC protocol version ("2.0")

id

string

Request identifier matching the request

result

string

Transaction hash (32 bytes)

Use Case

The eth_sendRawTransaction method is essential for:

  • Submitting signed transactions

  • Token transfers on Mantle

  • Smart contract interactions

  • DeFi protocol transactions

  • NFT minting and transfers

  • Batch transaction submission

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid ACCESS-TOKEN

-32000

Nonce too low

Transaction nonce already used

-32000

Insufficient funds

Not enough MNT for gas

-32000

Gas price too low

Gas price below minimum

Web3 Integration

Last updated

Was this helpful?