Skip to content

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.

The transaction lease as a string or binary array or null/undefined if there is no lease

string | Uint8Array<ArrayBufferLike>

Uint8Array<ArrayBufferLike> | undefined

the transaction lease ready for inclusion in a transaction or undefined if there is no lease

if the length of the data is > 32 bytes or empty

algokit.encodeLease('UNIQUE_ID')
algokit.encodeLease(new Uint8Array([1, 2, 3]))