Binance Web3 Connector JS
    Preparing search index...

    Interface BuildDeFiDepositTransactionResponseDataPreview

    Simulation result returned by the build endpoints when simulate=true. Includes whether the action is expected to succeed, the projected balance change, the estimated network fee, and — for lending protocols — the health-factor change. balanceChange, feeAndContract, healthFactor, and warnings each have a fixed structure (see below); the number of entries and some inner values vary by protocol.

    BuildDeFiDepositTransactionResponseDataPreview

    interface BuildDeFiDepositTransactionResponseDataPreview {
        balanceChange?: DefiPreviewBalanceChangeInner[];
        errorMessage?: string;
        feeAndContract?: DefiPreviewFeeAndContract;
        healthFactor?: DefiPreviewHealthFactor;
        success?: boolean;
        warnings?: DefiPreviewWarningsInner[];
    }
    Index

    Signed token balance deltas from the simulation. Each entry has tokenType, tokenSymbol, tokenAddress, tokenDecimals, amount (positive = received, negative = spent), valueUsd, and an optional tokenId.

    BuildDeFiDepositTransactionResponseDataPreview

    errorMessage?: string

    Error message when the simulated transaction is expected to fail.

    BuildDeFiDepositTransactionResponseDataPreview

    feeAndContract?: DefiPreviewFeeAndContract

    BuildDeFiDepositTransactionResponseDataPreview

    BuildDeFiDepositTransactionResponseDataPreview

    success?: boolean

    Whether the simulated transaction is expected to succeed on-chain.

    BuildDeFiDepositTransactionResponseDataPreview

    Non-blocking risk warnings. Empty array when there are no warnings.

    BuildDeFiDepositTransactionResponseDataPreview