Agent API · Base

Give your agent a swap route.

Request calldata, review the result and sign with your wallet. Pay $0.01 in USDC per route, plus a 0.1% fee on swap output.

Or jump to the code quickstart

Native ETH sells include a dry run. ERC-20 sells are not simulated yet.

Swap route

$0.01

USDC per request

Output fee

0.1%

Payment

x402

01 / CAPABILITIES

What your agent can call today.

Live

Swap routes

Get calldata and the expected output after fees.

Live

Token data

Read token details, price and a quote-based round-trip proxy.

Live

Wallet balances

Read token balances and available USD values.

Live

Quotes

Compare swap outputs before requesting calldata.

Live

Monitoring

Get a signed webhook when a balance or price crosses your threshold.

02 / PRICING

Pay for what you use.

Swap route$0.01 + 0.1% of swap output
Token data$0.005
Wallet balances$0.02
Quote$0.005
Monitoring$0.01 per item per day

USDC on Base. Monitoring is prepaid for the selected duration. Swap routes and watch creation do not use free quota. Stakers pay less: 10 / 25 / 40% off by tier.

03 / X402

Payments your agent can handle.

Request a result. Sign the USDC payment. Retry and receive the answer.

No API key or subscription.

1Request the endpoint
2Sign the USDC payment
3Retry and receive the answer

Successful paid responses include a settlement receipt.

04 / QUICKSTART

Make your first request.

Swap route request
curl -i -X POST "https://api.beamswap.io/v1/execute/route" -H "content-type: application/json" -d '{"sell":"ETH","buy":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000000000000000000","from":"0xe598c65f960a8c39b539f31cabf2c28f1567fd54","recipient":"0xe598c65f960a8c39b539f31cabf2c28f1567fd54","slippageBps":50}'
# → 402 with a PAYMENT-REQUIRED header; retry with PAYMENT-SIGNATURE (any x402 client does this for you)

05 / GLINT

Live

GLINT staking benefits.

Stake GLINT to unlock lower USDC prices, free daily calls and lower swap fees.

Staked GLINT0
Calls / day0
USDC discount0%
Swap fee0.1%
Staked GLINT100k
Calls / day200
USDC discount10%
Swap fee0.1%
Staked GLINT1M
Calls / day2,000
USDC discount25%
Swap fee0.05%
Staked GLINT10M
Calls / day20,000
USDC discount40%
Swap fee0.03%

Staking is live: stake GLINT at 0x0A18f9F3E047E606C17CfcE7C8e17bFF87a4D5a3 to unlock a tier. Unstaking has a seven-day cooldown.

Manage GLINT stake