Please note that Quicknode does not support the eth_signTransaction RPC method. To sign a transaction without a node-held key, see How to Sign Ethereum Transactions Locally.
Parameters
- objectobject
The transaction response object which contains the following fields:
- fromREQUIRED
The address the transaction is sent from
- to
The address the transaction is directed to
- gas
The integer of the gas provided for the transaction execution
- gasPrice
The integer of the gasPrice used for each paid gas, in wei
- value
The integer of the value sent with this transaction, in wei
- dataREQUIRED
The compiled code of a contract or the hash of the invoked method signature and encoded parameters
- nonce
The integer of a nonce. This allows overwriting the own pending transactions that use the same nonce
Returns
- result
The signed transaction object
Request
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"5}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free