Skip to main content
Combine Para’s viem account infrastructure with the Paxos Labs Transit API to enable same-chain and cross-chain stablecoin swaps, all from a Para-powered wallet.

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 fetch or 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

Query GET /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.
Orders below minOrderSize are rejected with 400 INVALID_ARGUMENT.

Step 4: Check Authorization for the Offer Token

Call GET /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:
Optional quote parameters include 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

Poll GET /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 integratorFee and distributorCode to each order to earn revenue and attribute volume from your app’s swap flow

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