API Base URL
All Bridge Service endpoints follow this structure:Health & Status
GET / - Service Health Check
Example Request:
status: Service health indicatorversion: API version for compatibility checksnetwork_id: Primary network being serveduptime: Service runtime durationlast_processed_block: Latest indexed block number
GET /sync-status - Component Synchronization Status
Example Request:
Bridge Transaction Queries
GET /bridges - Query Bridge Transactions
Parameters:
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
network_id | integer | ✅ | Origin network ID (0=L1, 1=L2, etc.) | 0 |
page_number | integer | ❌ | Page number (default: 1) | 1 |
page_size | integer | ❌ | Page size (default: 100, max: 1000) | 10 |
deposit_count | integer | ❌ | Filter by specific deposit count | 42 |
from_address | string | ❌ | Filter by sender address | 0xf39F... |
network_ids | array | ❌ | Filter by destination network IDs | 1,2 |
tx_hash: Bridge transaction identifierdeposit_count: Sequential index for proof generationamount: Bridge amount in wei/token unitsready_for_claim: Whether transaction can be claimedblock_timestamp: When the bridge occurred
Claim Tracking
GET /claims - Query Claim Transactions
Key Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
network_id | integer | ✅ | Network where claims occurred |
from_address | string | ❌ | Filter by claimer address |
page_size | integer | ❌ | Results per page (default: 100) |
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:
| Parameter | Type | Description | Example |
|---|---|---|---|
network_id | integer | Origin network of bridge transaction | 0 |
deposit_count | integer | Deposit count from bridge event | 42 |
leaf_index | integer | L1 Info Tree index for proof | 15 |
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.
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:| Error Code | When It Happens | What To Do |
|---|---|---|
INVALID_NETWORK_ID | Using unsupported network ID | Check supported networks via / endpoint |
BRIDGE_NOT_FOUND | Transaction not yet indexed | Wait for indexing to complete |
PROOF_NOT_AVAILABLE | L1 finality not reached | Wait for L1 confirmation |
RATE_LIMIT_EXCEEDED | Too many requests | Implement backoff and retry |