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

    Interface NearIntentsService

    NEAR Intents (Messenger.NEAR_INTENTS) quotes and deposits.

    Send flow:

    1. getQuote (or getAmountToBeReceived / getAmountToSend with Messenger.NEAR_INTENTS) to show the expected amounts, minAmountOut and the ETA.
    2. buildSendTransaction (or bridge.rawTxBuilder.send with Messenger.NEAR_INTENTS): creates a deposit and builds a plain transfer of the source tokens to its deposit address.
    3. Sign and send the transaction before deposit.deadline.
    4. Optionally submitDeposit with the transaction hash to speed up the processing.

    No approval is needed. Source chains: EVM, SOL, TRX, SRB and SUI (ALG and STX are not supported).

    interface NearIntentsService {
        buildSendTransaction(
            params: NearIntentsSendParams,
            provider?: Provider,
        ): Promise<NearIntentsSendTransaction>;
        createDeposit(
            params: NearIntentsCreateDepositParams,
        ): Promise<NearIntentsDeposit>;
        getQuote(params: NearIntentsQuoteParams): Promise<NearIntentsQuote>;
        submitDeposit(params: NearIntentsSubmitDepositParams): Promise<void>;
    }
    Index

    Methods