Parameters
- transactionobject
The transaction object with optional fields to be filled. Fields like gas, gasPrice, nonce, and chainId will be populated if not provided.
- fromstringREQUIRED
The address from which the transaction is sent
- tostringREQUIRED
The address to which the transaction is addressed
- gasinteger
The integer of gas provided for the transaction execution
- gasPriceinteger
The integer of gasPrice used for each paid gas encoded as hexadecimal
- maxPriorityFeePerGasinteger
The maximum fee per gas the sender is willing to pay to miners in wei
- maxFeePerGasinteger
The maximum total fee per gas the sender is willing to pay (includes the network/base fee and miner/priority fee) in wei
- valueinteger
The integer of value sent with this transaction encoded as hexadecimal
- datastring
The hash of the method signature and encoded parameters. For more information, see the Contract ABI description in the Solidity documentation
- nonceinteger
The integer of a nonce. This allows overwriting your own pending transactions that use the same nonce
Returns
- resultobject
An object containing the filled transaction and its RLP-encoded form
- rawstring
The RLP-encoded raw transaction data, ready for signing and broadcasting
- txobject
The filled transaction object with all missing fields populated
- fromstring
The address from which the transaction is sent
- tostring
The address to which the transaction is addressed
- gasstring
The gas limit provided for the transaction execution
- maxFeePerGasstring
The maximum total fee per gas the sender is willing to pay in wei
- maxPriorityFeePerGasstring
The maximum fee per gas the sender is willing to pay to miners in wei
- valuestring
The value sent with this transaction encoded as hexadecimal
- inputstring | null
The calldata for the transaction (hex-encoded bytes), or null when absent
- datastring | null
The calldata for the transaction (hex-encoded bytes), or null when absent
- noncestring
The number of prior transactions sent from the sender account
- chainIdstring
The chain ID that this transaction is valid on
- accessListarray | null
(Optional) EIP-2930 access list of pre-touched addresses and storage keys, or null when absent
- authorizationListarray | null
(Optional) List of authorization tuples for the transaction, or null when absent
1{2"jsonrpc": "2.0",3"result": {4"raw": "0x02e9818f80847735940085174876e800829999948c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee0180c0",5"tx": {6"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",7"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",8"gas": "0x9999",9"maxFeePerGas": "0x174876e800",10"maxPriorityFeePerGas": "0x77359400",11"value": "0x1",12"input": null,13"data": null,14"nonce": "0x0",15"chainId": "0x8f",16"accessList": null,17"authorizationList": null18}19},20"id": 121}
1{2"jsonrpc": "2.0",3"result": {4"raw": "0x02e9818f80847735940085174876e800829999948c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee0180c0",5"tx": {6"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",7"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",8"gas": "0x9999",9"maxFeePerGas": "0x174876e800",10"maxPriorityFeePerGas": "0x77359400",11"value": "0x1",12"input": null,13"data": null,14"nonce": "0x0",15"chainId": "0x8f",16"accessList": null,17"authorizationList": null18}19},20"id": 121}