Skip to main content
Portal provides a built-in swap functionality that allows users to exchange tokens directly from their wallet.

Token Swaps

The swap method allows you to exchange one token for another on supported chains.

Basic Swap

You’ll need a Swaps API key to use this feature. Contact the Portal team to obtain one.

Swap Parameters

Example: Swap USDC to ETH

Supported Chains

Token swaps are available on the following chains:
  • Ethereum Mainnet (eip155:1)
  • Base (eip155:8453)
  • Monad Testnet (eip155:10143)
  • Arbitrum (eip155:42161)
  • Optimism (eip155:10)
  • Polygon (eip155:137)
Always verify token addresses before performing swaps. Incorrect addresses may result in loss of funds.

Error Handling

Related Documentation