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

Uniswap V3: Amount Out After Trade

Supply Uniswap V3 (Solidly or Pancake V3 supported too) pool address, input & output tokens and amountIn and get real amountOut.

Request Example:

curl --location 'https://api.invisium.com/get-amount-out-v3' \
--header 'Content-Type: application/json' \
--data '{
    "poolAddress": "0x109830a1aaad605bbf02a9dfa7b0b92ec2fb7daa",
    "tokenIn": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "tokenOut": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
    "amountIn": 1000000000000000000
}'

Response Example:

{
    "amountOut": "848478764525971171"
}
PreviousCurve Finance: Amount Out After TradeNextComplex Path Trade Simulation

Last updated 6 months ago