Skip to main content

Interface: TransactionLike

Transaction

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Methods​

asV1()​

asV1(): TransactionV1Like;

Returns​

TransactionV1Like


digest()​

digest(): TransactionDigestLike;

Returns​

TransactionDigestLike


expiration()​

expiration(): any;

Returns​

any


gasPayment()​

gasPayment(): GasPayment;

Returns​

GasPayment


kind()​

kind(): TransactionKindLike;

Returns​

TransactionKindLike


sender()​

sender(): AddressLike;

Returns​

AddressLike


signingDigest()​

signingDigest(): ArrayBuffer;

Get the signing digest.

Returns​

ArrayBuffer


signingDigestHex()​

signingDigestHex(): string;

Get the signing digest as a hex string.

Returns​

string


toBase64()​

toBase64(): string;

Serialize the transaction as a base64-encoded string.

Returns​

string


toBcs()​

toBcs(): ArrayBuffer;

Convert this type to BCS encoded bytes.

Returns​

ArrayBuffer


toDisplayString()​

toDisplayString(): string;

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

Returns​

string


toJson()​

toJson(): string;

Convert this type to a JSON encoded string.

Returns​

string