Coda by Ian Macalinao
    Preparing search index...

    Type Alias DelegateInput<TAccountTreeAuthority, TAccountLeafOwner, TAccountPreviousLeafDelegate, TAccountNewLeafDelegate, TAccountMerkleTree, TAccountLogWrapper, TAccountCompressionProgram, TAccountSystemProgram>

    type DelegateInput<
        TAccountTreeAuthority extends string = string,
        TAccountLeafOwner extends string = string,
        TAccountPreviousLeafDelegate extends string = string,
        TAccountNewLeafDelegate extends string = string,
        TAccountMerkleTree extends string = string,
        TAccountLogWrapper extends string = string,
        TAccountCompressionProgram extends string = string,
        TAccountSystemProgram extends string = string,
    > = {
        compressionProgram?: Address<TAccountCompressionProgram>;
        creatorHash: DelegateInstructionDataArgs["creatorHash"];
        dataHash: DelegateInstructionDataArgs["dataHash"];
        index: DelegateInstructionDataArgs["index"];
        leafOwner: TransactionSigner<TAccountLeafOwner>;
        logWrapper?: Address<TAccountLogWrapper>;
        merkleTree: Address<TAccountMerkleTree>;
        newLeafDelegate: Address<TAccountNewLeafDelegate>;
        nonce: DelegateInstructionDataArgs["nonce"];
        previousLeafDelegate: Address<TAccountPreviousLeafDelegate>;
        root: DelegateInstructionDataArgs["root"];
        systemProgram?: Address<TAccountSystemProgram>;
        treeAuthority: Address<TAccountTreeAuthority>;
    }

    Type Parameters

    • TAccountTreeAuthority extends string = string
    • TAccountLeafOwner extends string = string
    • TAccountPreviousLeafDelegate extends string = string
    • TAccountNewLeafDelegate extends string = string
    • TAccountMerkleTree extends string = string
    • TAccountLogWrapper extends string = string
    • TAccountCompressionProgram extends string = string
    • TAccountSystemProgram extends string = string
    Index

    Properties

    compressionProgram?: Address<TAccountCompressionProgram>

    The SPL/MPL Account Compression program that owns and manages the Merkle tree.

    leafOwner: TransactionSigner<TAccountLeafOwner>

    Owner of the compressed NFT leaf being operated on.

    logWrapper?: Address<TAccountLogWrapper>

    The SPL/MPL Noop program, used to log leaf data so off-chain indexers can reconstruct the tree.

    merkleTree: Address<TAccountMerkleTree>

    The concurrent Merkle tree account storing the compressed leaves, owned by the account compression program.

    newLeafDelegate: Address<TAccountNewLeafDelegate>

    Delegate to set on the leaf; pass the leaf owner to clear an existing delegate.

    previousLeafDelegate: Address<TAccountPreviousLeafDelegate>

    The leaf's delegate before this instruction runs.

    systemProgram?: Address<TAccountSystemProgram>

    The Solana System program.

    treeAuthority: Address<TAccountTreeAuthority>

    The tree's TreeConfig PDA, which stores its configuration and acts as the tree's authority for CPIs into the compression program.