Tokenized assets list
$0.003 per callUSDC via x402
GET /api/rwa-listEvery real-world asset with a tokenized onchain version in the coin index: stocks, ETFs and commodities, with id, symbol, name and type.
Details
Filter by type or a name/symbol substring; ids feed rwa-markets and rwa-asset. Counts by type ride along. Cached in-process for 10 minutes. Powered by CoinGecko (https://www.coingecko.com/en/api).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | string | no | stock | etf | commodity (default: all). The example sends commodity. |
q | string | no | Case-insensitive substring on name or symbol (e.g. nvidia, gold, spy). |
limit | integer | no | Max rows (1-700, default 200). |
Example request
curl -i "https://agent402.tools/api/rwa-list?type=commodity"
Watch a call get paid
Request
GET /api/rwa-list402
$0.003 USDCSign
PAYMENT-SIGNATURESettle
on 14 chainsAnswer
200 OKReceipt
Agent402-ReceiptEd25519Example response
{
"source": "coingecko",
"fetchedAt": "2026-09-02T18:50:00.000Z",
"cached": false,
"total": 649,
"byType": {
"stock": 461,
"etf": 186,
"commodity": 2
},
"filters": {
"type": "commodity",
"q": null
},
"count": 2,
"assets": [
{
"id": "gold",
"symbol": "XAU",
"name": "Gold",
"type": "commodity"
},
{
"id": "silver",
"symbol": "XAG",
"name": "Silver",
"type": "commodity"
}
],
"credit": "Powered by CoinGecko (https://www.coingecko.com/en/api)."
}| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | coingecko |
fetchedAt | string | yes | 2026-09-02T18:50:00.000Z |
cached | boolean | yes | false |
total | number | yes | 649 |
byType | object | yes | 3 fields: stock, etf, commodity |
filters | object | yes | 2 fields: type, q |
count | number | yes | 2 |
assets | array of objects | yes | 2 items in the example |
credit | string | yes | Powered by CoinGecko (https://www.coingecko.com/en/api). |
From an MCP client
catalog.call {
"slug": "rwa-list",
"params": {
"type": "commodity"
}
}Hosted connector (https://agent402.tools/mcp): paid in the call. Stdio package (npx -y agent402-mcp@0.18.0): pays from a wallet or AGENT402_CREDITS_KEY.
Errors and behavior
- Pay $0.003 per call over x402 or MPP. Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - Every field is optional; a rejected input answers 4xx with
error,tool,expected,requiredandexample. - On this route, a call ending in any status of 400 or above is not charged over x402, MPP or a credits key. A Tempo push credential pays before the call; a failure is a refund owed.
- A
POSTwith a JSON body is served as this GET. - An
Idempotency-Keyreplays the first 200 uncharged (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.003" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/rwa-list?type=commodity");Get a wallet or run npx -y agent402-mcp@0.18.0 wallet new.
The quote (Python)
import base64, json, urllib.error, urllib.request
req = urllib.request.Request("https://agent402.tools/api/rwa-list?type=commodity", method="GET", headers={})
try:
urllib.request.urlopen(req)
except urllib.error.HTTPError as e:
quote = json.loads(base64.b64decode(e.headers["PAYMENT-REQUIRED"]))
print(e.code, [(a["network"], a["amount"]) for a in quote["accepts"]]) # the price, per chain, in base units