quoteIn

Get a quote for swapping tokens from one network to another.

Request Parameters:

Request URL Example:

https://api.magpiefi.xyz/aggregator/quote-in?fromNetwork=ethereum&toNetwork=polygon&fromTokenAddress=0xdac17f958d2ee523a2206206994597c13d831ec7&toTokenAddress=0x3c499c542cef5e3811e1192ce70d8cc03d5c3359&sellAmount=10000000&slippageIn=0.1&slippageOut=0.1&liquiditySources=uniswap-v3&bridgeTypes=1&dataTransferTypes=0

Response Example:

{
  "id": "string",
  "amountOut": "string",
  "magpieAggregatorAddress": "string",
  "fees": [
    {
      "type": "gas",
      "value": "string"
    }
  ]
}

Last updated