@heliuslabs/spr - v0.9.0-alpha
    Preparing search index...

    Function getCreateTreeInstructionsAsync

    • Mirrors Rust CreateTree::instructions. The tree PDA is allocated in TREE_ALLOCATION_STEP chunks, so creation is TREE_CREATION_STEP_COUNT identical instructions that must land in one transaction. treeId has to be the protocol config's nextTreeId. fees defaults to the at-cost schedule for the chosen ZKP batch size.

      Parameters

      Returns Promise<
          Instruction<
              string,
              readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[],
          >[],
      >