Tokenized asset
GET /api/rwa-assetOne tokenized real-world asset by id (gold, nvidia, tesla, spy ...): identity, type, image and web slug joined with its onchain market row - price, market cap, 24h volume and change in your currency. Send GET /api/rwa-asset with the required field id and pay $0.006 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached, id, symbol and 6 more.
Two cached upstream reads, one answer. Use rwa-list to find the id.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Asset id from rwa-list (gold, nvidia, tesla, ...). |
currency | string | no | vs currency for the market block (default usd). |
Example request
curl -i "https://agent402.tools/api/rwa-asset?id=gold¤cy=usd"
Without payment this returns HTTP 402 Payment Required with the exact price for rwa-asset; any x402 v2 or MPP client pays it and retries.
Example response
{
"source": "coingecko",
"fetchedAt": "2026-09-02T18:50:00.000Z",
"cached": false,
"id": "gold",
"symbol": "XAU",
"name": "Gold",
"type": "commodity",
"image": "https://coin-images.coingecko.com/coins/images/10481/large/logo.png",
"webSlug": "gold",
"lastUpdated": "2026-09-02T18:49:00Z",
"market": {
"id": "gold",
"symbol": "XAU",
"name": "Gold",
"type": "commodity",
"image": "https://coin-images.coingecko.com/coins/images/10481/large/logo.png",
"currency": "usd",
"price": 4376.6,
"marketCap": 5219552133,
"volume24h": 557496353,
"high24h": 4394.94,
"low24h": 4289.36,
"change24h": 42.77,
"change24hPct": 0.98698,
"marketCapChange24h": 44135859,
"marketCapChange24hPct": 0.8528,
"lastUpdated": "2026-09-02T18:49:00Z"
}
}
| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | coingecko |
fetchedAt | string | yes | 2026-09-02T18:50:00.000Z |
cached | boolean | yes | false |
id | string | yes | gold |
symbol | string | yes | XAU |
name | string | yes | Gold |
type | string | yes | commodity |
image | string | yes | https://coin-images.coingecko.com/coins/images/10481/large/logo.png |
webSlug | string | yes | gold |
lastUpdated | string | yes | 2026-09-02T18:49:00Z |
market | object | yes | 16 fields: id, symbol, name, type, image, currency |
From an MCP client
catalog.call {
"slug": "rwa-asset",
"params": {
"id": "gold",
"currency": "usd"
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for rwa-asset; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
idis required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/rwa-asset is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (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?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/rwa-asset?id=gold¤cy=usd");
Related tools
Tokenized asset issuer
GET /api/rwa-issuerOne issuer of tokenized real-world assets by id: aggregate tokenized market cap, 24h cap change and 24h volume, plus eve…
Tokenized asset markets
GET /api/rwa-marketsMarket data for tokenized real-world assets - tokenized stocks (Nvidia, Tesla, pre-IPO names), ETFs and commodities like…
Coin profile
GET /api/coin-profileFull profile of one coin by id: name/symbol, description, categories, contract addresses per platform, links (homepage, …
Tokenized asset issuers
GET /api/rwa-issuersThe issuers behind tokenized real-world assets (Coinbase, Backpack Securities, Ondo, xStocks and the rest): id and name,…
Tokenized assets list
GET /api/rwa-listEvery real-world asset with a tokenized onchain version that CoinGecko tracks: stocks, ETFs and commodities, with id, sy…
Token price by contract address
GET /api/coin-price-by-contractLive price, market cap, 24h volume and 24h change for ERC-20 / SPL / other chain tokens looked up by CONTRACT ADDRESS on…