API Reference
Base URL:GET /v2/status
Returns V2 availability, supported chains, configured build mode, indexer settings, router allowlists, and V5 contract addresses. This endpoint is public and does not require an API key. Responses use the standard Sweepr envelope. Read the status payload fromdata:
POST /v2/sweep/build
Builds an EVM V2 sweep transaction. The partner is resolved fromx-api-key; partner identity, payout wallet, and fee share are never accepted from the request body.
Request:
sweepIdchainmodecontractVersioncontractAddresspermit2typed datatransactionplaceholdertransactionTemplatefeeAuthorizationfeeMode- estimated output and fee summary
POST /v2/sweep/status/:id/confirm
Confirms a submitted V2 sweep by reading the transaction receipt and decodingSweepExecutedV5.
Request:
- If the transaction receipt is not indexed yet, Sweepr returns
pending. - If the same transaction was already confirmed, Sweepr returns the completed result again.
- If the sweep was already confirmed with a different transaction hash, Sweepr rejects the request.
- If the sweep is expired or void, Sweepr rejects the request.
- Sweepr only accepts a V5 event that matches the stored fee authorization for that sweep.
- user address
- partner id
- partner recipient
- output token
- token count
GET /v2/sweep/status/:id
Returns sweep status, transaction status, and fee ledger details. Common statuses:
The fee authorization block may include:
checkAttemptslastCheckedAtnextCheckAtlastError- expected fee amounts
- actual fee amounts after confirmation