class Transaction
(source)
An Ethereum 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)
Create a transaction. |
fun chainId(): Int |
|
fun equals(other: Any?): Boolean |
|
static fun fromBytes(encoded: Bytes): Transaction static fun fromBytes(encoded: Bytes, lenient: Boolean): Transaction
Deserialize a transaction from RLP encoded bytes. |
|
fun gasLimit(): Gas |
|
fun gasPrice(): Wei |
|
fun hash(): Hash
Calculate and return the hash for this transaction. |
|
fun hashCode(): Int |
|
fun isContractCreation(): Boolean |
|
fun nonce(): UInt256 |
|
fun payload(): Bytes |
|
static fun readFrom(reader: RLPReader): Transaction
Deserialize a transaction from an RLP input. |
|
fun sender(): Address? |
|
fun signature(): Signature |
|
static fun signatureData(nonce: UInt256, gasPrice: Wei, gasLimit: Gas, to: Address?, value: Wei, payload: Bytes, chainId: Int?): Bytes |
|
fun to(): Address? |
|
fun toBytes(): Bytes |
|
fun toString(): String |
|
fun value(): Wei |
|
fun writeTo(writer: RLPWriter): Unit
Write this transaction to an RLP output. |