Execute Base Chain Swap

Executes a token swap on Base chain. Amount is human-readable. Collateral determines which token is used as payment (buy) or received (sell). Slippage is in basis points (50 = 0.5%).
Requires both X-API-KEY and Authorization Bearer token.
Plans Included = Builder, Architect, Enterprise Cost per request = 10 credits.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Token address (EVM format).

string
enum
required

Trade direction.

Allowed:
number

Human-readable amount. Provide either amount or amount_raw, not both.

string

Raw amount in smallest unit. Overrides amount.

integer
Defaults to 50

Slippage in basis points (50 = 0.5%). Default 50.

string
enum
Defaults to eth

Collateral token. Default eth.

Allowed:
string

EVM trading wallet address to use for the swap.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json