Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.portalhq.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Portal integrates with 0x so you can swap tokens and bridge across chains through Portal APIs and SDKs. This page covers the one‑time setup in 0x and the Portal Dashboard.

Steps to enable the Portal 0x integration

1. Sign up for 0x

  • Create or access your 0x account here.
  • Generate a 0x API key in your 0x dashboard.
Keep your API keys secure. You’ll paste it into Portal in the next step.

2. Enable the 0x integration in Portal

  1. Open the Portal Dashboard.
  2. Navigate to the Integrations page.
  3. Locate the 0x integration and add it.
  4. Paste your 0x API key for your selected Portal environment and save.
Once saved, Portal will proxy your SDK/API calls to 0x using this key securely from Portal’s servers, so you won’t need to embed it in your application code.
Integrations are environment‑scoped. Repeat these steps per Portal environment.

Cross-Chain Swaps (Experimental)

Cross-chain swap endpoints are experimental and require explicit enablement by both the Portal and 0x teams before they can be used. Contact your Portal account manager to request access.
Portal also supports cross-chain swaps through 0x, allowing you to bridge and swap tokens across different EVM chains in a single operation. Cross-chain swaps use bridge providers like Across, Relay, and Stargate under the hood. To use cross-chain swaps, your 0x API key must have the cross-chain product enabled on the 0x dashboard. Standard 0x API keys only support same-chain swaps.

Next steps

Implement the flow in your app: Same-chain swaps: Cross-chain swaps (Experimental):