Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateNativeTreasuryInput<TAccountGovernanceAccount, TAccountNativeTreasuryAccount, TAccountPayer, TAccountSystemProgram>

    type CreateNativeTreasuryInput<
        TAccountGovernanceAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountNativeTreasuryAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        governanceAccount: TAccountGovernanceAccount;
        nativeTreasuryAccount: TAccountNativeTreasuryAccount;
        payer: TAccountPayer;
        systemProgram?: TAccountSystemProgram;
    }

    Type Parameters

    • TAccountGovernanceAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountNativeTreasuryAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    Index
    governanceAccount: TAccountGovernanceAccount

    Governance account the treasury account is for

    nativeTreasuryAccount: TAccountNativeTreasuryAccount

    seeds=['native-treasury', governance]

    systemProgram?: TAccountSystemProgram