eth_signTransaction
Returns an RLP encoded transaction signed by the specified account.
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
Encoded and raw signed transaction object.
Show Transaction result object
Transaction result objectTransaction result fields
-
raw
stringrequiredraw
Match pattern:
^0x[0-9a-f]*$
-
tx
object or object or object or object or objectrequired
Show Option 1
Signed 7702 TransactionobjectSigned 7702 Transactionfieldstx
objectrequiredSigned 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]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
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$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
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
Show Option 2
Signed 4844 TransactionobjectSigned 4844 Transactionfieldstx
objectrequiredSigned 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]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
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$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
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
Show Option 3
Signed 1559 TransactionobjectSigned 1559 Transactionfieldstx
objectrequiredSigned 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]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
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$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
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
Show Option 4
Signed 2930 TransactionobjectSigned 2930 Transactionfieldstx
objectrequiredSigned 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]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
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$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
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
Show Option 5
Signed Legacy TransactionobjectSigned Legacy Transactionfieldstx
objectrequiredSigned Legacy 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]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
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$
-
v
stringrequiredv
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
-
-
additionalProperties
true
Examples
eth_signTransaction example
Request
{
"params": [
{
"from": "0x9d8a62f656a8d1615c1294fd71e9cfb3e4855a4f",
"gas": "0x76c0",
"gasPrice": "0x9184e72a000",
"input": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
"nonce": "0x9",
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"value": "0x9184e72a"
}
]
}
Response
{
"raw": "0xf892098609184e72a0008276c094d46e8dd67c5d32be8058bb8eb970870f07244567849184e72aa9d46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f07244567526a0839ebaab7774ffdae60d418fc8b4192d2cb861ac31acbb5fef26027d1b8f10aea015396a78493395691c10fccc33ec13f2eeb96a3ba2b4ca1652c91bb2b348d12b",
"tx": {
"chainId": "0x1",
"gas": "0x76c0",
"gasPrice": "0x9184e72a000",
"input": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
"nonce": "0x9",
"r": "0x839ebaab7774ffdae60d418fc8b4192d2cb861ac31acbb5fef26027d1b8f10ae",
"s": "0x15396a78493395691c10fccc33ec13f2eeb96a3ba2b4ca1652c91bb2b348d12b",
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"type": "0x0",
"v": "0x26",
"value": "0x9184e72a"
}
}