tuweni / org.apache.tuweni.eth / Transaction / <init>

<init>

Transaction(nonce: UInt256, gasPrice: Wei, gasLimit: Gas, @Nullable to: Address?, value: Wei, payload: Bytes, keyPair: KeyPair)

Create a transaction.

Parameters

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.

Parameters

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.

chainId - the chain ID.

Transaction(nonce: UInt256, gasPrice: Wei, gasLimit: Gas, @Nullable to: Address?, value: Wei, payload: Bytes, @Nullable chainId: Int?, signature: Signature)

Create a transaction.

Parameters

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.

chainId - The chain id.

signature - The transaction signature.