Documentation
    Preparing search index...

    Inputs for mintCost: an exact payout quantity.

    interface MintCostInputs {
        book?: MintBookTerms;
        builderCode?: boolean;
        expiryMs: number | bigint;
        feeIncentiveBalance?: number | bigint;
        fees: FeePolicy;
        lotSize?: bigint;
        nowMs?: number | bigint;
        penaltyRate?: bigint;
        probabilities: ProbabilitySource;
        quantity: number | bigint;
    }

    Hierarchy

    • MintInputsBase
      • MintCostInputs
    Index

    Pre-trade payout-tree terms. Required when inventory impact is enabled.

    builderCode?: boolean

    Whether the minting account carries a builder code (it pays the builder fee).

    expiryMs: number | bigint

    Market expiry, ms since epoch.

    feeIncentiveBalance?: number | bigint

    The expiry's remaining sponsored fee balance (fee_incentive_balance). Default 0n.

    fees: FeePolicy

    The market's snapshotted fee policy.

    lotSize?: bigint

    The deployment's position_lot_size. Defaults to the Move constant, 10_000n.

    nowMs?: number | bigint

    The clock the trade will price against, ms since epoch. Defaults to Date.now().

    penaltyRate?: bigint

    Per-unit congestion surcharge rate — see congestionPenaltyRate. Default 0n.

    probabilities: ProbabilitySource

    Boundary probabilities, or a pricer snapshot plus the range's strikes.

    quantity: number | bigint

    Maximum payout bought, in quote units — number is human USD, bigint is raw.