Swap
post
Authorizations
AuthorizationstringRequired
Header parameters
AuthorizationstringRequired
Body
chainIdstringRequired
accountNamestringRequired
providerstringOptional
recipientAddressstringRequired
senderAddressstringRequired
toAssetstringRequired
fromAssetstringRequired
amountnumber · doubleRequired
Responses
200
Ok
application/json
post
/thorswap/swapPOST /thorswap/swap HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 153
{
"chainId": "text",
"accountName": "text",
"provider": "text",
"recipientAddress": "text",
"senderAddress": "text",
"toAsset": "text",
"fromAsset": "text",
"amount": 1
}200
Ok
{
"success": true,
"message": "text",
"data": "text"
}