Builder Endpoint
Regional Builder Endpoint (Mainnet)
us-east-1
https://us.builder.ethgas.com
eu-central-1
https://eu.builder.ethgas.com
ap-northeast-1 (Tokyo, 1a)
https://ap.builder.ethgas.com
ap-northeast-1 (Tokyo, 1d)
https://ap-2.builder.ethgas.com
eth_sendRawTransaction
{
"jsonrpc": "2.0",
"id": "1",
"method": "eth_sendRawTransaction”,
"params": ["0x…"], // Signed raw tx hex
}
{"result":200,"error":null,"id":1}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.
eth_sendBundle
Submits an ordered bundle of signed transactions to the builder through the endpoints listed above. Transactions are considered together for inclusion, subject to the optional revert and drop rules below.
bundleHash is a builder-computed, 0x-prefixed 32-byte bundle identifier. The value above is a placeholder. It is distinct from the replacement UUID and is not a transaction hash or inclusion receipt.
params contains one bundle object. Transaction bytes, transaction hashes, and addresses use 0x-prefixed hexadecimal strings. Timestamps and replacement sequence numbers use JSON numbers.
Replacing a bundle
Submit another eth_sendBundle request with the same replacementUuid and the updated transactions. When supplying explicit sequence numbers, increase replacementSeqNumber for each update. Use explicit sequence numbers consistently for a replacement group; the automatic counter is local to each RPC server, is not synchronized with caller-supplied values, and resets when the server restarts.
Replacement and cancellation are keyed by UUID alone in this implementation.
Cancelling through eth_sendBundle
An empty txs array with the same replacement UUID submits a cancellation command:
Use a sequence number greater than the preceding bundle update when supplying explicit sequence numbers. An empty bundle without a replacement UUID is rejected.
Errors and acknowledgement
Invalid parameter shapes or types produce a JSON-RPC parameter error. Bundle decoding or validation failures return error code -32602, message "failed to decode bundle", and a data.reason describing the failure. Examples include an invalid signed transaction, an unsupported version, a field incompatible with v1, or an invalid refund percentage. If tracing is enabled for the target block, the error data can also contain bundleHash.
The success response is an RPC acknowledgement. Internal queue timeouts or a closed order-input channel are not propagated as RPC errors, so the response does not prove that the bundle reached the building pipeline.
eth_cancelBundle
Requests cancellation of a replaceable bundle by its replacementUuid. Use the UUID supplied when submitting the bundle, rather than the bundleHash returned in the response. A bundle submitted without a replacement UUID cannot be cancelled with this method.
The request above shows the parameter schema. Replace field names with quoted JSON keys and their values, and remove comments before sending.
params contains one cancellation object.
Cancellation behavior
The cancellation has no target block and is forwarded to all active block-building subscriptions. It uses the maximum unsigned 64-bit replacement sequence number (18446744073709551615), superseding earlier updates for the UUID. Use a new UUID for subsequent submissions after cancelling with this method. The order pool retains cancellation records for approximately 60 seconds, removing expired records when the head updates.
Cancellation can affect work still being built; it cannot undo transactions already included on chain. The null result does not confirm that a matching bundle existed or that cancellation completed. In this implementation, malformed cancellation parameters are logged and also return null, and internal queue delivery failures are not surfaced to the caller.
Last updated