encodeLease
encodeLease(
lease?):Uint8Array<ArrayBufferLike> |undefined
Defined in: algokit-utils-ts/src/transaction/transaction.ts:81
Encodes a transaction lease into a 32-byte array ready to be included in an Algorand transaction.
Parameters
Section titled “Parameters”lease?
Section titled “lease?”string | Uint8Array<ArrayBufferLike>
The transaction lease as a string or binary array or null/undefined if there is no lease
Returns
Section titled “Returns”Uint8Array<ArrayBufferLike> | undefined
the transaction lease ready for inclusion in a transaction or undefined if there is no lease
Throws
Section titled “Throws”if the length of the data is > 32 bytes or empty
Examples
Section titled “Examples”algokit.encodeLease('UNIQUE_ID')algokit.encodeLease(new Uint8Array([1, 2, 3]))