Documentation
    Preparing search index...

    Exact pre-trade quote: the dry-run receipt of the mint you are about to send.

    interface MintQuote {
        cost: number;
        entryProbability: number;
        fees: {
            builder: number;
            inventoryImpact: number;
            penalty: number;
            referral: number;
            subsidy: number;
            trading: number;
        };
        feesExact: true;
        premium: number;
        quantity: number;
        raw: {
            cost: bigint;
            entryProbability: bigint;
            premium: bigint;
            quantity: bigint;
        };
    }
    Index
    cost: number

    All-in account debit: premium + (trading − subsidy) + builder + penalty + inventoryImpact — exactly what the chain withdraws (the deployed compute_mint_quote's all_in_cost); pass this (plus your buffer) as maxCost.

    entryProbability: number

    Fill price, 0..1 per $1 payout.

    fees: {
        builder: number;
        inventoryImpact: number;
        penalty: number;
        referral: number;
        subsidy: number;
        trading: number;
    }

    Fee breakdown. referral is a PORTION of the trader-paid trading fee and congestion surcharge routed to the referrer — it is already inside those numbers and is NOT an extra debit. inventoryImpact is a separate charge and IS part of cost.

    feesExact: true

    True: computed by the real mint code path against real account state.

    premium: number

    Premium paid into LP backing (quote units).

    quantity: number
    raw: {
        cost: bigint;
        entryProbability: bigint;
        premium: bigint;
        quantity: bigint;
    }