DeFi & Yield

vltUSDC Vault USDC-Only Exit Calldata

FREE — No payment required. Returns 3 unsigned Ethereum transactions that convert vltUSDC shares entirely to USDC: (1) vault.redeem(shares, recipient) — burns shares, sends VLT + USDC to recipient; (2) VLT.approve(uniswapV2Router, vltAmount); (3) v2Router.swapExactTokensForTokens(VLT → WETH → USDC). VLT and USDC amounts from step 1 use vault.previewRedeem (exact on-chain, no approximation). minAmountOut for the V2 swap is computed from live getReserves with 2% slippage and enforced on-chain. Fails closed if any on-chain data is unavailable. Builder Pattern — zero custody. For a 1-tx exit that keeps VLT, use vlt-usdc-withdraw instead.

post/x402/vlt-usdc-zap-withdraw

Request

  • Base URL: https://coinrailz.com
  • URL: https://coinrailz.com/x402/vlt-usdc-zap-withdraw
  • Auth: API key in header X-API-KEY

Request body

sharesstring required

vltUSDC shares to redeem as raw 18-decimal integer string (e.g. '1790439768343002' for the platform's current position)

recipientstring required

Ethereum address to receive all USDC output (lowercase accepted, auto-normalized)

Response

steps[]: [{step, action, to, data, value, gasEstimate, note}], totalEstimatedUsdc, minUsdcFromSwap, previewVltOut, previewUsdcFromVault, quotedUsdcFromSwap, agentInstructions

Changes

No recorded changes to this operation across all 1 revision of this API.