pai
    Preparing search index...

    Function buyAndPay

    • Buys credit for this key and pays for it from one of the agent's wallets.

      Parameters

      • apiKey: string
      • env: Env
      • opts: {
            amount_usd: number;
            coin: "usdc" | "sol" | "usdcsol";
            onStatus?: (s: string) => void;
            sleep?: (ms: number) => Promise<void>;
            wallet?: string;
        }

      Returns Promise<SelfPayResult>