• Retrieves a specific node from an auction AVL tree by its index.

    Returns

    The auction node at the specified index, or null if index is out of bounds

    Example

    const tree = await fetchAuctionAVLTreeV1(umi, treePda);
    const node = getAuctionTreeNode(tree, 5);
    if (node) {
    console.log(`Node 5 bid: ${node.bid.pricePerToken}`);
    }

    Parameters

    • tree: AuctionAVLTreeV1

      The auction AVL tree to search in

    • index: number

      The 1-based index of the node to retrieve

    Returns AuctionNode | null

Generated using TypeDoc