Portal for Onchain
Swaps, yield and perps in the wallets you ship
Add swaps, yield, perps, price data, and prediction markets in hours, not weeks, through the same Portal SDK.
Built for exchanges, DeFi, and trading
Inside Portal Onchain
Onchain
8 building blocks · 7 integrations
Abstractions
- Trade assets
- Raw signing
- Get balances
- Swap quoting
- Yield deposit
- Enter market
Features
- Transaction batching
- Position tracking
Integrations
- Li.Fi
- Yield.xyz
- Helius
- Moralis
- TaxBit
- Polymarket
- Hyperliquid
Connect your users to live markets
Trade assets
Quote and execute swaps across venues and chains through normalized flows.
Read the docs(opens in a new tab)Access yield
Connect to yield and lending protocols while preserving product-level controls.
Read the docs(opens in a new tab)Trade perpetuals
Open and manage perpetual futures positions through one integrated interface.
Read the docs(opens in a new tab)Launch prediction markets
Bring prediction-market trading into your product through Portal.
Read the docs(opens in a new tab)
Deposit into yield with one call
Portal handles the key infrastructure, provider connections, and chain-specific complexity behind the scenes.
Access yield through Portal
SDK + API
const address = await portal.getEip155Address(); const result = await portal.yield.yieldXyz.deposit({ chain: 'eip155:8453', token: 'USDC', amount: '2500', address, });
let result = try await portal.yield.yieldxyz.deposit( params: YieldDepositParams( target: .chainAndToken(chain: "eip155:8453", token: "USDC"), amount: "2500" ) )
val result = portal.yield.yieldxyz.deposit( YieldDepositParams( target = YieldActionTarget.ByChainAndToken( chain = "eip155:8453", token = "USDC" ), amount = "2500" ) )
const address = (await portal.addresses)?.eip155; const result = await portal.yield.yieldxyz.deposit({ chain: 'eip155:8453', token: 'USDC', amount: '2500', address, });
final address = await portal.getAddress('eip155:8453'); final result = await portal.yieldIntegrations.yieldxyz.enter( yieldId: 'base-usdc-aave-v3-lending', address: address, amount: '2500', );
curl --request POST \ --url https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz/actions/enter \ --header 'Authorization: Bearer CLIENT_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "yieldId": "base-usdc-aave-v3-lending", "address": "0xYourAddress", "arguments": { "amount": "2500" } }'
Choose the markets you want to bring onchain
Or start building
npm i @portal-hq/webWeb, iOS, Android, React Native and Flutter. Say hello and we will get you set up.