Coda by Ian Macalinao
    Preparing search index...

    Interface ParsedCreateRealmInstruction<TProgram, TAccountMetas>

    interface ParsedCreateRealmInstruction<
        TProgram extends string = typeof SPL_GOVERNANCE_PROGRAM_ADDRESS,
        TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
    > {
        accounts: {
            communityTokenHoldingAccount: TAccountMetas[3];
            communityTokenMint: TAccountMetas[2];
            communityVoterWeightAddin?: TAccountMetas[11];
            councilTokenHoldingAccount?: TAccountMetas[9];
            councilTokenMint?: TAccountMetas[8];
            councilVoterWeightAddin?: TAccountMetas[13];
            maxCommunityVoterWeightAddin?: TAccountMetas[12];
            maxCouncilVoterWeightAddin?: TAccountMetas[14];
            payer: TAccountMetas[4];
            realmAccount: TAccountMetas[0];
            realmAuthority: TAccountMetas[1];
            realmConfig: TAccountMetas[10];
            rent: TAccountMetas[7];
            systemProgram: TAccountMetas[5];
            tokenProgram: TAccountMetas[6];
        };
        data: CreateRealmInstructionData;
        programAddress: Address<TProgram>;
    }

    Type Parameters

    Index

    Properties

    accounts: {
        communityTokenHoldingAccount: TAccountMetas[3];
        communityTokenMint: TAccountMetas[2];
        communityVoterWeightAddin?: TAccountMetas[11];
        councilTokenHoldingAccount?: TAccountMetas[9];
        councilTokenMint?: TAccountMetas[8];
        councilVoterWeightAddin?: TAccountMetas[13];
        maxCommunityVoterWeightAddin?: TAccountMetas[12];
        maxCouncilVoterWeightAddin?: TAccountMetas[14];
        payer: TAccountMetas[4];
        realmAccount: TAccountMetas[0];
        realmAuthority: TAccountMetas[1];
        realmConfig: TAccountMetas[10];
        rent: TAccountMetas[7];
        systemProgram: TAccountMetas[5];
        tokenProgram: TAccountMetas[6];
    }

    Type Declaration

    • communityTokenHoldingAccount: TAccountMetas[3]

      The account to hold the community tokens. PDA seeds=['governance', realm, community_mint]

    • communityTokenMint: TAccountMetas[2]

      The mint address of the token to be used as the community mint

    • OptionalcommunityVoterWeightAddin?: TAccountMetas[11]

      Optional Community Voter Weight Addin Program Id

    • OptionalcouncilTokenHoldingAccount?: TAccountMetas[9]

      The account to hold the council tokens. PDA seeds: ['governance',realm,council_mint]

    • OptionalcouncilTokenMint?: TAccountMetas[8]

      The mint address of the token to be used as the council mint

    • OptionalcouncilVoterWeightAddin?: TAccountMetas[13]

      Optional Council Voter Weight Addin Program Id

    • OptionalmaxCommunityVoterWeightAddin?: TAccountMetas[12]

      Optional Max Community Voter Weight Addin Program Id

    • OptionalmaxCouncilVoterWeightAddin?: TAccountMetas[14]

      Optional Max Council Voter Weight Addin Program Id

    • payer: TAccountMetas[4]

      the payer of this transaction

    • realmAccount: TAccountMetas[0]

      Governance Realm account

    • realmAuthority: TAccountMetas[1]

      The authority of the Realm

    • realmConfig: TAccountMetas[10]

      Realm Config account

    • rent: TAccountMetas[7]

      SysVar Rent

    • systemProgram: TAccountMetas[5]

      System Program

    • tokenProgram: TAccountMetas[6]

      SPL Token Program

    programAddress: Address<TProgram>