eth_fillTransaction

Fills in default values for a transaction object. This method populates missing fields such as `gas`, `gasPrice`, `nonce`, and `chainId` based on the current network state and transaction parameters. It returns both the filled transaction object and the RLP-encoded raw transaction data. This is useful for preparing transactions before signing, as it ensures all required fields are present with appropriate values.

Path parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
TransactionobjectRequired

The transaction object with optional fields to be filled. Fields like gas, gasPrice, nonce, and chainId will be populated if not provided.

Response

An object containing the filled transaction and its RLP-encoded form.

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

The RLP-encoded transaction data as a hexadecimal string.

txobject
The filled transaction object with all fields populated.