pai
    Preparing search index...

    Type Alias CardBuyResult

    What pai buy --card returns. It holds the key only when pai had nowhere to save it.

    type CardBuyResult = {
        api_key?: string;
        balance_usd?: number;
        card_total_usd: number;
        credit_usd: number;
        expires_at: string;
        id?: string;
        payment_id: string;
        saved_to?: string;
        status: string;
        topped_up: boolean;
    }
    Index
    api_key?: string

    A new key that pai could not save, because the key it ran as came from PHANTOM_API_KEY.

    balance_usd?: number

    That key's credit after the payment, in USD, for a top-up.

    card_total_usd: number

    What the card was charged, in USD.

    credit_usd: number

    The credit bought, in USD.

    expires_at: string

    When the key the credit is on runs out, as an ISO 8601 time.

    id?: string

    The new key's id, as keyId computes it.

    payment_id: string

    The payment's id.

    saved_to?: string

    Where a new key was saved: login, or the name given with --save.

    status: string

    The payment's last status, completed when it worked.

    topped_up: boolean

    True when the credit went on the key pai runs as.