EasyPath SDK
    Preparing search index...

    Function verifySolanaDeposit

    • Checks a deposit transaction against its quote: the sender is the only signer and fee payer, only compute-budget instructions besides one transfer of exactly the quoted amount and token to the quoted destination, followed by exactly one memo whose bytes equal the quote's memo. The memo is opaque and compared byte-for-byte. signed additionally requires a valid sender signature; otherwise the signature slot must be empty.

      Parameters

      • quote: {
            amountIn: string;
            deadline: number;
            deposit:
                | {
                    solana: {
                        amount: string;
                        lastValidBlockHeight: number;
                        memo: string;
                        to: string;
                        token: string;
                        tx: string;
                    };
                }
                | {
                    robinhood: {
                        approval?: { data: string; required: boolean; to: string };
                        data: string;
                        to: string;
                        value: string;
                    };
                };
            estimatedAmountOut: string;
            estimatedAmountOutUsd: string;
            estimatedTimeMs: number;
            fees: {
                bridgeFee: { amount: string; token: string; usd?: string
                | null };
                bridgeFeeBps: number;
                destFillGas: { amount: string; token: string; usd?: string | null };
                originGasEstimate: { amount: string; token: string; usd?: string | null };
                totalFeeUsd: string;
            };
            intentId: string;
            minAmountOut: string;
            persisted: true;
            recommendedSlippage: number;
            route: {
                destinationChainId: string;
                destinationToken: string;
                originChainId: string;
                originToken: string;
            };
            signatureRequired: false;
        }
      • senderAddress: string
      • tx: string | Uint8Array<ArrayBufferLike>
      • options: { signed?: boolean } = {}

      Returns SolanaDepositCheck