Serializes a Serializable
value to its BCS representation.
This function is the TypeScript SDK equivalent of bcs::to_bytes
in Move.
the BCS representation of the Serializable instance as a byte buffer.
Converts the BCS-serialized bytes of a value into a Hex instance. This function provides a Hex representation of the BCS-serialized data for easier handling and manipulation.
A Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array.
Contains the payload to run a multi-sig account transaction.
The payload of the multi-sig transaction. This can only be EntryFunction for now but, Script might be supported in the future.
Returns the hex string representation of the Serializable
value with the 0x prefix.
the hex formatas a string prefixed by 0x
.
Returns the hex string representation of the Serializable
value without the 0x prefix.
the hex format as a string without 0x
prefix.
Static
deserialize
Represents a multi-signature transaction payload that can be serialized and deserialized. This class is designed to encapsulate the transaction payload for multi-sig account transactions as defined in the
multisig_account.move
module. Future enhancements may allow support for script payloads as themultisig_account.move
module evolves.