Alchemy Logo

eth_sendRawTransaction

POST
/{apiKey}

Submits a raw transaction (serialized and signed) for broadcasting to the network. The transaction data should be encoded as a hexadecimal string starting with 0x. You can create and sign a transaction externally using libraries like web3.js or ethers.js.

Note: For EIP-4844 transactions, the raw form must be in the network format, which includes blobs, KZG commitments, and KZG proofs.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Transactionstringformat: "^0x[0-9a-f]*$"required

The raw transaction data to submit, encoded as a hexadecimal string.

Responses

200

The hash of the submitted transaction, as a hexadecimal string.

Was this page helpful?