Created
March 3, 2026 22:26
-
-
Save olegpetroveth/6d26c040a60cde874462d5f0e7008a93 to your computer and use it in GitHub Desktop.
A sample SwapKit API quote response with SLIP-24
This file contains hidden or 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
| { | |
| "sellAsset": "BTC.BTC", | |
| "sellAmount": "0.1", | |
| "buyAsset": "ETH.ETH", | |
| "expectedBuyAmount": "3.441363018288409364", | |
| "expectedBuyAmountMaxSlippage": "3.338122127739757083", | |
| "fees": [ | |
| { | |
| "type": "affiliate", | |
| "amount": "0.00018", | |
| "asset": "BTC.BTC", | |
| "chain": "NEAR", | |
| "protocol": "NEAR" | |
| }, | |
| { | |
| "type": "service", | |
| "amount": "0.00005", | |
| "asset": "BTC.BTC", | |
| "chain": "NEAR", | |
| "protocol": "NEAR" | |
| }, | |
| { | |
| "type": "outbound", | |
| "amount": "0.000035", | |
| "asset": "ETH.ETH", | |
| "chain": "ETH", | |
| "protocol": "NEAR" | |
| }, | |
| { | |
| "type": "inbound", | |
| "amount": "0.000004", | |
| "asset": "BTC.BTC", | |
| "chain": "BTC", | |
| "protocol": "NEAR" | |
| } | |
| ], | |
| "routeId": "c2fed9f7-3a4e-4ce2-9c9f-b8b9549ac774", | |
| "providers": [ | |
| "NEAR" | |
| ], | |
| "expiration": "1772579126", | |
| "estimatedTime": { | |
| "inbound": 1200, | |
| "swap": 405.75, | |
| "outbound": 12.5, | |
| "total": 1618.25 | |
| }, | |
| "totalSlippageBps": 1703.5616835233484, | |
| "legs": [ | |
| { | |
| "provider": "NEAR", | |
| "sellAsset": "BTC.BTC", | |
| "sellAmount": "0.1", | |
| "buyAsset": "ETH.ETH", | |
| "buyAmount": "3.441363018288409364", | |
| "buyAmountMaxSlippage": "3.338122127739757083", | |
| "fees": [ | |
| { | |
| "type": "affiliate", | |
| "amount": "0.00018", | |
| "asset": "BTC.BTC", | |
| "chain": "NEAR", | |
| "protocol": "NEAR" | |
| }, | |
| { | |
| "type": "service", | |
| "amount": "0.00005", | |
| "asset": "BTC.BTC", | |
| "chain": "NEAR", | |
| "protocol": "NEAR" | |
| }, | |
| { | |
| "type": "outbound", | |
| "amount": "0.000035", | |
| "asset": "ETH.ETH", | |
| "chain": "ETH", | |
| "protocol": "NEAR" | |
| }, | |
| { | |
| "type": "inbound", | |
| "amount": "0.000004", | |
| "asset": "BTC.BTC", | |
| "chain": "BTC", | |
| "protocol": "NEAR" | |
| } | |
| ] | |
| } | |
| ], | |
| "warnings": [], | |
| "sourceAddress": "bc1qlxtqhzc988x8gayyctwyv8ev20fsp822t5t3yq", | |
| "destinationAddress": "0x6C0fe33D76485E8965Fa49e8524653f3eE2084c4", | |
| "targetAddress": "18vnbzxeePr6M6Mm8wg83zhveph6QwEDpm", | |
| "inboundAddress": "18vnbzxeePr6M6Mm8wg83zhveph6QwEDpm", | |
| "tx": "cHNidP8BAHQCAAAAASv15x5yMqSEMMlnchVyryo8S/8nMT7PERXv83o3crQAAQAAAAD/////AoCWmAAAAAAAGXapFFb0/on4TT2bHpk/dJYYj8aF6xjLiKydVjWIAQAAABYAFPmWC4sFOcx0dITC3EYfLFPTAJ1KAAAAAAABAR/17c2IAQAAABYAFPmWC4sFOcx0dITC3EYfLFPTAJ1KAAAA", | |
| "meta": { | |
| "assets": [ | |
| { | |
| "asset": "BTC.BTC", | |
| "price": 92164, | |
| "image": "https://storage.googleapis.com/token-list-swapkit-dev/images/btc.btc.png" | |
| }, | |
| { | |
| "asset": "ETH.ETH", | |
| "price": 3134.36, | |
| "image": "https://storage.googleapis.com/token-list-swapkit-dev/images/eth.eth.png" | |
| } | |
| ], | |
| "tags": [ | |
| "RECOMMENDED", | |
| "FASTEST", | |
| "CHEAPEST" | |
| ], | |
| "priceImpact": 0.17035616835233483, | |
| "affiliate": "0d67578828a0adf3de7af9bb195dfb2f0ec5553c4ca0e195cc8d4e3ff2aee8be", | |
| "affiliateFee": "18", | |
| "txType": "PSBT", | |
| "isFastQuote": false, | |
| "isRefreshed": true, | |
| "slip24": { | |
| "recipientName": "SWAPKIT (NEAR)", | |
| "nonce": null, | |
| "memos": [ | |
| { | |
| "type": "coinPurchase", | |
| "coinPurchase": { | |
| "coinType": 60, | |
| "amount": "3.441363018288409364 ETH", | |
| "address": "0x6C0fe33D76485E8965Fa49e8524653f3eE2084c4" | |
| } | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "amount": 10000000, | |
| "address": "18vnbzxeePr6M6Mm8wg83zhveph6QwEDpm" | |
| } | |
| ], | |
| "signature": "F8N0AAQ6vouVusHPeh89NLP29Rs4wb7Rx2OHiH9Fzy53/twp7Wx5l7Sm08nGk789lsyfluuOq3UEihDamOs/NA==" | |
| } | |
| }, | |
| "swapId": "d9ef1a66-4869-41c0-9fcb-91f8636bd7e2" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment