eth_fillTransaction
Fills in missing transaction fields to be signed and submitted.
Parameters (by position)
Transaction object required
Transaction object generic to all types
Show Transaction object
Transaction objectTransaction fields
-
accessList
array<object>EIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
authorizationList
array<object>EIP-7702 authorization list
Show
authorizationListobjectauthorizationListfieldsEIP-7702 authorization list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
chainId
stringrequiredChain ID on which this transaction is valid
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
yParity
stringrequiredThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature
Match pattern:
^0x[0-9a-f]{1,2}$
-
additionalProperties
true
-
-
blobVersionedHashes
array<string>List of versioned blob hashes associated with the transaction's EIP-4844 data blobs.
Match pattern:
^0x[0-9a-f]{64}$
-
blobs
array<string>Raw blob data.
Match pattern:
^0x[0-9a-f]*$
-
chainId
stringChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
commitments
array<string>List of blob commitments as per EIP-4844.
Match pattern:
^0x[0-9a-f]*$
-
from
stringfrom address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
gas
stringgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringThe gas price willing to be paid by the sender in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringinput data
Match pattern:
^0x[0-9a-f]*$
-
maxFeePerBlobGas
stringThe maximum total fee per gas the sender is willing to pay for blob gas in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxFeePerGas
stringThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringnonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
proofs
array<string>List of blob proofs. Pre-PeerDAS this contains one KZG proof per blob (length == len(blobs)). Post-PeerDAS this contains cell proofs with length == 128 * len(blobs).
Match pattern:
^0x[0-9a-f]*$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringtype
Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
false
Result
Transaction result object
Filled unsigned transaction object.
Show Transaction result object
Transaction result objectTransaction result fields
-
tx
object or object or object or object or object or objectrequired
Show Option 1
EIP-7702 transactionobjectEIP-7702 transactionfieldstx
objectrequiredEIP-7702 transaction
Show
txobjecttxfields-
accessList
array<object>requiredEIP-2930 access lists
Show
accessListobjectaccessListfieldsEIP-2930 access lists
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
authorizationList
array<object>requiredList of authorizations for the transaction
Show
authorizationListobjectauthorizationListfieldsList of authorizations for the transaction
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
chainId
stringrequiredChain ID on which this transaction is valid
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
yParity
stringrequiredThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature
Match pattern:
^0x[0-9a-f]{1,2}$
-
additionalProperties
true
-
-
chainId
stringrequiredChain ID that this transaction is valid on
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x[0-9a-f]*$
-
maxFeePerGas
stringrequiredThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringrequiredMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
stringrequiredto address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
type
stringrequiredtype
Match pattern:
^0x4$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
Show Option 2
Unsigned 4844 transaction with sidecarobjectUnsigned 4844 transaction with sidecarfieldstx
objectrequiredUnsigned 4844 transaction with sidecar
Show
txobjecttxfields-
accessList
array<object>requiredEIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
blobVersionedHashes
array<string>requiredList of versioned blob hashes associated with the transaction's EIP-4844 data blobs
Match pattern:
^0x[0-9a-f]{64}$
-
blobs
array<string>requiredRaw blob data.
Match pattern:
^0x[0-9a-f]*$
-
chainId
stringrequiredChain ID that this transaction is valid on
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
commitments
array<string>requiredhex encoded bytes
Match pattern:
^0x[0-9a-f]*$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x[0-9a-f]*$
-
maxFeePerBlobGas
stringrequiredThe maximum total fee per gas the sender is willing to pay for blob gas in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxFeePerGas
stringrequiredThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringrequiredMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
proofs
array<string>requiredPre-PeerDAS this contains one KZG proof per blob (length == len(blobs)). Post-PeerDAS this contains cell proofs with length == 128 * len(blobs).
Match pattern:
^0x[0-9a-f]*$
-
to
stringrequiredto address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
type
stringrequiredtype
Match pattern:
^0x3$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
Show Option 3
EIP-4844 transaction.objectEIP-4844 transaction.fieldstx
objectrequiredEIP-4844 transaction.
Show
txobjecttxfields-
accessList
array<object>requiredEIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
blobVersionedHashes
array<string>requiredList of versioned blob hashes associated with the transaction's EIP-4844 data blobs
Match pattern:
^0x[0-9a-f]{64}$
-
chainId
stringrequiredChain ID that this transaction is valid on
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x[0-9a-f]*$
-
maxFeePerBlobGas
stringrequiredThe maximum total fee per gas the sender is willing to pay for blob gas in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxFeePerGas
stringrequiredThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringrequiredMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
stringrequiredto address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
type
stringrequiredtype
Match pattern:
^0x3$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
Show Option 4
EIP-1559 transaction.objectEIP-1559 transaction.fieldstx
objectrequiredEIP-1559 transaction.
Show
txobjecttxfields-
accessList
array<object>requiredEIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
chainId
stringrequiredChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringrequiredThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x[0-9a-f]*$
-
maxFeePerGas
stringrequiredThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringrequiredMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringrequiredtype
Match pattern:
^0x2$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
Show Option 5
EIP-2930 transaction.objectEIP-2930 transaction.fieldstx
objectrequiredEIP-2930 transaction.
Show
txobjecttxfields-
accessList
array<object>requiredEIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
chainId
stringrequiredChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringrequiredThe gas price willing to be paid by the sender in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x[0-9a-f]*$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringrequiredtype
Match pattern:
^0x1$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
Show Option 6
Legacy transaction.objectLegacy transaction.fieldstx
objectrequiredLegacy transaction.
Show
txobjecttxfields-
chainId
stringChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringrequiredThe gas price willing to be paid by the sender in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x[0-9a-f]*$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringrequiredtype
Match pattern:
^0x0$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
-
-
additionalProperties
true