Add a new object input to the transaction.
Returns an argument for the gas coin, to be used in a transaction.
The pure value, serialized to BCS. If this is a Uint8Array, then the value is assumed to be raw bytes, and will be used directly.
Add a transaction to the transaction
Add a transaction to the transaction
Build the transaction to BCS bytes.
Get a snapshot of the transaction data, in JSON form:
Derive transaction digest
Ensures that:
When true, the transaction will always be built to the same bytes and digest (unless the transaction is mutated)
Add a new object input to the transaction using the fully-resolved object reference.
If you only have an object ID, use builder.object(id) instead.
Add a new receiving input to the transaction using the fully-resolved object reference.
If you only have an object ID, use builder.object(id) instead.
Optionalexpiration: null | EnumInputShape<{ Epoch: string | number; None: true }>Sets the sender only if it has not already been set. This is useful for sponsored transaction flows where the sender may not be the same as the signer address.
Add a new shared object input to the transaction using the fully-resolved shared object reference.
If you only have an object ID, use builder.object(id) instead.
Build the transaction to BCS bytes, and sign it with the provided keypair.
StaticfromConverts from a serialized transaction format to a Transaction class.
There are two supported serialized formats:
Transaction#serialize. The serialized format must be compatible, or it will throw an error.StaticfromConverts from a serialize transaction kind (built with build({ onlyTransactionKind: true })) to a Transaction class.
Supports either a byte array, or base64-encoded bytes.
StaticregisterStaticregisterStaticunregisterStaticunregister
Transaction Builder