Status
GET /v1/statusLooks up a transfer by any of its transaction hashes — source or destination — and refreshes it while it's in flight. Poll it after the user broadcasts the quoted transaction until the transfer settles.
It also finds transfers into a deposit address — by any of their hashes, including the user's own transfer into the address (the hash they see in their wallet or exchange history).
Tracking a transfer here is also what records it at Swapper: a transfer only becomes a deposit once something tracks it. That record is what attributes the transfer, and your integrator fee, to your quote, and what triggers your webhook — so poll every transfer you quote.
Parameters
txHash
yes
A transaction hash of the transfer (EVM 0x…, or a Solana signature).
fromChain
no, recommended
Source chain id or key. A transfer Swapper hasn't seen yet can only be found when the source chain is given.
toChain
no
Destination chain id or key (validated, informational).
No integrator is needed. Send your API key to see your fees on transfers that belong to you (see below).
Example
curl -G "https://swapper.finance/api/v1/status" \
--data-urlencode "txHash=0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef" \
--data-urlencode "fromChain=8453"Response
{
"transactionId": "0x630e5dd19250dcef53d89aabd3b23e8b37795858d1d66d75ba4e93489204f65b",
"sending": {
"txHash": "0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
"txLink": "https://basescan.org/tx/0xefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefefef",
"amount": "100000000",
"amountUSD": "100.00",
"token": { "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chainId": "8453", "symbol": "USDC", "decimals": 6, "name": "USD Coin", "logoURI": "", "priceUSD": "1" },
"chainId": "8453",
"timestamp": 1791054717
},
"receiving": {
"txHash": "0x9999999999999999999999999999999999999999999999999999999999999999",
"txLink": "https://arbiscan.io/tx/0x9999999999999999999999999999999999999999999999999999999999999999",
"amount": "99300000",
"amountUSD": "99.29",
"token": { "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chainId": "42161", "symbol": "USDC", "decimals": 6, "name": "USD Coin", "logoURI": "", "priceUSD": "0.9999" },
"chainId": "42161",
"timestamp": 1791054717
},
"status": "DONE",
"substatus": "COMPLETED",
"substatusMessage": "The transfer is complete.",
"tool": "swapper",
"toAddress": "0x1111111111111111111111111111111111111111"
}transactionId
string?
Opaque, stable id of the transfer.
sending
TransactionInfo
The source side.
receiving
TransactionInfo?
The destination side, once known.
substatusMessage
string?
Human-readable explanation.
tool
string
Always swapper.
fromAddress
string?
Sender, when known.
toAddress
string?
Recipient.
TransactionInfo
txHash
string?
Transaction hash.
txLink
string?
Block-explorer link.
amount
string?
Amount, in the token's smallest unit.
amountUSD
string?
USD value — at the time of the transfer, or at today's price when that wasn't recorded. Omitted when the price is unknown.
chainId
string?
Swapper chain id, e.g. "8453". A transfer funded from Bitcoin or Tron (possible through the widget's deposit addresses) reports "bitcoin" or "728126428"; those chains aren't on /v1/chains.
timestamp
integer?
Unix seconds.
Statuses
status
substatus
Meaning
NOT_FOUND
—
Not (yet) known. Retry later, and pass fromChain.
PENDING
WAIT_SOURCE_CONFIRMATIONS
The source transaction hasn't settled yet.
PENDING
WAIT_DESTINATION_TRANSACTION
On its way to the destination.
PENDING
UNKNOWN_ERROR
Taking longer than expected; it's being looked into.
PENDING
REFUND_IN_PROGRESS
Couldn't be delivered; Swapper is refunding the tokens to the sender. It doesn't change on its own after the refund — open a ticket in Discord if you need confirmation.
DONE
COMPLETED
Delivered.
DONE
REFUNDED
Couldn't complete; the tokens were refunded to the sender.
FAILED
UNKNOWN_ERROR
Failed — see substatusMessage.
Treat DONE and FAILED as final; keep polling anything else.
Polling tips: poll every few seconds while PENDING, back off for long cross-chain transfers (use the quote's estimate.executionDuration as a guide), and stop at a final status. Status checks count against the default rate limit, not the quote one.
Your own transfers
When the request carries the API key of the integrator the transfer belongs to, the response also includes integrator and feeCosts — the Swapper fee and your integrator fee charged on the transfer:
Passing an integrator parameter doesn't unlock these fields — only the owning integrator's API key does.
Not found
An unknown transaction is not an error — it returns 200 with status: "NOT_FOUND":
Right after broadcasting this is normal — retry, and make sure you pass fromChain.
Errors
400
VALIDATION_ERROR
txHash is missing or malformed.
400
UNSUPPORTED_CHAIN
fromChain or toChain isn't served by v1.
401
INVALID_API_KEY
An unknown or revoked API key was sent.
500
INTERNAL_ERROR
Unexpected error. Safe to retry.
502
UPSTREAM_ERROR
A network or liquidity source is temporarily unavailable. Retry shortly.
See Errors for the envelope and all codes.
Webhooks
/v1/status is the pull view of a transfer. A tracked v1 transfer is recorded through the same pipeline as widget deposits, so when it completes Swapper also pushes a transaction.completed webhook to the endpoints configured in your Integrator Dashboard — with method: "dex_swap", like a widget wallet deposit.
Last updated