• Derives Raydium pool PDAs for V2 with property names matching V2 instruction accounts. Uses a Genesis-derived PDA for pool_state (anti-front-run), then derives all dependent Raydium PDAs (lpMint, vaults, observation) from that pool_state.

    Parameters

    • umi: Umi

      Umi instance

    • baseMint: PublicKey<string>

      The base token mint (project mint)

    • raydiumBucket: PublicKey<string>

      The RaydiumCpmmBucketV2 account public key

    • options: {
          ammConfig?: PublicKey<string>;
          creatorFee?: boolean;
          env?: "devnet" | "mainnet";
          quoteMint?: PublicKey<string>;
      } = {}

      Optional configuration

      • Optional ammConfig?: PublicKey<string>

        Explicit override (takes precedence over creatorFee flag)

      • Optional creatorFee?: boolean

        If true, selects the creator-fee AMM config for the environment

      • Optional env?: "devnet" | "mainnet"

        Environment ('mainnet' or 'devnet'), defaults to 'mainnet'

      • Optional quoteMint?: PublicKey<string>

        The quote token mint (defaults to wSOL)

    Returns RaydiumPoolAccountsV2

Generated using TypeDoc