What You’ll Learn
- Create a Para-backed viem account and wallet client
- Discover and quote available Transit routes
- Authorize an offer token and submit a Transit order
- Track the order until it reaches a terminal state
What You Need
You need these components to integrate Transit with Para:- Para SDK for creating and managing wallets
- An HTTP client such as
fetchor Axios. Transit is a REST API and requires no API authentication; all endpoints are public - EVM-compatible chain such as Ethereum Mainnet (chain ID 1) or RH Chain (chain ID 4663)
- Native gas in the Para wallet to cover the swap transaction plus Transit’s cross-chain messaging fee
Step-by-Step Integration
Step 1: Install Dependencies
Step 2: Initialize Para and Create the Wallet Clients
Complete authentication before signing.Step 3: Discover Available Transit Routes
QueryGET /v1/transit/routes to find supported asset pairs between your source and destination chains. Routes can be narrowed with AIP-160 filter expressions on sourceChainId, destinationChainId, offerAsset, and wantAsset.
minOrderSize are rejected with 400 INVALID_ARGUMENT.
Step 4: Check Authorization for the Offer Token
CallGET /v3/core/authorization to determine how the TransitStation contract gets spending permission. The TransitStation address is returned as transaction.to on any order quote (see step 5), so fetch an initial quote to obtain it. Three outcomes are possible:
Step 5: Get an Order Quote and Submit the Transit Order
GET /v1/transit/orders/quote returns ABI-encoded submitOrder calldata, including the cross-chain messaging fee in value. Broadcast it directly with the Para wallet client:
integratorFee plus integratorFeeReceiver to charge your own fee, distributorCode as a 32-byte tracking code, and responseFormat with encoded, full, or structured values.
Step 6: Track the Order to Completion
PollGET /v1/transit/orders/:orderId with the order ID from the OrderSubmitted event until it reaches a completed state:
Why Combine Para and Transit
Together, you can offer one-click stablecoin swaps and bridging in your app. Para handles keys and signing, while Transit handles routing, quoting, and cross-chain settlement.
Example Use Cases
- In-App Bridging: Let users move stablecoins between Ethereum and RH Chain from an embedded Para wallet with no external bridge UI required
- Swap-to-Deposit Flows: Chain a Transit swap with an Amplify deposit so users can enter a yield position from any supported stablecoin on any supported chain
- Integrator Monetization: Attach an
integratorFeeanddistributorCodeto each order to earn revenue and attribute volume from your app’s swap flow
Related Resources
Paxos Amplify
Add stablecoin yield deposits and withdrawals to a Para-powered wallet
Para Viem Integration
Set up Para wallets with viem for EVM transaction signing
Paxos Labs
Learn more about Paxos Labs stablecoin infrastructure