eth_sendTransaction
Signs and submits a transaction.
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-fA-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]*)$
-
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]*)$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringtype
Match pattern:
^0x([0-9a-fA-F]?){1,2}$
-
value
stringvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
false
Result
Transaction hash string
32 byte hex value
Match pattern: ^0x[0-9a-f]{64}$
Errors
Error code: -32700
-
code
-32700
-
message
Parse error
Error code: -32600
-
code
-32600
-
message
Invalid request
Error code: -32601
-
code
-32601
-
message
Method not found
Error code: -32602
-
code
-32602
-
message
Invalid params
Error code: -32603
-
code
-32603
-
message
Internal error
Error code: -32000
-
code
-32000
-
message
Invalid input
Error code: -32001
-
code
-32001
-
message
Resource not found
Error code: -32002
-
code
-32002
-
message
Resource unavailable
Error code: -32003
-
code
-32003
-
message
Transaction rejected
Error code: -32004
-
code
-32004
-
message
Method not supported
Error code: -32005
-
code
-32005
-
message
Limit exceeded
Error code: -32006
-
code
-32006
-
message
JSON-RPC version not supported
Error code: 800
-
code
800
-
message
Intrinsic gas too low / Intrinsic gas exceeds gas limit
Error code: 801
-
code
801
-
message
Transaction ran out of gas
Error code: 802
-
code
802
-
message
Gas price too low / Gas price below configured minimum
Error code: 803
-
code
803
-
message
Tx gas limit exceeds max block gas limit
Error code: 804
-
code
804
-
message
Max priority fee per gas higher than max fee per gas
Error code: 805
-
code
805
-
message
Gas uint64 overflow
Error code: 806
-
code
806
-
message
Max fee per gas less than block base fee
Error code: 807
-
code
807
-
message
Max priority fee per gas higher than 2^256-1
Error code: 808
-
code
808
-
message
Max fee per gas higher than 2^256-1
Error code: 809
-
code
809
-
message
Insufficient funds for gas * price + value
Error code: 1
-
code
1
-
message
Nonce too low
Error code: 2
-
code
2
-
message
Nonce too high
Error code: 3
-
code
3
-
message
Execution reverted
Error code: 4
-
code
4
-
message
Invalid opcode
Error code: 1000
-
code
1000
-
message
Already known transaction
Error code: 1001
-
code
1001
-
message
Invalid sender
Examples
eth_sendTransaction example
Request
{
"params": [
{
"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
"gas": "0x76c0",
"gasPrice": "0x9184e72a000",
"input": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"value": "0x9184e72a"
}
]
}
Response
"0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"