Skip to content

fromBoxes

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

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

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.

opts

schema?

null | CompiledSchema

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.