encodeLease
encodeLease(
lease?):Uint8Array<ArrayBufferLike> |undefined
Defined in: src/transaction/transaction.ts:23
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?”The transaction lease as a string or binary array or null/undefined if there is no lease
string | Uint8Array<ArrayBufferLike>
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]))