Ok
const response = await fetch('https://beta.usemoon.ai//thorswap/quote?sellAsset=text&buyAsset=text&sellAmount=0&senderAddress=text&recipientAddress=text&chainId=text', {
method: 'GET',
headers: {
"Authorization": "text"
},
});
const data = await response.json();
{
"success": false,
"message": "text",
"data": {
"id": "text",
"type": "text",
"tool": "text",
"action": {
"fromChainId": 0,
"fromAmount": "text",
"fromToken": {
"address": "text",
"chainId": 0,
"symbol": "text",
"decimals": 0,
"name": "text",
"coinKey": "text",
"logoURI": "text",
"priceUSD": "text"
},
"fromAddress": "text",
"toChainId": 0,
"toToken": {
"address": "text",
"chainId": 0,
"symbol": "text",
"decimals": 0,
"name": "text",
"coinKey": "text",
"logoURI": "text",
"priceUSD": "text"
},
"toAddress": "text",
"slippage": 0
},
"estimate": {
"fromAmount": "text",
"toAmount": "text",
"toAmountMin": "text",
"approvalAddress": "text",
"gasCosts": [
{
"type": "text",
"price": "text",
"estimate": "text",
"limit": "text",
"amount": "text",
"amountUSD": "text",
"token": {
"address": "text",
"symbol": "text",
"name": "text",
"decimals": 0,
"logoURI": "text"
}
}
],
"executionDuration": 0,
"feeCosts": [
{
"name": "text",
"percentage": 0,
"token": {
"name": "text",
"address": "text",
"symbol": "text",
"decimals": 0,
"logoURI": "text",
"chainId": 0
},
"amount": 0
}
],
"fromAmountUSD": "text",
"toAmountUSD": "text"
},
"includedSteps": [
{
"id": "text",
"type": "text",
"tool": "text",
"action": {
"fromChainId": 0,
"fromAmount": "text",
"fromToken": {
"address": "text",
"chainId": 0,
"symbol": "text",
"decimals": 0,
"name": "text",
"coinKey": "text",
"logoURI": "text",
"priceUSD": "text"
},
"fromAddress": "text",
"toChainId": 0,
"toToken": {
"address": "text",
"chainId": 0,
"symbol": "text",
"decimals": 0,
"name": "text",
"coinKey": "text",
"logoURI": "text",
"priceUSD": "text"
},
"toAddress": "text",
"slippage": 0
},
"estimate": {
"fromAmount": "text",
"toAmount": "text",
"toAmountMin": "text",
"approvalAddress": "text",
"gasCosts": [
{
"type": "text",
"price": "text",
"estimate": "text",
"limit": "text",
"amount": "text",
"amountUSD": "text",
"token": {
"address": "text",
"symbol": "text",
"name": "text",
"decimals": 0,
"logoURI": "text"
}
}
],
"executionDuration": 0,
"feeCosts": [
{
"name": "text",
"percentage": 0,
"token": {
"name": "text",
"address": "text",
"symbol": "text",
"decimals": 0,
"logoURI": "text",
"chainId": 0
},
"amount": 0
}
],
"fromAmountUSD": "text",
"toAmountUSD": "text"
}
}
],
"transactionRequest": {
"nonce": "text",
"data": "text",
"value": "text",
"to": "text",
"from": "text",
"maxFeePerGas": "text",
"maxPriorityFeePerGas": "text"
}
}
}