Get a swap
GET
https://api.radom.com/swap/{id}Returns the details of a single swap belonging to your organization.
Authorization
Send your API key in the Authorization header. Scheme: radomToken.
Parameters
idstring<uuid>pathrequiredResponses
200Swap retrieved successfully
idstring<uuid>requiredstatusSwapStatusrequiredAllowed
PendingInitiatedFailedFinalizedorgIdstring<uuid>requiredswapSettingsIdstring<uuid>nullableexternalIdstringnullablefromNetworkNetworkrequiredAllowed
BitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetOpBnbFiatfromTokenstringnullablefromAmountstringrequiredfromTransactionIdstring<uuid>nullablefromTxidstringnullabletoNetworkNetworkrequiredAllowed
BitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetOpBnbFiattoTokenstringnullabletoTransactionIdstring<uuid>nullabletoTxidstringnullabletoAmountstringnullableswapFeestringnullablefailReasonstringnullableproviderSwapProviderrequiredAllowed
FixedFloatOKXPegasusSwapBastionScryptcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredfundsAvailablebooleanTrue once the destination balance has been credited — for instantly settled conversions that happens at confirmation, before the provider legs finish. Populated by the transactions manager, not stored.
401Unauthorized
errorstringrequired404Not Found
errorstringrequired500Internal server error
errorstringrequired