EasyPath SDK
    Preparing search index...

    Function prepareRobinhoodDeposit

    • Verify quoted RhVault calldata against a trusted deployment vault, intent, token and exact amount. Returns separate steps with decimal atom values. The opaque signed payload is preserved. Supports depositNative(bytes16,bytes) and depositToken(bytes16,uint256,bytes). This validates the quoted request, not the connected wallet or deployed contract code.

      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;
        }
      • options: { vaultAddress: string }

      Returns RobinhoodDepositPlan