Skip to content

fromBoxes

fromBoxes<T>(algorand, appId): Promise<T>

Defined in: packages/store-kit/src/objects/state.ts:49

Assembles data from an Algorand application by retrieving and processing box names and their values.

Type Parameters

T

Parameters

algorand

AlgorandClient

The Algorand client instance to interact with the blockchain.

appId

bigint

The ID of the application to retrieve the data from.

Returns

Promise<T>

Throws

If the provided algorand parameter is not an instance of AlgorandClient.

Throws

If the provided appId is not of type bigint.