You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai-agents/index.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ Base gives your AI agent the tools to operate as an independent economic actor:
12
12
13
13
### High-level flow
14
14
15
+
Here's how the agent you can build from these guides operates end-to-end — from wallet setup and identity registration to making authenticated, paid API requests using the x402 protocol.
Call that weather API and get the forecast for New York
52
66
```
53
67
54
-
The `search-for-service` and `pay-for-service` skills handle discovery, payment, and retries.
68
+
The [`search-for-service`](https://docs.cdp.coinbase.com/agentic-wallet/skills/search-for-service) and [`pay-for-service`](https://docs.cdp.coinbase.com/agentic-wallet/skills/pay-for-service) skills handle discovery, payment, and retries.
@@ -114,8 +119,21 @@ Sponge detects the `402`, pays in USDC from your wallet, and returns the API res
114
119
|`408`| Payment timeout | Retry with same or higher payment |
115
120
|`429`| Rate limit | Back off and retry after the indicated delay |
116
121
117
-
The CDP Agentic Wallet `pay-for-service` skill and Sponge Wallet's x402 proxy handle retries automatically. If you're building a custom client, parse the `PAYMENT-REQUIRED` header, construct the signed payload, and retry with the `PAYMENT-SIGNATURE` header.
122
+
The [CDP Agentic Wallet](https://docs.cdp.coinbase.com/agentic-wallet/)[`pay-for-service`](https://docs.cdp.coinbase.com/agentic-wallet/skills/pay-for-service) skill and [Sponge Wallet's](https://www.paysponge.com) x402 proxy handle retries automatically. If you're building a custom client, parse the `PAYMENT-REQUIRED` header, construct the signed payload, and retry with the `PAYMENT-SIGNATURE` header.
123
+
124
+
<Note>
125
+
If you're using [Bankr](https://bankr.bot), no setup is required. Just prompt it directly:
126
+
127
+
```text
128
+
Get the current ETH price from a paid data source
129
+
Find a weather API and get the forecast for New York
130
+
Get the token balances for 0xYourAddress on Base
131
+
```
132
+
133
+
Bankr handles service discovery, payment, and data extraction automatically.
Copy file name to clipboardExpand all lines: docs/ai-agents/quickstart/trading.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ install the bankr skill from https://github.com/BankrBot/skills
64
64
65
65
Create a dedicated account at [bankr.bot](https://bankr.bot) and generate an API key at [bankr.bot/api](https://bankr.bot/api).
66
66
67
-
For CDP Agentic Wallet or Sponge Wallet, see [wallet setup](/ai-agents/setup/wallet-setup).
67
+
For [CDP Agentic Wallet](https://docs.cdp.coinbase.com/agentic-wallet/) or [Sponge Wallet](https://www.paysponge.com), see [wallet setup](/ai-agents/setup/wallet-setup).
-**Discoverability** — other agents and services can find your agent by querying the public registry
@@ -171,6 +163,16 @@ if (result.success) {
171
163
172
164
SIWA ships drop-in middleware for Express, Next.js, Hono, and Fastify. See the [SIWA documentation](https://siwa.id/docs) for framework-specific examples, replay protection, and x402 payment integration.
@@ -14,73 +14,138 @@ x402 is well-suited for trading data: your agent pays per call in USDC, with no
14
14
15
15
-**No API key management** — your agent pays on demand; no credentials to rotate or store securely
16
16
-**Pay only for what you use** — no monthly subscription for data you might not always need
17
-
-**Works across any wallet** — Sponge Wallet's x402 proxy, CDP Agentic Wallet skills, and `x402-axios` all handle payment automatically
17
+
-**Works across any wallet** — [Sponge Wallet's](https://www.paysponge.com) x402 proxy, [CDP Agentic Wallet](https://docs.cdp.coinbase.com/agentic-wallet/) skills, and `x402-axios` all handle payment automatically
18
18
-**Composable** — your agent can call multiple data providers in the same session, paying each separately
19
19
20
20
## Discovering x402-compatible endpoints
21
21
22
22
x402-compatible services publish a discovery document at `/.well-known/x402.json`. You can also browse the Bazaar catalog for a curated list of x402 data providers.
23
23
24
-
To discover a service with Sponge Wallet:
24
+
<Tabs>
25
+
<Tabtitle="CDP Agentic Wallet">
26
+
Use the [`search-for-service`](https://docs.cdp.coinbase.com/agentic-wallet/skills/search-for-service) skill to search the x402 Bazaar:
Or use the CDP Agentic Wallet `pay-for-service` skill:
78
+
### Alchemy — onchain data
53
79
54
-
```text
55
-
Get the current ETH price from CoinGecko
56
-
```
80
+
Alchemy exposes enhanced APIs for onchain data — token balances, NFT metadata, mempool visibility, and decoded transaction history — via their [Agentic Gateway](https://github.com/alchemyplatform/skills/tree/main/skills/agentic-gateway) at `https://x402.alchemy.com`.
57
81
58
-
### Alchemy — onchain data
82
+
<Note>
83
+
Alchemy's x402 gateway uses SIWE wallet authentication via their own [`@alchemy/x402`](https://github.com/alchemyplatform/skills/tree/main/skills/agentic-gateway) CLI — not a generic x402 bazaar endpoint. Follow the setup steps below before making requests.
84
+
</Note>
59
85
60
-
Alchemy exposes enhanced APIs for onchain data — token balances, NFT metadata, mempool visibility, and decoded transaction history — via x402-gated endpoints.
86
+
**Step 1 — Install and set up a wallet:**
87
+
88
+
```bash Terminal
89
+
npx @alchemy/x402 wallet generate
90
+
```
61
91
62
-
Fetch token balances for a wallet:
92
+
**Step 2 — Generate a SIWE auth token:**
63
93
64
94
```bash Terminal
65
-
curl -X POST "https://api.wallet.paysponge.com/api/x402/fetch" \
Nansen provides wallet labeling, smart money flow analysis, and on-chain fund tracking. x402 endpoint availability is expanding — check [nansen.ai](https://nansen.ai) for current endpoint status.
144
+
See the full [Alchemy Agentic Gateway skill](https://github.com/alchemyplatform/skills/tree/main/skills/agentic-gateway) for wallet bootstrap, payment handling, and SDK integration.
80
145
81
146
## Making data calls inside an OpenClaw agent
82
147
83
-
Install the Sponge Wallet skill or CDP Agentic Wallet skills, then prompt your agent directly:
148
+
Install the [Sponge Wallet](https://www.paysponge.com) skill or [CDP Agentic Wallet](https://docs.cdp.coinbase.com/agentic-wallet/) skills, then prompt your agent directly:
84
149
85
150
```text
86
151
Get the current prices of ETH, BTC, and SOL from a paid data source
Copy file name to clipboardExpand all lines: docs/ai-agents/trading/trade-execution.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,23 @@ Base offers two structural advantages for trading agents: **Flashblocks** (200ms
12
12
13
13
## Executing swaps with wallet-native tools
14
14
15
-
Bankr, CDP Agentic Wallet, and Sponge Wallet all include built-in swap capabilities — no external DEX integration needed.
15
+
[Bankr](https://bankr.bot), [CDP Agentic Wallet](https://docs.cdp.coinbase.com/agentic-wallet/), and [Sponge Wallet](https://www.paysponge.com) all include built-in swap capabilities — no external DEX integration needed.
16
16
17
-
With Bankr:
17
+
With [Bankr](https://bankr.bot):
18
18
19
19
```text
20
20
Buy $50 of ETH on Base
21
21
Swap 100 USDC for ETH at market price
22
22
```
23
23
24
-
With CDP Agentic Wallet skills:
24
+
With [CDP Agentic Wallet](https://docs.cdp.coinbase.com/agentic-wallet/) skills:
25
25
26
26
```text
27
27
Buy $50 of ETH
28
28
Trade 0.01 ETH for USDC
29
29
```
30
30
31
-
With Sponge Wallet:
31
+
With [Sponge Wallet](https://www.paysponge.com):
32
32
33
33
```bash Terminal
34
34
curl -X POST "https://api.wallet.paysponge.com/api/swap" \
0 commit comments