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

    CFX's wallets (WALLETS.md §5): reads of b2b.wallet and its secrets, and the wallet-api writes that add an address to one. Admin only: no customer reaches it.

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

    The process default: the signing wallet-api, which serves wallet.deriveAddress.

    • Records the wallet's account-0 address on chain, derived by wallet-api from its live BIP39 secret; created: false when it was already there.

      Parameters

      • __namedParameters: { chain: "EVM" | "BITCOIN_SEGWIT" | "BITCOIN_TAPROOT" | "TRON"; id: string }

      Returns Promise<
          | { ok: true; value: WalletApiDerived }
          | { error: WalletApiDeriveError; ok: false },
      >

    • ACTIVE wallets holding a live BIP39 secret, by external id. idAfter is a keyset cursor; missingAccountZero keeps those whose secret lacks any account-0 row (EVM, TRON, BITCOIN_SEGWIT, BITCOIN_TAPROOT), which deriveAddress writes. Every item names its missingChains.

      Parameters

      • __namedParameters: {
            idAfter?: string;
            ids?: string[];
            missingAccountZero?: boolean;
            page?: number;
            pageSize?: number;
        } = {}

      Returns Promise<
          {
              ok: true;
              value: { hasNext: boolean; items: Bip39Wallet[]; total: number };
          },
      >