eth / org.apache.tuweni.eth / Transaction

Transaction

class Transaction (source)

An Ethereum transaction.

Constructors

<init>

Create a transaction.

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

Functions

equals

fun equals(other: Any?): Boolean

fromBytes

Deserialize a transaction from RLP encoded bytes.

static fun fromBytes(encoded: Bytes!): Transaction!
static fun fromBytes(encoded: Bytes!, lenient: Boolean): Transaction!

getChainId

fun getChainId(): Int!

getGasLimit

fun getGasLimit(): Gas!

getGasPrice

fun getGasPrice(): Wei!

getHash

Calculate and return the hash for this transaction.

fun getHash(): Hash!

getNonce

fun getNonce(): UInt256!

getPayload

fun getPayload(): Bytes!

getSender

fun getSender(): Address?

getSignature

fun getSignature(): Signature!

getTo

fun getTo(): Address?

getValue

fun getValue(): Wei!

hashCode

fun hashCode(): Int

isContractCreation

fun isContractCreation(): Boolean

readFrom

Deserialize a transaction from an RLP input.

static fun readFrom(reader: RLPReader!): Transaction!

signatureData

static fun signatureData(nonce: UInt256!, gasPrice: Wei!, gasLimit: Gas!, to: Address?, value: Wei!, payload: Bytes!, chainId: Int?): Bytes!

toBytes

fun toBytes(): Bytes!

toString

fun toString(): String

writeTo

Write this transaction to an RLP output.

fun writeTo(writer: RLPWriter!): Unit