Skip to navigation

eth_fillTransaction

Takes a partial transaction and fills in nonce, gas, fee fields, and chainId from the node’s current state. Returns both the RLP-encoded unsigned transaction and the filled transaction object. The result is unsigned (r, s, v are zero), so you still need to sign it before sending. Values depend on the sender’s current nonce and current fees, so results change over time.

⚡ Compute Units: 75 CU

Request

This endpoint expects an object.
transactionobjectRequired

Partial transaction. from is required to look up the nonce.

Response

RLP-encoded unsigned transaction and the filled transaction object.

rawstringOptionalformat: "^0x[0-9a-fA-F]*$"
txobjectOptional

Filled, unsigned transaction. r, s, and v are 0x0 until you sign it; hash is the hash of the unsigned payload.