4️⃣Transactions
1. Create Transaction
In the Basic SDK, you could get the transaction via swap endpoint. Please check this link for more information on this:
2. Check Transaction Status
After that user signed a transaction on his/her wallet you should call this endpoint periodically to see what's the status of that transaction.
const transaction = await rangoClient.status({
requestId: swapResponse.requestId,
txId: 'TX HASH RETURENED BY WALLET',
})curl 'https://api.rango.exchange/basic/status?apiKey=YOUR_API_KEY' \
-H 'content-type: application/json;charset=UTF-8' \
-H 'x-rango-id: USER_RANDOM_UUID' \
-H 'origin: https://app.rango.exchange' \
--data-raw '{"txId":"TX HASH RETUREN BY WALLET","requestId":"BEST ROUTE REQUEST ID"}' \
--compressedLast updated
