@cfxlabsinc/b2b-services
    Preparing search index...

    Interact with Solana Mintfx program and related components

    This service is aware token mints and configuration

    Index
    instance: (...args: []) => SolanaMintfxMintService = ...

    The process default: MINTFX_ENV and SOLANA_RPC_ENDPOINT read at each call.

    • Looks up the on-chain transaction signature for a given idempotency key. Returns the signature if the mint has been executed, or null if not.

      Parameters

      • __namedParameters: { idempotencyKey: string }

      Returns Promise<string | null>

    • The IK's completed mint and the token accounts it paid, in target order, or null if the IK has not minted.

      Parameters

      • __namedParameters: { idempotencyKey: string }

      Returns Promise<{ signature: string; targetAccounts: Address[] } | null>

    • Mint instruction, with an idempotent open of every target's token account. Each fees ledger account is a further target, minted beside amount. Authority and payer default to the backoffice MINTFX_AUTHORITY and PAYER.

      Parameters

      • __namedParameters: {
            amount: Value;
            authority?: Address;
            fees?: { amount: Value; ledgerAccountId: string }[];
            idempotencyKey: string;
            payer?: Address;
            targetWallet: Address;
            token: Token;
        }
        • amount: Value
        • Optionalauthority?: Address

          Override for external signers (e.g. Utila MPC). Defaults to backoffice MINTFX_AUTHORITY.

        • Optionalfees?: { amount: Value; ledgerAccountId: string }[]
        • idempotencyKey: string
        • Optionalpayer?: Address

          Override for external signers (e.g. Utila MPC). Defaults to backoffice PAYER.

        • targetWallet: Address
        • token: Token

      Returns Promise<
          Instruction<
              string,
              readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[],
          >[],
      >