Updated on 2023-12-15 GMT+08:00

eth_sendRawTransaction

Introduction

This API creates a new message call transaction or creates a contract for signed transactions. It consumes 300 CUs. In the dedicated edition, the throughput is 1000 per second for 8 vCPUs and 32 GB memory and 2400 per second for 16 vCPUs and 64 GB memory.

Parameter Description

Parameter

Type

Description

Signed transaction data

String

The transaction generated using the private key.

Return Value

The transaction hash, or the zero hash if the transaction is not yet available.

Request

curl https://your-http-endpoint/v1/<API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["signed transaction"],"id":1}'