Bridge Hub REST API: endpoints, parameters, and response formats for querying bridge transactions.
The Bridge Hub API exposes interactive OpenAPI documentation at the /docs endpoint. You can browse endpoints and test API calls directly in the browser.
The Bridge Hub API is a read-only REST API. All endpoints use the GET method, and all responses are returned as application/json.
Generate a merkle proof for claiming a bridge transaction. This endpoint proxies to the source chain’s AggKit Bridge Service to retrieve the proof data needed to submit a claim on the destination chain.
Get token address mappings between networks. Returns the relationship between original token addresses and their wrapped counterparts on destination networks.
The Bridge Hub API uses cursor-based pagination for the /transactions endpoint.
Make an initial request with an optional limit parameter.
If more results exist, the response includes a nextStartAfterCursor value.
Pass that value as the startAfter parameter in your next request to retrieve the following page.
# First pagecurl "https://bridge-hub.example.com/transactions?limit=50"# Next page (using the cursor from the previous response)curl "https://bridge-hub.example.com/transactions?limit=50&startAfter=eyJsYXN0SWQiOiJ0eC0wMDUwIn0="
Cursor-based pagination provides several benefits over offset-based approaches:
Stable results. Concurrent inserts or updates do not cause skipped or duplicated entries between pages.
Consistent performance. Fetching page 1,000 is as fast as fetching page 1, since the database seeks directly to the cursor position.
No deep pagination issues. There is no growing cost as you move further through the result set.
All error responses follow a consistent structure:
{ "status": "error", "message": "Invalid query parameter: status must be one of BRIDGED, READY_TO_CLAIM, CLAIMED"}
Error messages describe the problem without exposing sensitive internal details. If you receive a 500 response, retry the request after a short delay. For persistent errors, check the /health-check endpoint to verify service availability.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.