Skip to main content

Function Signature

Description

Execute a token swap on supported chains. This method handles the entire swap process including finding the best route and executing the transaction.

Parameters

Returns

PortalSwapResult - An object containing:

Example

Native Token Address

Use the following address for native tokens (ETH, MATIC, etc.):

Errors