pai
    Preparing search index...

    Type Alias SolanaPaymentRequest

    A direct Solana payment request from /v1/purchase/solana.

    type SolanaPaymentRequest = {
        amount: string;
        amount_base_units: string;
        coin: BuyCoin;
        expires_at: string;
        mint: string | null;
        payment_id: string;
        recipient: string;
        recovery_code?: string;
        reference: string;
        solana_pay_url: string;
    }
    Index
    amount: string

    The amount to send, in whole coins, as a decimal string.

    amount_base_units: string

    Exact amount in token micro-units or lamports.

    coin: BuyCoin

    The coin to pay in.

    expires_at: string

    When the payment request lapses, as an ISO 8601 time.

    mint: string | null

    The token's mint address for USDC and USDT. null for SOL.

    payment_id: string

    The id to check the payment with, as in pai payment <id>.

    recipient: string

    The wallet to pay. For USDC and USDT this is the owner; the tokens go to its token account.

    recovery_code?: string

    A code pai sends back in the x-phantom-recovery-code header when it checks the payment.

    reference: string

    Solana Pay reference key. The payment is found on chain by it.

    solana_pay_url: string

    A solana: link with the recipient, amount, mint and reference, for a wallet app to open.