Skip to main content
POST
/
rpc
relayer_sendTransactionSync
curl --request POST \
  --url https://api.gelato.cloud/rpc \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <x-api-key>' \
  --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "relayer_sendTransactionSync",
  "params": {
    "chainId": "137",
    "payment": {
      "type": "sponsored",
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
    },
    "to": "0x55f3a93f544e01ce4378d25e927d7c493b863bd7",
    "data": "0x29cb0f49...",
    "context": "<string>",
    "authorizationList": [
      {
        "address": "<string>",
        "chainId": 123,
        "nonce": 123,
        "r": "<string>",
        "s": "<string>",
        "yParity": 123
      }
    ],
    "timeout": 60000
  }
}
'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "transactionHash": "0x0e670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",
    "blockNumber": "<string>",
    "blockHash": "<string>",
    "gasUsed": "<string>",
    "status": 123
  }
}

Headers

X-API-Key
string
required

Gelato API key for authentication.

Body

application/json
id
number
default:1
required
jsonrpc
string
default:2.0
required
method
string
default:relayer_sendTransactionSync
required
params
object
required

Response

Successful response

id
number
default:1
jsonrpc
string
default:2.0
result
object

Transaction receipt returned when transaction is included on-chain