Swaps

Look up the current status of a swap by its quote ID. Pass txHash on the first call after broadcasting to bind it to the quote and begin tracking; later calls can omit it. Externally paid quotes need no txHash - tracking starts from the quote ID alone and txHash is filled in once the provider reports the deposit - unless the application signed the deposit itself and passes its hash on the first call. A hash binds on the first call only.

get/v1/swap/status

Request

  • Base URL
    https://api.shapeshift.com
  • URL
    https://api.shapeshift.com/v1/swap/status
  • Auth
    none declared

Query parameters

quoteIdstring uuid required
txHashstring

Headers

X-Partner-Codestring

Partner code for affiliate fee attribution. The API resolves the code to the registered affiliate address and BPS. Register a code at the affiliate dashboard.

Response

Swap status

quoteIdstring uuid required
txHashstring
status'pending' | 'submitted' | 'confirmed' | 'failed' required
swapperNamestring required
sellAssetIdstring required
buyAssetIdstring required
sellAmountCryptoBaseUnitstring required
buyAmountAfterFeesCryptoBaseUnitstring required
partnerAddressstring
affiliateBpsstring required

Total on-chain fee in bps.

partnerBpsstring

Partner share in bps.

shapeshiftBpsstring required

ShapeShift platform fee in bps.

registeredAtnumber
buyTxHashstring
txLinkstring
buyTxLinkstring
swapperTxLinkstring
isAffiliateVerifiedboolean

Example response

{
  "partnerAddress": "0x1234567890123456789012345678901234567890",
  "affiliateBps": "60",
  "partnerBps": "50",
  "shapeshiftBps": "10"
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status