Skip to main content

How Bridging Works

Bridging follows a straightforward process:
1

Create bridge request

Specify source chain, destination chain, and amount to bridge.
2

Processing

HIFI executes the cross-chain operations (burn on source, mint on destination).
3

Completion

Stablecoins arrive on the destination chain.

Creating Bridge Requests

Use the Create Bridge endpoint to initiate a cross-chain transfer. Request:
The response contains the bridge request details:
string
Unique bridge ID. Use this to check status using the Retrieve Bridge endpoint.
string
Bridge status. Progression: CREATEDSOURCE_INITIATEDSOURCE_PROCESSEDDESTINATION_INITIATEDCOMPLETED. See Transaction Status for details.
object
Source chain details including wallet address, chain, and currency.
object
Destination chain details including wallet address, chain, and currency.
number
Amount being bridged in the specified currency.
object
Bridge quote details including amounts and rate. For same-asset bridges, the rate is always “1”.
object
Transaction receipt. Contains transactionHash and operations (approve, burn, mint) once bridge operations are executed on-chain.
For detailed field documentation, see the Create Bridge API reference.

Transaction Status

Bridge transactions progress through several phases:

Source Chain Phase

Destination Chain Phase

Other Statuses

Tracking Bridges

Status Updates: Subscribe to WALLET.BRIDGE.CREATE and WALLET.BRIDGE.UPDATE webhook events to receive real-time status notifications. See Webhooks for setup instructions.
Monitor bridge status using the Retrieve Bridge endpoint. Request:
When the bridge is completed, the response includes all operation hashes:
string
Bridge status. COMPLETED means tokens have been successfully minted on the destination chain.
object
Blockchain operations that were executed during the bridge. Each operation (approve, burn, mint) contains transactionHash, userOpHash, and chain for verification on block explorers.

Bridge Operations

Bridging involves three blockchain operations tracked in the receipt.operations object: Each operation includes:
  • transactionHash - Blockchain transaction hash (view on block explorer)
  • userOpHash - User operation hash for account abstraction wallets
  • chain - Which blockchain the operation occurred on
Processing Time: Bridge operations typically complete within 2-5 minutes depending on network congestion. Use the transaction hashes to track progress on block explorers.

Supported Routes

Currently supported bridging routes: Supported currencies: USDC, USDT

Key Concepts

Bridges maintain a 1:1 ratio when transferring the same asset across chains. When you bridge 10 USDC from Polygon to Ethereum, you receive 10 USDC on Ethereum (minus any network fees).The quoteInformation.rate will always be “1” for same-asset bridges.
You can bridge to external wallet addresses (not managed by HIFI) by providing walletAddress instead of userId in the destination:
Gas Sponsorship Required: To bridge to external addresses, you must be enrolled in HIFI’s Gas Sponsorship Program. Otherwise, provide a userId to bridge to a HIFI wallet.
Bridges move assets across different blockchains (e.g., Polygon → Ethereum).Transfers move assets within the same blockchain (e.g., Polygon wallet A → Polygon wallet B).Use bridges when you need assets on a different chain. Use transfers for same-chain movements.

Sample Code

Complete bridge flow

1

Create bridge request

2

Monitor progress

Poll the retrieve endpoint or subscribe to WALLET.BRIDGE.UPDATE webhooks. Track through statuses: 1. SOURCE_INITIATED → SOURCE_PENDING → SOURCE_PROCESSED 2. DESTINATION_INITIATED → DESTINATION_PENDING → COMPLETED
3

Verify on block explorers

Once COMPLETED, use transaction hashes from receipt.operations to verify:
  • Check burn transaction on source chain explorer (Polygonscan)
  • Check mint transaction on destination chain explorer (Etherscan)

Bridge with approval

1

Create bridge with approval

Set requireApproval: true for multi-party authorization:
2

Review pending bridge

The bridge enters PENDING_APPROVAL status. Dashboard admins are notified to approve or reject via email and webhook.
3

Execution or rejection

If approved, the bridge proceeds through normal processing. If rejected, it is cancelled.

Getting Help

  • 📧 Email: support@hifi.com
  • 💬 Slack: Message us in our shared Slack channel