v1

latestOpenAPI 3.1.02026-07-234211.9 KB
eth_sendRawTransaction

eth_sendRawTransaction

Creates new message call transaction or a contract creation for signed transactions.

post/{apiKey}/megafuel/{networkId}

Path parameters

apiKeystring required
networkIdstring required
  • For mainnet, the supported networkId values are 56 (bsc mainnet) and 201 (opBNB mainnet)
  • For testnet, the supported networkId values are 97 (bsc testnet) and 5611 (opBNB testnet)

Headers

X-MegaFuel-Policy-Uuidstring uuid required

to specify which private policy the caller wants to use.

Request body

idinteger
jsonrpcstring
method'eth_sendRawTransaction'
paramsstring[]

String - The signed transaction data.

Response

idinteger
jsonrpcstring
resultstring

Hash - 32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available