Build on SwapWallet
Run your SwapWallet account from your own code: read prices and balances, swap tokens, send crypto and Toman withdrawals, and catch every deposit the moment it lands.
- Base URL
https://swapwallet.app/api- Authentication
Authorization: Bearer apikey-…
curl https://swapwallet.app/api/v2/user/balance/USDT \
-H "Authorization: Bearer $SWAPWALLET_API_KEY"200 OKResponse
{
"status": "OK",
"result": {
"token": "USDT",
"amount": { "number": "1149.5", "unit": "USDT" }
}
}curl -X POST https://swapwallet.app/api/v1/market/otc/fast-swap \
-H "Authorization: Bearer $SWAPWALLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sourceToken": "USDT", "destinationToken": "TON", "sourceAmount": "100"}'200 OKResponse
{
"status": "OK",
"result": {
"id": 3051877,
"type": "TRADE",
"status": "SUCCEED",
"trade": {
"market": "TON/USDT",
"sourceAmount": { "number": "100", "unit": "USDT" },
"destinationAmount": { "number": "101.677", "unit": "TON" }, …
}, …
}
}What you can do with the API
GET
/v1/market/pricesLive pricesEvery market’s price in Toman and USDT, no key needed.POST/v1/market/otc/fast-swapSwap tokensConvert at the live rate, or lock a quote for 60 seconds.GET/v2/user/balanceRead balancesWhat you hold in every token and in Toman.GET/v2/transactionTransaction historyDeposits, transfers, trades and withdrawals, filtered as you need.POST/v1/wallet/crypto-withdrawWithdraw cryptoSend to any address on a supported network.POST/v1/bank/fiat-withdrawWithdraw TomanPay out to an IBAN in your own name.Guides
QuickstartCreate a key and read your balance in five minutes.Detect incoming depositsCredit your users the moment their crypto arrives.Swap between tokensConvert at the live rate, or lock a quote first.AuthenticationCreate your key, send it, and keep it safe.Requests and responsesMoney objects, timestamps, paging and retries.Handle errorsWhat a failed request looks like and what to do next.