Skip to content

encodeTransaction

encodeTransaction(transaction): Uint8Array

Defined in: packages/transact/src/transactions/transaction.ts:391

Encode the transaction with the domain separation (e.g. “TX”) prefix

Transaction

The transaction to encode

Uint8Array

The MsgPack encoded bytes or an error if encoding fails.