T402 API Reference - v2.8.0
    Preparing search index...

    Interface PaymentPlanResult

    Payment plan result

    interface PaymentPlanResult {
        viable: boolean;
        recommendedNetwork?: string;
        availableBalance?: string;
        bridgeRequired: boolean;
        bridgeDetails?: {
            fromChain: string;
            toChain: string;
            amount: string;
            estimatedFee: string;
        };
        balances: { chain: string; usdt0: string; usdc: string }[];
        reason?: string;
    }
    Index

    Properties

    viable: boolean

    Whether a viable plan was found

    recommendedNetwork?: string

    Recommended network to pay on

    availableBalance?: string

    Available balance on that network

    bridgeRequired: boolean

    Whether bridging is needed

    bridgeDetails?: {
        fromChain: string;
        toChain: string;
        amount: string;
        estimatedFee: string;
    }

    Bridge details if needed

    balances: { chain: string; usdt0: string; usdc: string }[]

    Balances across all chains

    reason?: string

    Reason if not viable