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 - UInt256!: The transaction nonce.

gasPrice - Wei!: The transaction gas price.

gasLimit - Gas!: The transaction gas limit.

to - Address?: The target contract address, if any.

value - Wei!: The amount of Eth to transfer.

payload - Bytes!: The transaction payload.

keyPair - 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 - UInt256!: The transaction nonce.

gasPrice - Wei!: The transaction gas price.

gasLimit - Gas!: The transaction gas limit.

to - Address?: The target contract address, if any.

value - Wei!: The amount of Eth to transfer.

payload - Bytes!: The transaction payload.

keyPair - KeyPair!: A keypair to generate the transaction signature with.

chainId - Int?: 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 - UInt256!: The transaction nonce.

gasPrice - Wei!: The transaction gas price.

gasLimit - Gas!: The transaction gas limit.

to - Address?: The target contract address, if any.

value - Wei!: The amount of Eth to transfer.

payload - Bytes!: The transaction payload.

chainId - Int?: The chain id.

signature - Signature!: The transaction signature.