Invisium
  • Invisium: INTRODUCTION
    • Introduction: Unleashing the Power of Web3 Infrastructure
  • Invisium: TECHNICAL DOCUMENTATION
    • Invisium: Integration Flow
      • Who can integrate?
    • The List of Features
    • Trading API
      • Uniswap V2 Reserves Extraction
      • Curve Finance: Amount Out After Trade
      • Uniswap V3: Amount Out After Trade
      • Complex Path Trade Simulation
    • Custom Node RPC
      • State Override
    • Simulations
      • Block Estimation State
      • Simulate Transaction - cgp_simulateTransaction
      • Simulate Single Transaction With Override
      • Bundle Simulation - cgp_simulateTransactionsBundle
    • Supported Chains List
  • Invisium: Pricing & Roadmap
    • Pricing: The Canvas Of Possibility
      • Compute Units Table: The Art of Efficiency
  • Invisium: SLAs & Limits
    • SLAs
    • API Limits
Powered by GitBook
On this page
Export as PDF
  1. Invisium: TECHNICAL DOCUMENTATION
  2. Trading API

Curve Finance: Amount Out After Trade

Supply (StableSwap, StableSwapNG, Pool, TriPool supported) pool address, input & output tokens and amountIn and get real amountOut.

Request Example:

curl --location 'https://api.invisium.com/get-amount-out-curve-fi' \
--header 'Content-Type: application/json' \
--data '{
    "poolAddress": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7",
    "tokenIn": "0x6b175474e89094c44da98b954eedeac495271d0f",
    "tokenOut": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "amountIn": 1000000000000000000
}'

Response Output:

{
    "amountOut": "999913"
}
PreviousUniswap V2 Reserves ExtractionNextUniswap V3: Amount Out After Trade

Last updated 6 months ago