@lightprotocol/stateless.js - v0.22.1-alpha.1
    Preparing search index...

    Type Alias TreeInfo

    Tree info, versioned via TreeType. The protocol stores compressed accounts in state trees, and PDAs in address trees.

    Onchain Accounts are subject to Solana's write-lock limits.

    To load balance transactions, use selectStateTreeInfo to randomly select a tree from a range of active trees.

    Example:

    const infos = await rpc.getStateTreeInfos();
    const info = selectStateTreeInfo(infos);
    const ix = await CompressedTokenProgram.compress({
    // ...
    outputStateTreeInfo: info
    });
    type TreeInfo = {
        tree: PublicKey;
        queue: PublicKey;
        treeType: TreeType;
        cpiContext?: PublicKey;
        nextTreeInfo: TreeInfo | null;
    }
    Index

    Properties

    tree: PublicKey

    Pubkey of the tree account.

    queue: PublicKey

    Pubkey of the queue account associated with the tree.

    treeType: TreeType

    The type of tree. One of TreeType.

    cpiContext?: PublicKey

    Optional compressed cpi context account.

    nextTreeInfo: TreeInfo | null

    Next tree info. Is some if the next tree should be used for the next state transition.