Skip to main content

eth_fillTransaction RPC Method

Fills missing transaction fields and returns an unsigned raw transaction with its decoded fields. It does not broadcast the transaction.

Updated on
Dec 02, 2026

Parameters

transaction
object
REQUIRED

Transaction to populate with missing gas, fee, and nonce values

from
string

Sender address. May be omitted.

to
string

Recipient address

value
string

Value to transfer, as a hexadecimal quantity

data
string

Transaction input data, as hexadecimal bytes

gas
string

Gas limit, as a hexadecimal quantity

nonce
string

Sender nonce, as a hexadecimal quantity

gasPrice
string

Legacy gas price, as a hexadecimal quantity

maxFeePerGas
string

Maximum fee per gas for a type 2 transaction

maxPriorityFeePerGas
string

Maximum priority fee per gas for a type 2 transaction

Returns

raw
string

Unsigned serialized transaction, encoded as hexadecimal bytes

tx
object

Populated transaction fields

type
string

Transaction type

chainId
string

Chain ID as a hexadecimal quantity for a type 2 transaction; omitted for a legacy transaction

nonce
string

Filled sender nonce

gas
string

Filled gas limit

maxFeePerGas
string

Filled maximum fee per gas for a type 2 transaction, or null for a legacy transaction

maxPriorityFeePerGas
string

Filled maximum priority fee per gas for a type 2 transaction, or null for a legacy transaction

to
string

Recipient address, or null for contract creation

value
string

Transfer value

accessList
array

Addresses and storage keys to access for a type 2 transaction; omitted for a legacy transaction

input
string

Transaction input data

r
string

Zero before signing

s
string

Zero before signing

yParity
string

Zero before signing a type 2 transaction; omitted for a legacy transaction

v
string

Zero before signing

hash
string

Hash of the unsigned transaction

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"raw": "0x02ea8280ea82372f80840db5858082520894339d413ccefd986b1b3647a9cfa9cbbe70a307498080c0808080",
6
"tx": {
7
"type": "0x2",
8
"chainId": "0x80ea",
9
"nonce": "0x372f",
10
"gas": "0x5208",
11
"maxFeePerGas": "0xdb58580",
12
"maxPriorityFeePerGas": "0x0",
13
"to": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
14
"value": "0x0",
15
"accessList": [],
16
"input": "0x",
17
"r": "0x0",
18
"s": "0x0",
19
"yParity": "0x0",
20
"v": "0x0",
21
"hash": "0x42ff7f41c0ab8d4eff37363233ce738b59040ff7ce84b6ac907d30688e4ee7fa"
22
}
23
}
24
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"raw": "0x02ea8280ea82372f80840db5858082520894339d413ccefd986b1b3647a9cfa9cbbe70a307498080c0808080",
6
"tx": {
7
"type": "0x2",
8
"chainId": "0x80ea",
9
"nonce": "0x372f",
10
"gas": "0x5208",
11
"maxFeePerGas": "0xdb58580",
12
"maxPriorityFeePerGas": "0x0",
13
"to": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
14
"value": "0x0",
15
"accessList": [],
16
"input": "0x",
17
"r": "0x0",
18
"s": "0x0",
19
"yParity": "0x0",
20
"v": "0x0",
21
"hash": "0x42ff7f41c0ab8d4eff37363233ce738b59040ff7ce84b6ac907d30688e4ee7fa"
22
}
23
}
24
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free