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
apiKey
Request
This endpoint expects an object.
Transaction
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.
raw
The RLP-encoded transaction data as a hexadecimal string.
tx
The filled transaction object with all fields populated.