Skip to main content

eth_fillTransaction RPC Method

Fills in default values for an unsigned, partially filled transaction object. Returns both the filled transaction and its RLP-encoded raw transaction data.

Updated on
Sep 22, 2026

Parameters

transaction
object

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

from
string
REQUIRED

The address from which the transaction is sent

to
string
REQUIRED

The address to which the transaction is addressed

gas
integer

The integer of gas provided for the transaction execution

gasPrice
integer

The integer of gasPrice used for each paid gas encoded as hexadecimal

maxPriorityFeePerGas
integer

The maximum fee per gas the sender is willing to pay to miners in wei

maxFeePerGas
integer

The maximum total fee per gas the sender is willing to pay (includes the network/base fee and miner/priority fee) in wei

value
integer

The integer of value sent with this transaction encoded as hexadecimal

data
string

The hash of the method signature and encoded parameters. For more information, see the Contract ABI description in the Solidity documentation

nonce
integer

The integer of a nonce. This allows overwriting your own pending transactions that use the same nonce

Returns

result
object

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

raw
string

The RLP-encoded raw transaction data, ready for signing and broadcasting

tx
object

The filled transaction object with all missing fields populated

from
string

The address from which the transaction is sent

to
string

The address to which the transaction is addressed

gas
string

The gas limit provided for the transaction execution

maxFeePerGas
string

The maximum total fee per gas the sender is willing to pay in wei

maxPriorityFeePerGas
string

The maximum fee per gas the sender is willing to pay to miners in wei

value
string

The value sent with this transaction encoded as hexadecimal

input
string | null

The calldata for the transaction (hex-encoded bytes), or null when absent

data
string | null

The calldata for the transaction (hex-encoded bytes), or null when absent

nonce
string

The number of prior transactions sent from the sender account

chainId
string

The chain ID that this transaction is valid on

accessList
array | null

(Optional) EIP-2930 access list of pre-touched addresses and storage keys, or null when absent

authorizationList
array | null

(Optional) List of authorization tuples for the transaction, or null when absent

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"raw": "0x02e9818f80847735940085174876e800829999948c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee0180c0",
5
"tx": {
6
"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",
7
"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",
8
"gas": "0x9999",
9
"maxFeePerGas": "0x174876e800",
10
"maxPriorityFeePerGas": "0x77359400",
11
"value": "0x1",
12
"input": null,
13
"data": null,
14
"nonce": "0x0",
15
"chainId": "0x8f",
16
"accessList": null,
17
"authorizationList": null
18
}
19
},
20
"id": 1
21
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"raw": "0x02e9818f80847735940085174876e800829999948c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee0180c0",
5
"tx": {
6
"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",
7
"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",
8
"gas": "0x9999",
9
"maxFeePerGas": "0x174876e800",
10
"maxPriorityFeePerGas": "0x77359400",
11
"value": "0x1",
12
"input": null,
13
"data": null,
14
"nonce": "0x0",
15
"chainId": "0x8f",
16
"accessList": null,
17
"authorizationList": null
18
}
19
},
20
"id": 1
21
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free