Transaction(nonce: UInt256, gasPrice: Wei, gasLimit: Gas, @Nullable to: Address?, value: Wei, payload: Bytes, keyPair: KeyPair)
Create a transaction.
nonce
- The transaction nonce.
gasPrice
- The transaction gas price.
gasLimit
- The transaction gas limit.
to
- The target contract address, if any.
value
- The amount of Eth to transfer.
payload
- The transaction payload.
keyPair
- A keypair to generate the transaction signature with.
Transaction(nonce: UInt256, gasPrice: Wei, gasLimit: Gas, @Nullable to: Address?, value: Wei, payload: Bytes, keyPair: KeyPair, @Nullable chainId: Int?)
Create a transaction.
nonce
- The transaction nonce.
gasPrice
- The transaction gas price.
gasLimit
- The transaction gas limit.
to
- The target contract address, if any.
value
- The amount of Eth to transfer.
payload
- The transaction payload.
keyPair
- A keypair to generate the transaction signature with.
Transaction(nonce: UInt256, gasPrice: Wei, gasLimit: Gas, @Nullable to: Address?, value: Wei, payload: Bytes, @Nullable chainId: Int?, signature: Signature)
Create a transaction.
nonce
- The transaction nonce.
gasPrice
- The transaction gas price.
gasLimit
- The transaction gas limit.
to
- The target contract address, if any.
value
- The amount of Eth to transfer.