Skip to main content

eth_fillTransaction RPC Method

Fills missing transaction fields and returns an unsigned raw transaction with its decoded fields.

Updated on
Nov 26, 2026

The from address may be omitted. For a legacy transaction with gasPrice, the returned tx.maxFeePerGas and tx.maxPriorityFeePerGas are null, while tx.accessList, tx.chainId, and tx.yParity are omitted. For contract creation without a recipient, tx.to is null.

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

accessList
array

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

chainId
string

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

gas
string

Filled gas limit

gasPrice
string | null

Legacy gas price, or null for a type 2 transaction

hash
string

Hash of the unsigned transaction

input
string

Transaction input data

maxFeePerGas
string | null

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

maxPriorityFeePerGas
string | null

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

nonce
string

Filled sender nonce

r
string

Zero before signing

s
string

Zero before signing

to
string | null

Recipient address, or null for contract creation

type
string

Transaction type

v
string

Zero before signing

value
string

Transfer value

yParity
string

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

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