Skip to main content

Get a swap

GEThttps://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>pathrequired

Responses

200Swap retrieved successfully
idstring<uuid>required
statusSwapStatusrequired
AllowedPendingInitiatedFailedFinalized
orgIdstring<uuid>required
swapSettingsIdstring<uuid>nullable
externalIdstringnullable
fromNetworkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
fromTokenstringnullable
fromAmountstringrequired
fromTransactionIdstring<uuid>nullable
fromTxidstringnullable
toNetworkNetworkrequired
AllowedBitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetCardanoDashSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
toTokenstringnullable
toTransactionIdstring<uuid>nullable
toTxidstringnullable
toAmountstringnullable
swapFeestringnullable
failReasonstringnullable
providerSwapProviderrequired
AllowedFixedFloatOKXPegasusSwap
createdAtstring<date-time>required
updatedAtstring<date-time>required
401Unauthorized
errorstringrequired
404Not Found
errorstringrequired
500Internal server error
errorstringrequired