@allbridge/bridge-core-sdk
    Preparing search index...

    Interface LifiIntentsOrder

    A LI.FI Intents order: a live quote with the transaction that opens it. Amounts are float strings. The order is short-lived, see validUntil and fillDeadline: create it right before signing.

    interface LifiIntentsOrder {
        amountIn: string;
        amountOut: string;
        approval?: LifiIntentsApproval;
        fee: string;
        fillDeadline: Date;
        orderId: string;
        recipient: string;
        sender: string;
        timeEstimate: number;
        transaction: LifiIntentsOrderTransaction;
        validUntil: Date;
    }
    Index

    Properties

    amountIn: string

    The float amount to send, in source token units, the Allbridge fee included

    amountOut: string

    The float amount to receive, in destination token units

    The allowance the sender must have given before sending the transaction. Optional: absent for a native source token and for a Solana source

    fee: string

    The Allbridge fee, float in source token units; a part of amountIn

    fillDeadline: Date

    The transaction reverts after this time (about 10 min after the order creation): create a new order then

    orderId: string

    The escrow order id (bytes32 hex): the transfer id shown by the explorer and getTransferStatus

    recipient: string

    The recipient on the destination chain the order was created for

    sender: string

    The address the order was created for; it must sign the transaction

    timeEstimate: number

    Estimated transfer time, seconds

    The transaction to sign and send, see LifiIntentsOrderTransaction

    validUntil: Date

    The LI.FI quote validity (40-120 s after the order creation): the exclusive solver fills the order only for about 90 s, so sign the transaction at once