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
Build the transaction to BCS bytes.
Get a snapshot of the transaction data, in JSON form:
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.
Optional
expiration: 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.
Static
fromConverts 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.Static
fromConverts from a serialize transaction kind (built with build({ onlyTransactionKind: true })
) to a Transaction
class.
Supports either a byte array, or base64-encoded bytes.
Static
registerStatic
registerStatic
unregisterStatic
unregister
Transaction Builder