TransactionV1
open class TransactionV1 : Disposable, AutoCloseable, TransactionV1Interface
A transaction
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Constructors
| TransactionV1 | constructor(kind: TransactionKind, sender: Address, gasPayment: GasPayment, expiration: TransactionExpiration) |
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| digest | open override fun digest(): TransactionDigest |
| equals | open operator override fun equals(other: Any?): Boolean |
| expiration | open override fun expiration(): TransactionExpiration |
| gasPayment | open override fun gasPayment(): GasPayment |
| kind | open override fun kind(): TransactionKind |
| sender | open override fun sender(): Address |
| signingDigest | open override fun signingDigest(): ByteArray Get the signing digest. |
| signingDigestHex | open override fun signingDigestHex(): String Get the signing digest as a hex string. |
| toBase64 | open override fun toBase64(): String Serialize the transaction as a base64-encoded string. |
| toBcs | open override fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | open override fun toDisplayString(): String Render this type as human-readable text. |
| toJson | open override fun toJson(): String Convert this type to a JSON encoded string. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| fromBase64 | fun fromBase64(bytes: String): TransactionV1 Deserialize a transaction from a base64-encoded string. |
| fromBcs | fun fromBcs(bcs: ByteArray): TransactionV1 Create this type from BCS encoded bytes. |
| fromJson | fun fromJson(json: String): TransactionV1 Create this type from a JSON encoded string. |