Created
July 14, 2022 07:28
-
-
Save isaldin/d710ae016272304e50e2a619bb8be8c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://swap-builder.1inch.io/v4.0/1/swap/build' \ | |
-H 'authority: swap-builder.1inch.io' \ | |
-H 'accept: application/json, text/plain, */*' \ | |
-H 'accept-language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' \ | |
-H 'cache-control: no-cache' \ | |
-H 'content-type: application/json' \ | |
-H 'origin: http://localhost:4200' \ | |
-H 'pragma: no-cache' \ | |
-H 'referer: http://localhost:4200/' \ | |
-H 'sec-ch-ua: ".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103"' \ | |
-H 'sec-ch-ua-mobile: ?0' \ | |
-H 'sec-ch-ua-platform: "macOS"' \ | |
-H 'sec-fetch-dest: empty' \ | |
-H 'sec-fetch-mode: cors' \ | |
-H 'sec-fetch-site: cross-site' \ | |
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36' \ | |
--data-raw '{"isLedgerLive":false,"fromTokenAddress":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","toTokenAddress":"0xd533a949740bb3306d119cc777fa900ba034cd52","amount":"1000000000000000000","guaranteedAmount":"1074234862734128647688","minTokensAmount":"1074224120385501306401","allowedSlippagePercent":0.001,"burnChi":false,"enableEstimate":true,"ethValue":"1000000000000000000","gasPrice":"19148702211","referrerAddress":"0x0000000000000000000000000000000000000000","walletAddress":"0x1333c53a798547126ca04647ba925485a6fa7aad","allowUnoSwap":true,"pathfinderData":{"routes":[{"amount":"1074234862734128647688","part":10,"subRoutes":[[{"fromTokenAddress":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","toTokenAddress":"0xd533a949740bb3306d119cc777fa900ba034cd52","part":50,"market":{"name":"PMM1","id":"PMM1_CRV-WETH"},"meta":{"fromAmount":"1000000000000000000","fromTokenAddress":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","toTokenAddress":"0xd533a949740bb3306d119cc777fa900ba034cd52","toTokenAmount":"1074234862734128647688"}}]]}],"mainParts":10,"splitParts":50},"allowPartialFill":true,"protectPMM":true}' \ | |
--compressed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment