@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: []) => SolanaMintfxTransferService = ...

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

    • Build transfer instructions for a ledger account transfer.

      Nothing opens a ledger account's token account before the first mint or transfer into it, so the source's and each target's are created idempotently first. A never-funded source then fails as underfunded rather than uninitialised, and the failed transaction pays for nothing.

      Parameters

      • __namedParameters: {
            authority: Address;
            idempotencyKey: string;
            payer: Address;
            sourceWalletId: string;
            targets: { amount: string; walletId: string }[];
        }

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