Skip to main content

API Base URL

All Bridge Service endpoints follow this structure:

Health & Status

GET / - Service Health Check

Example Request:
Response:
Response Fields:
  • status: Service health indicator
  • version: API version for compatibility checks
  • network_id: Primary network being served
  • uptime: Service runtime duration
  • last_processed_block: Latest indexed block number

GET /sync-status - Component Synchronization Status

Example Request:
Response:

Bridge Transaction Queries

GET /bridges - Query Bridge Transactions

Parameters: Example Request Patterns:
Response Structure:
Key Response Fields:
  • tx_hash: Bridge transaction identifier
  • deposit_count: Sequential index for proof generation
  • amount: Bridge amount in wei/token units
  • ready_for_claim: Whether transaction can be claimed
  • block_timestamp: When the bridge occurred

Claim Tracking

GET /claims - Query Claim Transactions

Key Parameters: Example Usage:
Response:

Proof Generation

GET /claim-proof - Generate Claim Proof

Generates the cryptographic proofs required to claim bridged assets. Pass the entire proof object returned to your claim contract function. Required Parameters: Example Request:
Response Structure:

Additional Utilities

GET /l1-info-tree-index - Get L1 Info Tree Index

Returns the L1 Info Tree index required for the leaf_index parameter in /claim-proof.
Response:

GET /token-mappings - Token Information

Get token mapping information for cross-chain token relationships. Use Case: Display token information and cross-chain mappings in bridge interfaces.

Error Handling

Common Error Scenarios: Example Error Response: