class Transaction
(source)
An Ethereum transaction.
<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!) |
equals |
fun equals(other: Any?): Boolean |
extractPublicKey |
Extracts the public key of the signature of the transaction. If the transaction is invalid, the public key may be null. fun extractPublicKey(): PublicKey? |
fromBytes |
Deserialize a transaction from RLP encoded bytes. static fun fromBytes(encoded: Bytes!): Transaction! static fun fromBytes(encoded: Bytes!, lenient: Boolean): Transaction! |
getChainId |
Provides the chain id fun getChainId(): Int! |
getGasLimit |
Provides the gas limit fun getGasLimit(): Gas! |
getGasPrice |
Provides the gas price fun getGasPrice(): Wei! |
getHash |
Calculate and return the hash for this transaction. fun getHash(): Hash! |
getNonce |
Provides the transaction nonce fun getNonce(): UInt256! |
getPayload |
Provides the transaction payload fun getPayload(): Bytes! |
getSender |
Provides the sender's address fun getSender(): Address? |
getSignature |
Provides the transaction signature fun getSignature(): Signature! |
getTo |
Provides the target contact address. fun getTo(): Address? |
getValue |
Provides the amount of eth to transfer fun getValue(): Wei! |
hashCode |
fun hashCode(): Int |
isContractCreation |
Returns true if the transaction creates a contract. 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 |
Provides the transaction bytes fun toBytes(): Bytes! |
toString |
fun toString(): String |
writeTo |
Write this transaction to an RLP output. fun writeTo(writer: RLPWriter!): Unit |