Skip to content
RWA Maps

For integrators and agents

Registry API

The RWA Maps registry as read-only JSON, signed so an agent can prove where an answer came from, with an MCP server and change webhooks. Every address comes with its chain.

Contract strings in the address field are copied from the registry and are not re-cased. Explorer URLs use EIP-55 checksummed hex for EVM addresses; the 20 address bytes are unchanged.

At a glance

Base URL
https://rwamaps.com
Schema
1.1.0
Methods
GET, HEAD, OPTIONS (reads)POST, DELETE (verify-signature, keys, webhooks, MCP, deliver-webhooks, alerts, monitor, monitor-sources)
Auth
None. A webhook is deleted with its own secret.
CORS
Allow-Origin: *
Cache
public, max-age=300, s-maxage=3600, stale-while-revalidate=86400

Endpoints

For agents

Responses, CORS and caching

Every JSON body, errors included, starts with schemaVersion (now 1.1.0). It changes when the response shape changes, not when a record is re-verified, and is also sent in the X-Registry-Schema header. Every body also carries lastVerified and a source link, and ends with the signature members.

The routes answer any origin and send these headers on every JSON response, including errors and the OPTIONS preflight (204). A signed response adds the X-RWAMaps-Signature headers, which Access-Control-Expose-Headers lets browsers read.

Response headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Access-Control-Allow-Headers: Content-Type, Accept
Access-Control-Expose-Headers: X-RWAMaps-Signature, X-RWAMaps-Signer, X-RWAMaps-Signed-At, X-RWAMaps-Signature-Scheme, X-RWAMaps-Source, X-RWAMaps-Last-Verified, X-Registry-Schema, Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
Access-Control-Max-Age: 86400
Cache-Control: public, max-age=300, s-maxage=3600, stale-while-revalidate=86400
X-Registry-Schema: 1.1.0

Browsers may cache a response for 5 minutes, shared caches for 1 hour, and serve it stale for up to 1 day while revalidating.

Errors are JSON with the same envelope: { schemaVersion, error, message, lastVerified, source } plus the signature members. error is one of missing_query, invalid_request, invalid_argument, invalid_url, not_found, unauthorized, rate_limited, webhooks_unavailable, keys_unavailable, cron_unavailable, alerts_unavailable, monitor_unavailable, method_not_allowed and internal_error. A 429 carries Retry-After.

Each client may send 120 GET requests a minute to the /api/v1 read endpoints and 20 a minute to POST /api/v1/verify-signature, whose body may be at most 1024 KiB, nested at most 32 levels deep, with at most 20,000 members. Over a limit the answer is a signed 429 rate_limited with Retry-After and the X-RateLimit-* headers. A client is its IP address, an IPv6 address counted by its /64. Query parameters are capped too: q at 200 characters, address at 96, chain and token at 64, since at 64 and after at 128.

For agents

An address is only meaningful together with its chain. The same address string can be a different contract, or nothing, on another chain. Always use the address and the chain together. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Every response returns address together with chain and chainSlug.

Check an address on its chain before you sign anything: GET /api/v1/verify-address here, or the verify_address tool of the MCP server. In its answer, verified is true only when this exact address is the listed token contract (or HyperCore token id) of a verified token on that chain. A listed bridge contract (OFT adapter) is listed: true but verified: false.

A verdict is a snapshot: a signed verified: true does not expire on its own, and a deployment can be reclassified or removed later (the change log already holds a reclassification). Ask again right before you sign a transfer, or accept a verdict only while its signedAt is a few minutes old (10 at most). If you cache verdicts longer, compare latestChangeId from GET /api/v1/changes with the one you cached against.

ENS names such as paxg.gold.commodities.eth are live on-chain as ENSv2 wildcard records. Resolve them here or on ENS. Every JSON answer, errors included, carries schemaVersion, lastVerified and a source link: at the top level, except in /openapi.json (its root x-rwamaps member) and in MCP protocol results (under result._meta). With a signing key, the API's answers, MCP tool results and /registry.json are signed; the signer document, /openapi.json, the plugin manifest and MCP protocol results never are. What is signed lists each one.

/llms.txt
A short, factual overview for language models (llmstxt.org), with the links below.
/llms-full.txt
Every token, chain, role and address in plain text, generated from the registry at build time.
/openapi.json
OpenAPI 3.1 for every endpoint on this page, with schemas, examples and error shapes.
/.well-known/ai-plugin.json
A plugin manifest that points to the OpenAPI document.
/mcp
MCP server setup for Claude Desktop, Claude Code, Cursor and other clients.
/registry.json
The whole registry as one signed file.
/tokenlist.json
Uniswap token-lists file of verified EVM commodity tokens, generated from the registry. Not signed.
/changes
Every change to the registry, with RSS and Atom feeds.

GET/llms.txt

llms.txt (llmstxt.org)

Request
curl https://rwamaps.com/llms.txt

Responses

  • 200Short factual overview with links.text/plain

    Headers X-Registry-Schema, X-RWAMaps-Last-Verified, X-RWAMaps-Source

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/llms-full.txt

Every token, chain, role and address in plain text

Request
curl https://rwamaps.com/llms-full.txt

Responses

  • 200Generated from lib/tokens.ts at build time.text/plain

    Headers X-Registry-Schema, X-RWAMaps-Last-Verified, X-RWAMaps-Source

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/openapi.json

The OpenAPI 3.1 document

Request
curl https://rwamaps.com/openapi.json

Responses

  • 200OpenAPI 3.1.

    Headers X-RWAMaps-Last-Verified, X-RWAMaps-Source

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/.well-known/ai-plugin.json

Plugin manifest pointing to /openapi.json

Request
curl https://rwamaps.com/.well-known/ai-plugin.json

Responses

  • 200Manifest.AiPluginManifest

    Headers X-RWAMaps-Last-Verified, X-RWAMaps-Source

    FieldsAiPluginManifest · 13 fieldsShow
    schema_version"v1"
    —
    name_for_humanstring
    —
    name_for_modelstring
    —
    description_for_humanstring
    —
    description_for_modelstring
    —
    authobject
    —
    apiobject
    —
    logo_urlstring (uri)
    Absolute URL.
    contact_emailstring (email)
    —
    legal_info_urlstring (uri)
    Absolute URL.
    schemaVersion"1.1.0"
    The RWA Maps envelope's version; schema_version stays the manifest format's own.
    lastVerifiedstring (date)
    The registry's newest lastVerified, as on every registry-wide body.
    sourcestring (uri)
    This document's own URL: SITE_URL + /.well-known/ai-plugin.json.
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/.well-known/mcp.json

MCP server card: endpoint, transport, tools and install snippets

Describes the read-only MCP server at /api/mcp (Streamable HTTP, no authentication): its name, endpoint, transport, one-line summary of each tool, and the Claude Code, Cursor and Claude Desktop install snippets. Unsigned.

Request
curl https://rwamaps.com/.well-known/mcp.json

Responses

  • 200Server card.

    Headers X-RWAMaps-Last-Verified, X-RWAMaps-Source

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

Registry

The registry as read-only JSON, the public contract since schema 1.0.0. The document name is RWA Maps and namespace is commodities.eth.

GET/api/v1/registry

The whole verified registry

Every verified token with every deployment (address and chain together). The 1.0.0 document plus lastVerifiedRange, source and the signature members.

169 records and 882 deployments, with their sources and audit links. Every deployment carries its address together with its chain.

Request
curl https://rwamaps.com/api/v1/registry

Try it

A live request to this site

No parameters.

Request

GET /api/v1/registry

Open in a new tab

Responses

  • 200The registry document.RegistryResponse

    Headers X-RWAMaps-Source

    FieldsRegistryResponse · 13 fieldsShow
    schemaVersion"1.1.0"
    —
    namestring
    —
    namespace"commodities.eth"
    —
    section"commodities"
    —
    descriptionstring
    —
    urlstring (uri)
    Absolute URL.
    registryUrlstring (uri)
    Absolute URL.
    apiUrlstring (uri)
    Absolute URL.
    lastVerifiedstring (date)
    Calendar date, YYYY-MM-DD.
    tokensRegistryToken[]
    —
    lastVerifiedRangeLastVerifiedRange
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Absolute URL.
    monitoringobject · optional
    GET /api/v1/registry only (not /registry.json, which is signed at build time): the automated monitor's last checks, per chain; per deployment at /api/v1/monitor?token=<id>. Separate from each record's lastVerified, the manual research pass.

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · Trimmed: one record and one deployment shown (the live document lists every token)89 linesShow
    {
      "schemaVersion": "1.1.0",
      "name": "RWA Maps",
      "namespace": "commodities.eth",
      "section": "commodities",
      "description": "The verified map of tokenized real-world assets.",
      "url": "https://rwamaps.com",
      "registryUrl": "https://rwamaps.com/registry.json",
      "apiUrl": "https://rwamaps.com/api/v1/registry",
      "lastVerified": "2026-12-01",
      "lastVerifiedRange": {
        "oldest": "2026-11-14",
        "newest": "2026-12-01"
      },
      "source": "https://rwamaps.com/registry.json",
      "tokens": [
        {
          "id": "paxg",
          "ticker": "PAXG",
          "name": "PAX Gold",
          "commodity": "gold",
          "commodityLabel": "Gold",
          "issuer": "Paxos Trust Company",
          "issuerUrl": "https://www.paxos.com/assets/paxg",
          "issuerSlug": "paxos-trust-company",
          "issuerPath": "/issuer/paxos-trust-company",
          "unit": "1 PAXG = 1 fine troy ounce of London Good Delivery gold",
          "summary": "PAX Gold is issued by Paxos Trust Company, a regulated New York trust company. Each token represents one fine troy ounce of allocated LBMA London Good Delivery gold held in professional vaults.",
          "website": "https://www.paxg.com/",
          "twitter": "Paxos",
          "subname": "paxg.gold.commodities.eth",
          "ens": {
            "name": "paxg.gold.commodities.eth",
            "status": "live",
            "resolver": "0x0d037261fED1883Abb5F3260e69E5593aF1a3844",
            "resolution": "ensv2-wildcard-records",
            "appUrl": "https://app.ens.domains/paxg.gold.commodities.eth"
          },
          "verified": true,
          "lastVerified": "2026-11-14",
          "auditLinks": [
            {
              "label": "Monthly reserve attestations (KPMG LLP)",
              "url": "https://www.paxos.com/transparency/paxg"
            },
            {
              "label": "PAXG V2 contract audit (Zellic)",
              "url": "https://github.com/paxosglobal/paxos-token-contracts/blob/master/audits/PAXG%20V2%20-%20Zellic%20Audit%20Report.pdf"
            },
            {
              "label": "Paxos Gold contract repository and historical audits",
              "url": "https://github.com/paxosglobal/paxos-gold-contract"
            }
          ],
          "path": "/gold/paxg",
          "deployments": [
            {
              "chain": "Ethereum",
              "chainSlug": "ethereum",
              "address": "0x45804880De22913dAFE09f4980848ECE6EcbAf78",
              "decimals": 18,
              "explorer": "https://etherscan.io/token/0x45804880De22913dAFE09f4980848ECE6EcbAf78",
              "standard": "ERC-20",
              "role": "canonical",
              "path": "/gold/paxg/ethereum",
              "sources": [
                {
                  "label": "Paxos official docs",
                  "url": "https://docs.paxos.com/guides/stablecoin/paxg/mainnet"
                },
                {
                  "label": "CoinGecko",
                  "url": "https://www.coingecko.com/en/coins/pax-gold"
                },
                {
                  "label": "Etherscan",
                  "url": "https://etherscan.io/token/0x45804880De22913dAFE09f4980848ECE6EcbAf78"
                },
                {
                  "label": "Paxos official contract repo",
                  "url": "https://github.com/paxosglobal/paxos-gold-contract"
                }
              ]
            }
          ]
        }
      ],
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/registry.json

The registry document as a file, signed at build time

The same document as /api/v1/registry, prerendered and signed when the site is built, and served with the same headers. Use it where a fixed file URL is easier to cache or mirror; /registry.json.sig is its detached signature.

Request
curl https://rwamaps.com/registry.json

Responses

  • 200Same document as /api/v1/registry (see its example), signed when it was built.RegistryResponse

    Headers X-RWAMaps-Source, X-RWAMaps-Last-Verified

    FieldsRegistryResponse · 13 fieldsShow
    schemaVersion"1.1.0"
    —
    namestring
    —
    namespace"commodities.eth"
    —
    section"commodities"
    —
    descriptionstring
    —
    urlstring (uri)
    Absolute URL.
    registryUrlstring (uri)
    Absolute URL.
    apiUrlstring (uri)
    Absolute URL.
    lastVerifiedstring (date)
    Calendar date, YYYY-MM-DD.
    tokensRegistryToken[]
    —
    lastVerifiedRangeLastVerifiedRange
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Absolute URL.
    monitoringobject · optional
    GET /api/v1/registry only (not /registry.json, which is signed at build time): the automated monitor's last checks, per chain; per deployment at /api/v1/monitor?token=<id>. Separate from each record's lastVerified, the manual research pass.

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/tokenlist.json

Uniswap token-lists file of verified EVM commodity tokens

Generated from the registry at build time. Name: RWA Maps Commodities. Only EVM token contracts with verified decimals; not a signed registry document. CORS is open.

Request
curl https://rwamaps.com/tokenlist.json

Responses

  • 200Uniswap token-lists JSON. CORS is open; not a signed registry document.
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/v1/tokens/{token}

One token by id or ticker

The PR #1 token body. A token involved in cross-chain address reuse (XAUT0) also carries the additive top-level warnings and reuse members.

{token} is the record id or the ticker, compared without case, so /api/v1/tokens/paxg and /api/v1/tokens/PAXG return the same record. An unknown token is HTTP 404 with error: "not_found".

Parameters

tokenpath · required · string
Token id or ticker, any case. Example: xaut
Request
curl https://rwamaps.com/api/v1/tokens/paxg

Try it

A live request to this site

Token id or ticker, any case.

Request

GET /api/v1/tokens/paxg

Open in a new tab

Responses

  • 200The token record.TokenResponse

    Headers X-RWAMaps-Source

    FieldsTokenResponse · 8 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    tokenRegistryToken
    —
    warningsstring[] · optional
    Additive: the cross-chain address-reuse warnings that involve the token(s) (absent when none).
    reuseAddressReuse[] · optional
    Additive: the cross-chain address-reuse entries that involve the token(s) (absent when none).
    monitoringobject · optional
    Additive: per deployment, the automated monitor's lastChecked and sourceLastChecked, separate from token.lastVerified (the manual research pass).

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · PAXG (trimmed: one deployment shown)76 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-11-14",
      "source": "https://rwamaps.com/gold/paxg",
      "token": {
        "id": "paxg",
        "ticker": "PAXG",
        "name": "PAX Gold",
        "commodity": "gold",
        "commodityLabel": "Gold",
        "issuer": "Paxos Trust Company",
        "issuerUrl": "https://www.paxos.com/assets/paxg",
        "issuerSlug": "paxos-trust-company",
        "issuerPath": "/issuer/paxos-trust-company",
        "unit": "1 PAXG = 1 fine troy ounce of London Good Delivery gold",
        "summary": "PAX Gold is issued by Paxos Trust Company, a regulated New York trust company. Each token represents one fine troy ounce of allocated LBMA London Good Delivery gold held in professional vaults.",
        "website": "https://www.paxg.com/",
        "twitter": "Paxos",
        "subname": "paxg.gold.commodities.eth",
        "ens": {
          "name": "paxg.gold.commodities.eth",
          "status": "live",
          "resolver": "0x0d037261fED1883Abb5F3260e69E5593aF1a3844",
          "resolution": "ensv2-wildcard-records",
          "appUrl": "https://app.ens.domains/paxg.gold.commodities.eth"
        },
        "verified": true,
        "lastVerified": "2026-11-14",
        "auditLinks": [
          {
            "label": "Monthly reserve attestations (KPMG LLP)",
            "url": "https://www.paxos.com/transparency/paxg"
          },
          {
            "label": "PAXG V2 contract audit (Zellic)",
            "url": "https://github.com/paxosglobal/paxos-token-contracts/blob/master/audits/PAXG%20V2%20-%20Zellic%20Audit%20Report.pdf"
          },
          {
            "label": "Paxos Gold contract repository and historical audits",
            "url": "https://github.com/paxosglobal/paxos-gold-contract"
          }
        ],
        "path": "/gold/paxg",
        "deployments": [
          {
            "chain": "Ethereum",
            "chainSlug": "ethereum",
            "address": "0x45804880De22913dAFE09f4980848ECE6EcbAf78",
            "decimals": 18,
            "explorer": "https://etherscan.io/token/0x45804880De22913dAFE09f4980848ECE6EcbAf78",
            "standard": "ERC-20",
            "role": "canonical",
            "path": "/gold/paxg/ethereum",
            "sources": [
              {
                "label": "Paxos official docs",
                "url": "https://docs.paxos.com/guides/stablecoin/paxg/mainnet"
              },
              {
                "label": "CoinGecko",
                "url": "https://www.coingecko.com/en/coins/pax-gold"
              },
              {
                "label": "Etherscan",
                "url": "https://etherscan.io/token/0x45804880De22913dAFE09f4980848ECE6EcbAf78"
              },
              {
                "label": "Paxos official contract repo",
                "url": "https://github.com/paxosglobal/paxos-gold-contract"
              }
            ]
          }
        ]
      },
      "signed": false
    }
  • 404No verified token with that id or ticker. The message never repeats the key.ApiError
    • error not_found: No verified token for that key. Use an id or ticker such as paxg.

    Headers X-RWAMaps-Source

    404 example · Unknown key8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "not_found",
      "message": "No verified token for that key. Use an id or ticker such as paxg.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/v1/lookup

Exact lookup

Exact match on a ticker, id, planned ENS name (or a unique prefix containing a dot) or a deployment address. EVM addresses match case-insensitively. query echoes q as received; it is the caller's input, not a claim.

q accepts a ticker, a record id, an ENS name such as paxg.gold.commodities.eth (or the start of one, 4 characters or more, containing a dot), or an address. EVM addresses and the HyperCore token id match regardless of case; Solana and TON addresses match the recorded string exactly.

matchedBy is ticker, id, ens, address or null. An address match adds matchedDeployment to each result: the chain that owns that string. A miss is HTTP 200 with count: 0; a missing or empty q is HTTP 400 with error: "missing_query". To check an address on a chain you were given, use verify-address.

Parameters

qquery · required · string
Ticker, id, planned ENS name, or an address. At most 200 characters.
Request
curl 'https://rwamaps.com/api/v1/lookup?q=PAXG'
curl 'https://rwamaps.com/api/v1/lookup?q=paxg.gold.commodities.eth'
curl 'https://rwamaps.com/api/v1/lookup?q=0x21cAef8A43163Eea865baeE23b9C2E327696A3bf'

Try it

A live request to this site

Ticker, id, planned ENS name, or an address. At most 200 characters.

Request

GET /api/v1/lookup?q=0x21cAef8A43163Eea865baeE23b9C2E327696A3bf

Open in a new tab

Responses

  • 200Matching records.LookupResponse

    Headers X-RWAMaps-Source

    FieldsLookupResponse · 10 fieldsShow
    schemaVersion"1.1.0"
    —
    querystring
    —
    matchedByenum
    What the query matched; null when nothing did.
    countinteger
    —
    resultsLookupResultItem[]
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    warningsstring[] · optional
    Additive: the cross-chain address-reuse warnings that involve the token(s) (absent when none).
    reuseAddressReuse[] · optional
    Additive: the cross-chain address-reuse entries that involve the token(s) (absent when none).

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · By the reused BNB Smart Chain address, with the reuse warning (trimmed: the matched deployment shown)122 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-11-16",
      "source": "https://rwamaps.com/gold/xaut0",
      "query": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
      "matchedBy": "address",
      "count": 1,
      "results": [
        {
          "id": "xaut0",
          "ticker": "XAUT0",
          "name": "Tether Gold Tokens",
          "commodity": "gold",
          "commodityLabel": "Gold",
          "issuer": "Tether / USDT0",
          "issuerUrl": "https://usdt0.to/assets/xaut0",
          "issuerSlug": "tether-usdt0",
          "issuerPath": "/issuer/tether-usdt0",
          "unit": "Omnichain representation of 1 XAUT (1 fine troy ounce)",
          "summary": "XAUT0 is the official LayerZero omnichain (OFT) form of Tether Gold. On Ethereum it is an OFT adapter around the canonical XAUT token, not a separate gold reserve. On other chains it is minted and burned against that locked XAUT.",
          "website": "https://usdt0.to/assets/xaut0",
          "twitter": "USDT0_to",
          "subname": "xaut0.gold.commodities.eth",
          "ens": {
            "name": "xaut0.gold.commodities.eth",
            "status": "live",
            "resolver": "0x0d037261fED1883Abb5F3260e69E5593aF1a3844",
            "resolution": "ensv2-wildcard-records",
            "appUrl": "https://app.ens.domains/xaut0.gold.commodities.eth"
          },
          "verified": true,
          "lastVerified": "2026-11-16",
          "notes": [
            "Do not send XAUT0 to the Ethereum adapter address as if it were a token contract for transfers in the usual ERC-20 sense. On Ethereum, hold and transfer canonical XAUT.",
            "On BNB Smart Chain the on-chain name is Tether Gold and the symbol is XAUt. That address is the XAUT0 omnichain token.",
            "The same address string can identify different contracts on different chains. 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain."
          ],
          "auditLinks": [
            {
              "label": "Underlying XAUT reserve reports",
              "url": "https://gold.tether.to/reports/"
            },
            {
              "label": "XAUt0 official deployments",
              "url": "https://docs.usdt0.to/technical-documentation/deployments"
            }
          ],
          "path": "/gold/xaut0",
          "deployments": [
            {
              "chain": "BNB Smart Chain",
              "chainSlug": "bnb-smart-chain",
              "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
              "decimals": 6,
              "explorer": "https://bscscan.com/token/0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
              "standard": "BEP-20 (OFT)",
              "role": "oft-token",
              "note": "On-chain name is Tether Gold and the symbol is XAUt. This is the XAUT0 omnichain token on BNB Smart Chain, not a separate XAUT contract.",
              "path": "/gold/xaut0/bnb-smart-chain",
              "sources": [
                {
                  "label": "USDT0 official deployments",
                  "url": "https://docs.usdt0.to/technical-documentation/deployments"
                },
                {
                  "label": "USDT0 BNB Chain ecosystem",
                  "url": "https://usdt0.to/ecosystem/bnb-chain"
                }
              ]
            }
          ],
          "matchedDeployment": {
            "chain": "BNB Smart Chain",
            "chainSlug": "bnb-smart-chain",
            "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
            "decimals": 6,
            "explorer": "https://bscscan.com/token/0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
            "standard": "BEP-20 (OFT)",
            "role": "oft-token",
            "note": "On-chain name is Tether Gold and the symbol is XAUt. This is the XAUT0 omnichain token on BNB Smart Chain, not a separate XAUT contract.",
            "path": "/gold/xaut0/bnb-smart-chain",
            "sources": [
              {
                "label": "USDT0 official deployments",
                "url": "https://docs.usdt0.to/technical-documentation/deployments"
              },
              {
                "label": "USDT0 BNB Chain ecosystem",
                "url": "https://usdt0.to/ecosystem/bnb-chain"
              }
            ]
          }
        }
      ],
      "warnings": [
        "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain."
      ],
      "reuse": [
        {
          "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
          "token": "xaut0",
          "tokenChain": "BNB Smart Chain",
          "tokenChainSlug": "bnb-smart-chain",
          "otherRoles": [
            {
              "chain": "Celo",
              "chainSlug": "celo",
              "role": "OFT contract (not the token)"
            },
            {
              "chain": "Monad",
              "chainSlug": "monad",
              "role": "OFT contract (not the token)"
            }
          ],
          "sourceNote": "The same address string can identify different contracts on different chains. 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain.",
          "warning": "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain.",
          "origin": "note"
        }
      ],
      "signed": false
    }
  • 400q is missing or longer than 200 characters.ApiError
    • error missing_query: Pass q as a ticker, an ENS name such as paxg.gold.commodities.eth, or a contract address.

    Headers X-RWAMaps-Source

    400 example · No q8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "missing_query",
      "message": "Pass q as a ticker, an ENS name such as paxg.gold.commodities.eth, or a contract address.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/v1/registry.csv

The registry as CSV

One row per deployment, RFC 4180 with CRLF records. Not signed: schemaVersion, lastVerified and source travel as the X-Registry-Schema, X-RWAMaps-Last-Verified and X-RWAMaps-Source headers.

One row per deployment (882 rows), in registry order with the canonical contract first, as an RFC 4180 download with a header row. The columns are:

Columns
ticker,name,commodity,issuer,chain,role,standard,address,explorer,source_count,last_verified,planned_subname,subname_status,address_kind,note

The explorer column is the URL as recorded, not re-cased; the JSON explorer field uses EIP-55 checksummed hex for EVM addresses. The address column is the recorded string.

Request
curl -O https://rwamaps.com/api/v1/registry.csv

Responses

  • 200CSV attachment.text/csv

    Headers X-Registry-Schema, X-RWAMaps-Last-Verified, X-RWAMaps-Source

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

Wallet labels and alerts

GET/api/v1/wallets

List or look up verified wallet labels

Verified Ethereum wallet labels for PAXG and XAUT, from citable public sources (exchange proof-of-reserves, issuer docs, Etherscan name tags, on-chain roles). Pass address or q (an address, canonical ENS name or slug) to look one up; token=paxg|xaut filters the list. These are attribution labels, not token contracts.

Parameters

addressquery · optional · string
Ethereum address to look up. At most 66 characters.
qquery · optional · string
Address, canonical ENS name or slug. At most 200 characters.
tokenquery · optional · string
Filter the list to paxg or xaut.

Responses

  • 200Matching labels.LookupWalletResponse

    Headers X-RWAMaps-Source

    FieldsLookupWalletResponse · 7 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Calendar date, YYYY-MM-DD.
    sourcestring (uri)
    Absolute URL.
    querystring | null
    The address, ENS name or slug that was looked up; null when listing.
    token"paxg" | "xaut" | null
    Optional token filter as applied; null when not given.
    countinteger
    —
    labelsPublicWalletLabel[]
    —

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · Trimmed: one of the 58 verified labels shown55 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/wallets",
      "query": null,
      "token": null,
      "count": 1,
      "labels": [
        {
          "address": "0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
          "chain": "Ethereum",
          "chainSlug": "ethereum",
          "entity": "xaut0",
          "entityName": "XAUT0 / USDT0",
          "role": "adapter",
          "slug": "xaut0-adapter",
          "ensName": "xaut0-adapter.gold.commodities.eth",
          "ensLive": true,
          "tokens": [
            "xaut"
          ],
          "tier": "verified",
          "ensTier": "observed",
          "confidence": 1,
          "sources": [
            {
              "kind": "etherscan-nametag",
              "label": "Etherscan public name tag: XAUt0: OAdapterUpgradeable",
              "url": "https://etherscan.io/address/0xb9c2321bb7d0db468f570d10a424d1cc8efd696c"
            },
            {
              "kind": "official-deployments",
              "label": "Official XAUT0 Ethereum OFT adapter; token() returns canonical XAUT",
              "url": "https://docs.usdt0.to/technical-documentation/deployments"
            },
            {
              "kind": "on-chain-role",
              "label": "adapter.token() = XAUT 0x68749665FF8D2d112Fa859AA293F07A622782F38",
              "url": "https://etherscan.io/address/0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C"
            }
          ],
          "etherscanNameTag": "XAUt0: OAdapterUpgradeable",
          "holdings": {
            "xaut": "32709.880547"
          },
          "volume30d": {
            "xaut": "2041.102396"
          },
          "page": "https://rwamaps.com/wallets/0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
          "ensBatch": "top10",
          "notes": "Etherscan public name tag: XAUt0: OAdapterUpgradeable."
        }
      ],
      "signed": false
    }
  • 400address, q or token is too long, or token is not paxg or xaut.ApiError
    • error invalid_request: token must be paxg or xaut.

    Headers X-RWAMaps-Source

    400 example · Bad token filter8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "token must be paxg or xaut.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/wallets",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/v1/wallets/{address}

One wallet label by address

The verified label for this Ethereum address, or 404 if it is well-formed but unlabeled. Use this for label lookup by address.

Parameters

addresspath · required · string
Ethereum address of the labeled wallet.

Responses

  • 200The label.LookupWalletResponse

    Headers X-RWAMaps-Source

    FieldsLookupWalletResponse · 7 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Calendar date, YYYY-MM-DD.
    sourcestring (uri)
    Absolute URL.
    querystring | null
    The address, ENS name or slug that was looked up; null when listing.
    token"paxg" | "xaut" | null
    Optional token filter as applied; null when not given.
    countinteger
    —
    labelsPublicWalletLabel[]
    —

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · XAUT0 Ethereum OFT adapter (also a labeled wallet)55 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/wallets",
      "query": "0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
      "token": null,
      "count": 1,
      "labels": [
        {
          "address": "0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
          "chain": "Ethereum",
          "chainSlug": "ethereum",
          "entity": "xaut0",
          "entityName": "XAUT0 / USDT0",
          "role": "adapter",
          "slug": "xaut0-adapter",
          "ensName": "xaut0-adapter.gold.commodities.eth",
          "ensLive": true,
          "tokens": [
            "xaut"
          ],
          "tier": "verified",
          "ensTier": "observed",
          "confidence": 1,
          "sources": [
            {
              "kind": "etherscan-nametag",
              "label": "Etherscan public name tag: XAUt0: OAdapterUpgradeable",
              "url": "https://etherscan.io/address/0xb9c2321bb7d0db468f570d10a424d1cc8efd696c"
            },
            {
              "kind": "official-deployments",
              "label": "Official XAUT0 Ethereum OFT adapter; token() returns canonical XAUT",
              "url": "https://docs.usdt0.to/technical-documentation/deployments"
            },
            {
              "kind": "on-chain-role",
              "label": "adapter.token() = XAUT 0x68749665FF8D2d112Fa859AA293F07A622782F38",
              "url": "https://etherscan.io/address/0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C"
            }
          ],
          "etherscanNameTag": "XAUt0: OAdapterUpgradeable",
          "holdings": {
            "xaut": "32709.880547"
          },
          "volume30d": {
            "xaut": "2041.102396"
          },
          "page": "https://rwamaps.com/wallets/0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
          "ensBatch": "top10",
          "notes": "Etherscan public name tag: XAUt0: OAdapterUpgradeable."
        }
      ],
      "signed": false
    }
  • 400The path is not an Ethereum address, or it is longer than 66 characters.ApiError
    • error invalid_request: Pass an Ethereum address as the path.

    Headers X-RWAMaps-Source

    400 example · Not an address8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "Pass an Ethereum address as the path.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/wallets",
      "signed": false
    }
  • 404No verified wallet label for that address.ApiError
    • error not_found: No verified wallet label for that address.

    Headers X-RWAMaps-Source

    404 example · Unlabeled address8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "not_found",
      "message": "No verified wallet label for that address.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/wallets",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/v1/alerts

Flow alerts: large PAXG, XAUT and money-market fund (BUIDL, BUIDL-I, USDY, USYC, BENJI, JLTXX) moves with a labeled side

Transfer logs on Ethereum worth at least the category's threshold where a side is a verified wallet label, or that mint or burn, or $25M+ between unlabeled addresses. Gold (PAXG, XAUT): ALERTS_MIN_USD. Money-market funds (BUIDL, BUIDL-I, USDY, USYC, BENJI, JLTXX): ALERTS_MIN_USD_MONEYMARKET (default $5M); a burn is a redemption. Same-tx CCTP mint-to-burn legs are one bridge alert. mode is stored when the cron keeps a Redis feed, rolling (the last 7 days recomputed, cached 15 minutes) otherwise.

Parameters

limitquery · optional · string
1 to 500, default 100.
tokenquery · optional · string
paxg, xaut, buidl, buidl-i, usdy, usyc, benji or jltxx.
categoryquery · optional · string
gold or money-market.
kindquery · optional · string
mint, burn, issuer-out, issuer-in, transfer or bridge.
minUsdquery · optional · string
Raise the USD threshold (never below the server's, which is per category).

Responses

  • 200Alerts, newest first.AlertsResponse

    Headers X-RWAMaps-Source

    FieldsAlertsResponse · 14 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Calendar date, YYYY-MM-DD.
    sourcestring (uri)
    Absolute URL.
    mode"stored" | "rolling"
    stored: from the cron's Redis feed; rolling: the last 7 days recomputed (no store configured).
    fromBlockinteger | null
    —
    toBlockinteger | null
    —
    updatedAtstring | null
    —
    thresholdUsdnumber
    The gold threshold (ALERTS_MIN_USD); see thresholdsUsd.
    thresholdsUsdobject
    Minimum USD value per category: gold (ALERTS_MIN_USD) and money-market (ALERTS_MIN_USD_MONEYMARKET, default $5M).
    pricesobject | null
    —
    priceSourcestring
    —
    postingEnabledboolean
    Whether alerts are posted to X. Off until the operator turns it on.
    countinteger
    —
    alertsGoldAlert[]
    —

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · Trimmed: one real alert76 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/alerts",
      "mode": "rolling",
      "fromBlock": 26446647,
      "toBlock": 26497046,
      "updatedAt": "2026-11-25T20:42:51.000Z",
      "thresholdUsd": 1000000,
      "thresholdsUsd": {
        "gold": 1000000,
        "money-market": 5000000
      },
      "prices": {
        "paxg": 3588,
        "xaut": 3589,
        "buidl": 1,
        "buidl-i": 1,
        "usdy": 1.1548,
        "usyc": 1.1451,
        "benji": 1,
        "jltxx": 1
      },
      "priceSource": "CoinGecko USD price of pax-gold and tether-gold (https://docs.coingecko.com/reference/coins-markets, fallback https://docs.coingecko.com/reference/simple-price); Fund NAV: $1.00 for BUIDL, BUIDL-I, BENJI and JLTXX (stable $1.00 share price); USDY from Ondo's USDYOracleWrapper getPrice() and USYC from Circle's USYC Oracle latestRoundData() on Ethereum, $1.00 if an oracle cannot be read",
      "postingEnabled": false,
      "count": 1,
      "alerts": [
        {
          "id": "0x6e59550a7d7e6e18426ae206dcd43e0972a125b29a7fe1c41449a9d2a92a4907:122",
          "token": "xaut",
          "category": "gold",
          "symbol": "XAUT",
          "kind": "transfer",
          "chain": "Ethereum",
          "chainSlug": "ethereum",
          "destinationChain": null,
          "txHash": "0x6e59550a7d7e6e18426ae206dcd43e0972a125b29a7fe1c41449a9d2a92a4907",
          "logIndex": 122,
          "logIndexes": [
            122
          ],
          "blockNumber": 26460619,
          "timestamp": "2026-11-26T02:54:47.000Z",
          "from": {
            "address": "0x690C3Eebf6ee237f00fc96f9766282F096C191cC",
            "name": "Binance 151",
            "slug": "binance-151",
            "entity": "binance",
            "ens": "binance-151.gold.commodities.eth",
            "page": "https://rwamaps.com/wallets/0x690C3Eebf6ee237f00fc96f9766282F096C191cC"
          },
          "to": {
            "address": "0x5a52E96BAcdaBb82fd05763E25335261B270Efcb",
            "name": "Binance cold wallet 28",
            "slug": "binance-cold28",
            "entity": "binance",
            "ens": "binance-cold28.gold.commodities.eth",
            "page": "https://rwamaps.com/wallets/0x5a52E96BAcdaBb82fd05763E25335261B270Efcb"
          },
          "amount": "4797.742",
          "ounces": 4797.742,
          "usd": 17219096,
          "priceUsd": 3589,
          "internal": true,
          "muted": false,
          "muteReason": null,
          "text": "📡 $17.2M XAUT (4,798 oz) moved: binance-151.gold.commodities.eth → binance-cold28.gold.commodities.eth",
          "post": {
            "text": "📡 $17.2M XAUT (4,798 oz) moved: binance-151.gold.commodities.eth → binance-cold28.gold.commodities.eth"
          },
          "url": "https://rwamaps.com/wallets/0x690C3Eebf6ee237f00fc96f9766282F096C191cC",
          "txUrl": "https://etherscan.io/tx/0x6e59550a7d7e6e18426ae206dcd43e0972a125b29a7fe1c41449a9d2a92a4907"
        }
      ],
      "signed": false
    }
  • 400limit, token, category, kind or minUsd is invalid.ApiError
    • error invalid_request: token must be one of paxg, xaut, buidl, buidl-i, usdy, usyc, benji, jltxx.

    Headers X-RWAMaps-Source

    400 example · Bad token8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "token must be one of paxg, xaut, buidl, buidl-i, usdy, usyc, benji, jltxx.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/alerts",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503The chain or the token prices could not be read.ApiError
    • error alerts_unavailable: The chain or the token prices could not be read. Try again later.

    Headers X-RWAMaps-Source

    503 example · RPC failure8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "alerts_unavailable",
      "message": "The chain or the token prices could not be read. Try again later.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/alerts",
      "signed": false
    }

GET/api/cron/alertsBearer secret

Scan for new flow alerts (operator only, GET)

Called by Vercel Cron and the alerts workflow with Authorization: Bearer CRON_SECRET. With a Redis store it scans from the stored cursor, dedupes and stores new alerts; without one it returns the rolling window and persists nothing. Posting to X runs only when X_POSTING_ENABLED=true, a store and X credentials are set. 503 cron_unavailable without CRON_SECRET, 503 alerts_unavailable when the chain or the price cannot be read.

Request
curl https://rwamaps.com/api/cron/alerts

Responses

  • 200Run summary.

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET.ApiError
    • error unauthorized: Missing or wrong bearer secret.

    Headers X-RWAMaps-Source, WWW-Authenticate

    401 example · Wrong secret8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "unauthorized",
      "message": "Missing or wrong bearer secret.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503CRON_SECRET is not configured, or the chain or the price could not be read.ApiError
    • error cron_unavailable: CRON_SECRET is not set.
    • error alerts_unavailable: The chain or the token prices could not be read. Try again later.

    Headers X-RWAMaps-Source

    503 example · CRON_SECRET not set8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "cron_unavailable",
      "message": "CRON_SECRET is not set.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
    503 example · RPC or price failure8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "alerts_unavailable",
      "message": "The chain or the token prices could not be read. Try again later.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/alerts",
      "signed": false
    }

POST/api/cron/alertsBearer secret

Scan for new flow alerts (operator only, POST)

The same handler and answers as GET.

Responses

  • 200Run summary.

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET (as GET).ApiError

    Headers X-RWAMaps-Source, WWW-Authenticate

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503As GET.ApiError

    Headers X-RWAMaps-Source

Resolve and verify

The REST twins of the resolve_asset and verify_address MCP tools: the same functions, the same output, signed the same way.

GET/api/v1/resolve

Resolve a ticker, name or ENS name to addresses with their chains

REST twin of the resolve_asset MCP tool. Each address is valid only on its chain. Live ENS names resolve on-chain via ENSv2 wildcard records; an ENS match carries ens with its status and Ethereum record target. query echoes q as received.

Parameters

qquery · required · string
Ticker, id, name or planned ENS name (e.g. paxg.gold.commodities.eth). At most 200 characters.
chainquery · optional · string
Chain name, slug or alias (celo, bsc, eth, ...). Filters deployments. At most 64 characters.
Request
curl 'https://rwamaps.com/api/v1/resolve?q=paxg.gold.commodities.eth'

Try it

A live request to this site

Ticker, id, name or planned ENS name (e.g. paxg.gold.commodities.eth). At most 200 characters.

Chain name, slug or alias (celo, bsc, eth, ...). Filters deployments. At most 64 characters.

Request

GET /api/v1/resolve?q=paxg.gold.commodities.eth

Open in a new tab

Responses

  • 200Matches with their deployments.ResolveResponse

    Headers X-RWAMaps-Source

    FieldsResolveResponse · 11 fieldsShow
    schemaVersion"1.1.0"
    —
    querystring
    The query as received, trimmed.
    chainChainName | null
    The registry's name for the requested chain; null when no chain was given or it is unknown.
    chainSlugstring | null
    URL slug of a chain, e.g. bnb-smart-chain.
    matchedByResolveMatchedBy | null
    —
    countinteger
    Number of matches.
    matchesAssetMatch[]
    —
    warningsstring[]
    Plain-language warnings. Read them, and repeat them to a user, before acting on any address.
    supportedChainsChainName[] · optional
    Set when the requested chain is unknown: the chains RWA Maps lists.
    lastVerifiedstring (date)
    Newest lastVerified among the matches (the registry's newest when there are none).
    sourcestring (uri)
    The record page for a single match, otherwise registry.json.

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · A planned ENS name, filtered to one chain74 linesShow
    {
      "schemaVersion": "1.1.0",
      "query": "xaut0.gold.commodities.eth",
      "chain": "Celo",
      "chainSlug": "celo",
      "matchedBy": "ens",
      "count": 1,
      "matches": [
        {
          "token": {
            "id": "xaut0",
            "ticker": "XAUT0",
            "name": "Tether Gold Tokens",
            "issuer": "Tether / USDT0",
            "issuerUrl": "https://usdt0.to/assets/xaut0",
            "commodity": "gold",
            "section": "commodities",
            "unit": "Omnichain representation of 1 XAUT (1 fine troy ounce)",
            "subname": "xaut0.gold.commodities.eth",
            "subnameStatus": "live",
            "lastVerified": "2026-11-16",
            "page": "https://rwamaps.com/gold/xaut0"
          },
          "ens": {
            "name": "xaut0.gold.commodities.eth",
            "status": "live",
            "onChain": true,
            "resolver": "0x0d037261fED1883Abb5F3260e69E5593aF1a3844",
            "plannedTarget": {
              "chain": "Ethereum",
              "chainSlug": "ethereum",
              "address": "0x68749665FF8D2d112Fa859AA293F07A622782F38",
              "token": "xaut"
            },
            "note": "xaut0.gold.commodities.eth is live on-chain as ENSv2 wildcard records in the commodities.eth Permissioned Resolver. Its Ethereum address-record target is canonical XAUT on Ethereum, because XAUT0's Ethereum deployment is a bridge contract."
          },
          "deployments": [
            {
              "chain": "Celo",
              "chainSlug": "celo",
              "address": "0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff",
              "addressKind": "contract",
              "role": "oft-token",
              "roleLabel": "OFT token",
              "isToken": true,
              "standard": "ERC-20 (OFT)",
              "decimals": 6,
              "decimalsStatus": "known",
              "explorer": "https://celoscan.io/token/0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff",
              "sources": [
                {
                  "label": "USDT0 official deployments",
                  "url": "https://docs.usdt0.to/technical-documentation/deployments"
                }
              ],
              "page": "https://rwamaps.com/gold/xaut0/celo",
              "warnings": [
                "On Celo, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 OFT contract, not the token. It is the XAUT0 token only on BNB Smart Chain. The XAUT0 token on Celo is 0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff (chain: Celo)."
              ]
            }
          ],
          "warnings": [
            "xaut0.gold.commodities.eth is live on-chain as ENSv2 wildcard records in the commodities.eth Permissioned Resolver. Prefer the address together with its chain when you transact.",
            "xaut0.gold.commodities.eth is live on-chain. Its Ethereum address-record target is canonical XAUT on Ethereum (0x68749665FF8D2d112Fa859AA293F07A622782F38, chain: Ethereum), not the Ethereum bridge contract."
          ]
        }
      ],
      "warnings": [
        "xaut0.gold.commodities.eth is live on-chain as ENSv2 wildcard records in the commodities.eth Permissioned Resolver. Prefer the address together with its chain when you transact."
      ],
      "lastVerified": "2026-11-16",
      "source": "https://rwamaps.com/gold/xaut0",
      "signed": false
    }
    200 example · An address filtered to a chain it is not listed on39 linesShow
    {
      "schemaVersion": "1.1.0",
      "query": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
      "chain": "Celo",
      "chainSlug": "celo",
      "matchedBy": "address",
      "count": 1,
      "matches": [
        {
          "token": {
            "id": "xaut0",
            "ticker": "XAUT0",
            "name": "Tether Gold Tokens",
            "issuer": "Tether / USDT0",
            "issuerUrl": "https://usdt0.to/assets/xaut0",
            "commodity": "gold",
            "section": "commodities",
            "unit": "Omnichain representation of 1 XAUT (1 fine troy ounce)",
            "subname": "xaut0.gold.commodities.eth",
            "subnameStatus": "live",
            "lastVerified": "2026-11-16",
            "page": "https://rwamaps.com/gold/xaut0"
          },
          "deployments": [],
          "warnings": [
            "This address is not XAUT0's deployment on Celo: in the registry it is the XAUT0 token on BNB Smart Chain.",
            "According to the registry's XAUT0 note, on Celo this address is the XAUT0 OFT contract, not the token.",
            "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain.",
            "The XAUT0 token on Celo is 0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff (chain: Celo)."
          ]
        }
      ],
      "warnings": [
        "This query is an address. Resolving finds records by ticker, name or ENS name; to check an address before you sign, verify it (verify_address, /api/v1/verify-address) with the address and its chain."
      ],
      "lastVerified": "2026-11-16",
      "source": "https://rwamaps.com/gold/xaut0",
      "signed": false
    }
  • 400q is missing, or q or chain is too long.ApiError
    • error missing_query: Pass q as a ticker (PAXG), a name (PAX Gold) or a planned ENS name (paxg.gold.commodities.eth), and optionally chain.

    Headers X-RWAMaps-Source

    400 example · No q8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "missing_query",
      "message": "Pass q as a ticker (PAXG), a name (PAX Gold) or a planned ENS name (paxg.gold.commodities.eth), and optionally chain.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/v1/verify-address

Check an address on a chain before you sign

REST twin of the verify_address MCP tool. verified is true only when this exact address is the listed token contract (or HyperCore token id) of a verified token on this chain, and, with token, of that token. An address listed on another chain, in another role, or for another token, is verified false with the reason. address and chain echo the caller's input.

verified is the field to check before you sign a transfer. listed says whether the address appears on this chain in any role, otherChains where else it appears, and reason says why, in a sentence you can show a user.

The answer is true when it is signed, not forever: ask again right before you sign, or accept it only while its signedAt is at most 10 minutes old. The address and chain in it echo what you sent.

Parameters

addressquery · required · string
The address, token id, Move coin type or Stellar asset to check. At most 96 characters.
chainquery · required · string
The chain you intend to use it on: name, slug or alias. At most 64 characters.
tokenquery · optional · string
Optional: the token you expect (id, ticker or planned ENS name). verified is then false for any other token, and expected names that token's deployment on this chain.
Request
curl 'https://rwamaps.com/api/v1/verify-address?address=0x21cAef8A43163Eea865baeE23b9C2E327696A3bf&chain=celo'

Try it

A live request to this site

The address, token id, Move coin type or Stellar asset to check. At most 96 characters.

The chain you intend to use it on: name, slug or alias. At most 64 characters.

Optional: the token you expect (id, ticker or planned ENS name). verified is then false for any other token, and expected names that token's deployment on this chain.

Request

GET /api/v1/verify-address?address=0x21cAef8A43163Eea865baeE23b9C2E327696A3bf&chain=celo

Open in a new tab

Responses

  • 200The verdict.VerifyAddressResponse

    Headers X-RWAMaps-Source

    FieldsVerifyAddressResponse · 22 fieldsShow
    schemaVersion"1.1.0"
    —
    addressstring
    The caller's address, whitespace removed: an echo of the input, not a claim.
    chainstring
    The registry's name for the chain, or the caller's input when the chain is unknown (an echo of the input, not a claim).
    chainSlugstring | null
    Null when the chain is unknown.
    verifiedboolean
    The field to check before signing: true only when this exact address is the listed token contract (or HyperCore spot token id) of a verified token on this chain. A listed bridge contract (OFT adapter) is listed: true but verified: false.
    listedboolean
    true when the address is listed on this chain in any role, a bridge contract included.
    isTokenboolean
    true when the registry lists this address as a token (contract or token id) on this chain.
    reasonstring
    Plain-language verdict, written to be repeated to a user.
    expectedVerifyExpected · optional
    Set when the call passed token: the record expected. verified is false when the address is any other record.
    tokenobject · optional
    The record the address belongs to on this chain.
    issuerstring · optional
    —
    roleDeploymentRole · optional
    canonical/official: the issuer's token contract. oft-token: a LayerZero OFT token. oft-adapter: a bridge contract that locks the canonical token; it is NOT a token, never send tokens to it.
    roleLabelstring · optional
    —
    matchedDeploymentobject · optional
    The listed deployment on this chain that the address matched.
    otherChainsChainListing[] · optional
    Where the same address is listed on other chains.
    deploymentOnChainobject · optional
    When the address belongs to a record on another chain: that record's own listed deployment on the requested chain.
    reuseReuseOnChain · optional
    The same address string means a different contract on this chain.
    lookalikeOfobject · optional
    For a lookalike (same start and end, different middle) or a re-cased base58/TON address: the listed address it resembles. Do not use the address given.
    supportedChainsChainName[] · optional
    Set when the chain is unknown: the chains RWA Maps lists.
    warningsstring[]
    Plain-language warnings. Read them, and repeat them to a user, before acting on any address.
    lastVerifiedstring (date)
    Calendar date, YYYY-MM-DD.
    sourcestring (uri)
    The page of the record concerned, otherwise registry.json.

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · Token contract on its chain56 linesShow
    {
      "schemaVersion": "1.1.0",
      "address": "0xe904AEA5E1b110c9174728fA2efFc8aeD19E98Ef",
      "chain": "Base",
      "chainSlug": "base",
      "verified": true,
      "listed": true,
      "isToken": true,
      "reason": "Verified. 0xe904AEA5E1b110c9174728fA2efFc8aeD19E98Ef is the PAXG (PAX Gold) token contract on Base, issued by Paxos Trust Company. Role: Official. Last verified 2026-11-14.",
      "token": {
        "id": "paxg",
        "ticker": "PAXG",
        "name": "PAX Gold",
        "issuer": "Paxos Trust Company",
        "issuerUrl": "https://www.paxos.com/assets/paxg",
        "commodity": "gold",
        "section": "commodities",
        "unit": "1 PAXG = 1 fine troy ounce of London Good Delivery gold",
        "subname": "paxg.gold.commodities.eth",
        "subnameStatus": "live",
        "lastVerified": "2026-11-14",
        "page": "https://rwamaps.com/gold/paxg"
      },
      "issuer": "Paxos Trust Company",
      "role": "official",
      "roleLabel": "Official",
      "matchedDeployment": {
        "chain": "Base",
        "chainSlug": "base",
        "address": "0xe904AEA5E1b110c9174728fA2efFc8aeD19E98Ef",
        "addressKind": "contract",
        "role": "official",
        "roleLabel": "Official",
        "isToken": true,
        "standard": "ERC-20",
        "decimals": 18,
        "decimalsStatus": "known",
        "explorer": "https://basescan.org/token/0xe904AEA5E1b110c9174728fA2efFc8aeD19E98Ef",
        "sources": [
          {
            "label": "Paxos official docs",
            "url": "https://docs.paxos.com/guides/stablecoin/paxg/mainnet"
          },
          {
            "label": "CoinGecko",
            "url": "https://www.coingecko.com/en/coins/pax-gold"
          }
        ],
        "page": "https://rwamaps.com/gold/paxg/base",
        "warnings": []
      },
      "warnings": [],
      "lastVerified": "2026-11-14",
      "source": "https://rwamaps.com/gold/paxg/base",
      "signed": false
    }
    200 example · Same address, different chain48 linesShow
    {
      "schemaVersion": "1.1.0",
      "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
      "chain": "Celo",
      "chainSlug": "celo",
      "verified": false,
      "listed": false,
      "isToken": false,
      "reason": "Not verified. This address is NOT the XAUT0 token on Celo: in the registry it is the XAUT0 token on BNB Smart Chain. According to the registry's XAUT0 note, on Celo this address is the XAUT0 OFT contract, not the token. The XAUT0 token on Celo is 0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff (chain: Celo). Always match the address and the chain.",
      "otherChains": [
        {
          "chain": "BNB Smart Chain",
          "chainSlug": "bnb-smart-chain",
          "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
          "token": "xaut0",
          "ticker": "XAUT0",
          "role": "oft-token",
          "roleLabel": "OFT token",
          "addressKind": "contract",
          "page": "https://rwamaps.com/gold/xaut0/bnb-smart-chain"
        }
      ],
      "deploymentOnChain": {
        "chain": "Celo",
        "chainSlug": "celo",
        "address": "0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff",
        "token": "xaut0",
        "ticker": "XAUT0",
        "role": "oft-token",
        "roleLabel": "OFT token",
        "addressKind": "contract",
        "page": "https://rwamaps.com/gold/xaut0/celo"
      },
      "reuse": {
        "chain": "Celo",
        "chainSlug": "celo",
        "role": "OFT contract (not the token)",
        "token": "xaut0",
        "sourceNote": "The same address string can identify different contracts on different chains. 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain.",
        "warning": "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain."
      },
      "warnings": [
        "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain."
      ],
      "lastVerified": "2026-11-16",
      "source": "https://rwamaps.com/gold/xaut0",
      "signed": false
    }
    200 example · A bridge contract, not a token60 linesShow
    {
      "schemaVersion": "1.1.0",
      "address": "0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
      "chain": "Ethereum",
      "chainSlug": "ethereum",
      "verified": false,
      "listed": true,
      "isToken": false,
      "reason": "Bridge contract, not a token. Not verified as a token: 0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C is the XAUT0 OFT adapter on Ethereum, listed in the registry as a bridge contract. Do not send tokens to it. On Ethereum, hold canonical XAUT (0x68749665FF8D2d112Fa859AA293F07A622782F38 on Ethereum).",
      "token": {
        "id": "xaut0",
        "ticker": "XAUT0",
        "name": "Tether Gold Tokens",
        "issuer": "Tether / USDT0",
        "issuerUrl": "https://usdt0.to/assets/xaut0",
        "commodity": "gold",
        "section": "commodities",
        "unit": "Omnichain representation of 1 XAUT (1 fine troy ounce)",
        "subname": "xaut0.gold.commodities.eth",
        "subnameStatus": "live",
        "lastVerified": "2026-11-16",
        "page": "https://rwamaps.com/gold/xaut0"
      },
      "issuer": "Tether / USDT0",
      "role": "oft-adapter",
      "roleLabel": "Bridge contract, not a token",
      "matchedDeployment": {
        "chain": "Ethereum",
        "chainSlug": "ethereum",
        "address": "0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
        "addressKind": "contract",
        "role": "oft-adapter",
        "roleLabel": "Bridge contract, not a token",
        "isToken": false,
        "standard": "OFT Adapter",
        "decimals": 6,
        "decimalsStatus": "known",
        "explorer": "https://etherscan.io/address/0xb9c2321BB7D0Db468f570D10A424d1Cc8EFd696C",
        "sources": [
          {
            "label": "XAUt0 official developer docs",
            "url": "https://usdt0.gitbook.io/xaut0/technical-documentation/developer"
          },
          {
            "label": "USDT0 official deployments",
            "url": "https://docs.usdt0.to/technical-documentation/deployments"
          }
        ],
        "page": "https://rwamaps.com/gold/xaut0/ethereum",
        "warnings": [
          "Bridge contract, not a token. This is the XAUT0 OFT adapter on Ethereum: do not send tokens to it. On Ethereum, hold canonical XAUT (0x68749665FF8D2d112Fa859AA293F07A622782F38 on Ethereum)."
        ]
      },
      "warnings": [
        "Bridge contract, not a token. This is the XAUT0 OFT adapter on Ethereum: do not send tokens to it. On Ethereum, hold canonical XAUT (0x68749665FF8D2d112Fa859AA293F07A622782F38 on Ethereum)."
      ],
      "lastVerified": "2026-11-16",
      "source": "https://rwamaps.com/gold/xaut0/ethereum",
      "signed": false
    }
    200 example · token=paxg for XAUT0's Solana mint: another record69 linesShow
    {
      "schemaVersion": "1.1.0",
      "address": "AymATz4TCL9sWNEEV9Kvyz45CHVhDZ6kUgjTJPzLpU9P",
      "chain": "Solana",
      "chainSlug": "solana",
      "verified": false,
      "listed": true,
      "isToken": true,
      "reason": "Not verified as PAXG: this is the XAUT0 token on Solana (Tether Gold Tokens), a different record. The PAXG token on Solana is 5GgRAEmv8ZxF2PR5hY72Qs5x1bnQ6UK2RbTPoqJ3wSwW (chain: Solana). Always match the token, the address and the chain.",
      "expected": {
        "token": "paxg",
        "ticker": "PAXG",
        "deployment": {
          "chain": "Solana",
          "chainSlug": "solana",
          "address": "5GgRAEmv8ZxF2PR5hY72Qs5x1bnQ6UK2RbTPoqJ3wSwW",
          "token": "paxg",
          "ticker": "PAXG",
          "role": "official",
          "roleLabel": "Official",
          "addressKind": "contract",
          "page": "https://rwamaps.com/gold/paxg/solana"
        }
      },
      "token": {
        "id": "xaut0",
        "ticker": "XAUT0",
        "name": "Tether Gold Tokens",
        "issuer": "Tether / USDT0",
        "issuerUrl": "https://usdt0.to/assets/xaut0",
        "commodity": "gold",
        "section": "commodities",
        "unit": "Omnichain representation of 1 XAUT (1 fine troy ounce)",
        "subname": "xaut0.gold.commodities.eth",
        "subnameStatus": "live",
        "lastVerified": "2026-11-16",
        "page": "https://rwamaps.com/gold/xaut0"
      },
      "issuer": "Tether / USDT0",
      "role": "oft-token",
      "roleLabel": "OFT token",
      "matchedDeployment": {
        "chain": "Solana",
        "chainSlug": "solana",
        "address": "AymATz4TCL9sWNEEV9Kvyz45CHVhDZ6kUgjTJPzLpU9P",
        "addressKind": "contract",
        "role": "oft-token",
        "roleLabel": "OFT token",
        "isToken": true,
        "standard": "SPL",
        "decimals": 6,
        "decimalsStatus": "known",
        "explorer": "https://solscan.io/token/AymATz4TCL9sWNEEV9Kvyz45CHVhDZ6kUgjTJPzLpU9P",
        "sources": [
          {
            "label": "USDT0 official deployments",
            "url": "https://docs.usdt0.to/technical-documentation/deployments"
          }
        ],
        "page": "https://rwamaps.com/gold/xaut0/solana",
        "warnings": []
      },
      "warnings": [
        "This address is a listed token on Solana, but not PAXG: compare token.ticker and token.id with the asset you mean before you sign."
      ],
      "lastVerified": "2026-11-16",
      "source": "https://rwamaps.com/gold/xaut0/solana",
      "signed": false
    }
  • 400address or chain is missing or too long, or token names no record.ApiError
    • error invalid_request: address and chain are required (missing: chain). An address is only meaningful together with its chain. The same address string can be a different contract, or nothing, on another chain. Always use the address and the chain together.

    Headers X-RWAMaps-Source

    400 example · address without chain8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "address and chain are required (missing: chain). An address is only meaningful together with its chain. The same address string can be a different contract, or nothing, on another chain. Always use the address and the chain together.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/v1/monitor

Automated monitoring: when each deployment was last checked on-chain and against its issuer's source, and what changed

Without token: coverage per chain, the last check of each, the daily issuer-source check and the newest monitor events (proxy upgrades, admin, owner and authority changes, pauses, supply jumps of 50%+, addresses removed from an issuer's list). With token: each deployment's lastChecked, sourceLastChecked, last reading and the record's events. Times are only ever ones a check produced (null before). Separate from lastVerified, the manual research pass. Cached for up to 5 minutes.

Parameters

tokenquery · optional · string
A record id or ticker: that record's deployments and events.
limitquery · optional · string
Events to return, 0 to 200, default 50.

Responses

  • 200The monitor's state.

    Headers X-RWAMaps-Source

    Fieldsinline · 19 fieldsShow

    Shape 1 of 2

    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    scheduleobject
    —
    lastCheckedstring | null
    ISO 8601 UTC time.
    deploymentsobject
    —
    sourcesobject
    —
    chainsMonitorChain[]
    —
    eventsMonitorEvent[]
    —

    Shape 2 of 2

    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    tokenstring
    —
    tickerstring
    —
    scheduleobject
    —
    deploymentsMonitorDeployment[]
    —
    eventsMonitorEvent[]
    —

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · Before the first run, trimmed to one chain35 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes#monitoring",
      "schedule": {
        "onchain": "Each covered chain about every hour (Vercel Cron calls /api/cron/monitor every 10 minutes; each run takes the chains last checked 55 minutes ago or more).",
        "sources": "Daily at 07:41 UTC (Vercel Cron calls /api/cron/monitor-sources)."
      },
      "lastChecked": null,
      "deployments": {
        "total": 882,
        "covered": 842,
        "checked": 0,
        "notCovered": 40
      },
      "sources": {
        "lastChecked": null,
        "listed": 0,
        "missing": 0,
        "unchecked": 0
      },
      "chains": [
        {
          "chain": "Ethereum",
          "chainSlug": "ethereum",
          "coverage": "evm",
          "deployments": 128,
          "lastChecked": null,
          "checked": null,
          "errors": null
        }
      ],
      "events": [],
      "signed": false
    }
    200 example · ?token=paxg before the first run, Ethereum only24 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-11-14",
      "source": "https://rwamaps.com/gold/paxg",
      "token": "paxg",
      "ticker": "PAXG",
      "schedule": {
        "onchain": "Each covered chain about every hour (Vercel Cron calls /api/cron/monitor every 10 minutes; each run takes the chains last checked 55 minutes ago or more).",
        "sources": "Daily at 07:41 UTC (Vercel Cron calls /api/cron/monitor-sources)."
      },
      "deployments": [
        {
          "chain": "Ethereum",
          "chainSlug": "ethereum",
          "address": "0x45804880De22913dAFE09f4980848ECE6EcbAf78",
          "coverage": "evm",
          "lastChecked": null,
          "sourceLastChecked": null,
          "sourceStatus": "unchecked"
        }
      ],
      "events": [],
      "signed": false
    }
  • 400limit or token is invalid.ApiError
    • error invalid_request: limit must be an integer from 0 to 200.

    Headers X-RWAMaps-Source

    400 example · Bad limit8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "limit must be an integer from 0 to 200.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes#monitoring",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/api/cron/monitorBearer secret

Run the on-chain monitor (operator only, GET)

Called by Vercel Cron every 10 minutes with Authorization: Bearer CRON_SECRET. Reads the chains last checked 55+ minutes ago (proxy slots, owner, paused, supply; Solana mint and freeze authorities and supply; TON jetton admin, code and supply), confirms any difference with a second read, stores the state and new events, and hands events to webhooks and the X pipeline. A read error is recorded as an error, never as a change.

Request
curl https://rwamaps.com/api/cron/monitor

Responses

  • 200Run summary.

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET.ApiError
    • error unauthorized: Missing or wrong bearer secret.

    Headers X-RWAMaps-Source, WWW-Authenticate

    401 example · Wrong secret8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "unauthorized",
      "message": "Missing or wrong bearer secret.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503CRON_SECRET or the Redis store is not configured, or the run failed (nothing recorded).ApiError
    • error cron_unavailable: CRON_SECRET is not set.
    • error monitor_unavailable: No Redis store is configured (KV_REST_API_URL and KV_REST_API_TOKEN); monitoring needs one to keep state.

    Headers X-RWAMaps-Source

    503 example · CRON_SECRET not set8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "cron_unavailable",
      "message": "CRON_SECRET is not set.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
    503 example · No store8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "monitor_unavailable",
      "message": "No Redis store is configured (KV_REST_API_URL and KV_REST_API_TOKEN); monitoring needs one to keep state.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes#monitoring",
      "signed": false
    }

POST/api/cron/monitorBearer secret

Run the on-chain monitor (operator only, POST)

The same handler and answers as GET.

Responses

  • 200Run summary.

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET (as GET).ApiError

    Headers X-RWAMaps-Source, WWW-Authenticate

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503As GET.ApiError

    Headers X-RWAMaps-Source

GET/api/cron/monitor-sourcesBearer secret

Re-check the issuers' published address sources (operator only, GET)

Called by Vercel Cron daily. Fetches each issuer's published address list and records, per deployment, whether its address is still listed; a removal is confirmed by a second fetch before it becomes an event.

Request
curl https://rwamaps.com/api/cron/monitor-sources

Responses

  • 200Run summary.

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET.ApiError
    • error unauthorized: Missing or wrong bearer secret.

    Headers X-RWAMaps-Source, WWW-Authenticate

    401 example · Wrong secret8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "unauthorized",
      "message": "Missing or wrong bearer secret.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503CRON_SECRET or the Redis store is not configured, or the run failed (nothing recorded).ApiError
    • error cron_unavailable: CRON_SECRET is not set.
    • error monitor_unavailable: No Redis store is configured (KV_REST_API_URL and KV_REST_API_TOKEN); monitoring needs one to keep state.

    Headers X-RWAMaps-Source

    503 example · CRON_SECRET not set8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "cron_unavailable",
      "message": "CRON_SECRET is not set.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
    503 example · No store8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "monitor_unavailable",
      "message": "No Redis store is configured (KV_REST_API_URL and KV_REST_API_TOKEN); monitoring needs one to keep state.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes#monitoring",
      "signed": false
    }

POST/api/cron/monitor-sourcesBearer secret

Re-check the issuers' published address sources (operator only, POST)

The same handler and answers as GET.

Responses

  • 200Run summary.

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET (as GET).ApiError

    Headers X-RWAMaps-Source, WWW-Authenticate

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503As GET.ApiError

    Headers X-RWAMaps-Source

Changes

Every change to the registry since its first import, backfilled from the repository history: additions, reclassifications and metadata edits, each with its reason, source and commit. Subscribe with webhooks instead of polling.

GET/api/v1/changes

Registry change history

Changes after since, or after the change id given as after (all when neither), oldest first. Backfilled from git history. Pass latestChangeId from a previous response as after to poll for new changes.

The same history as the changes page and its feeds. since is a date (YYYY-MM-DD, midnight UTC) or a date-time with a zone; use latestChangeId to tell whether anything is new.

Parameters

sincequery · optional · string
ISO 8601 date or date-time with a zone. Only changes after it. Not with after.
afterquery · optional · string
A change id: latestChangeId from a previous response. Only the changes after it. Not with since.
Request
curl 'https://rwamaps.com/api/v1/changes?since=2026-11-28'

Try it

A live request to this site

ISO 8601 date or date-time with a zone. Only changes after it. Not with after.

A change id: latestChangeId from a previous response. Only the changes after it. Not with since.

Request

GET /api/v1/changes?since=2026-11-28

Open in a new tab

Responses

  • 200Changes.ChangesResponse

    Headers X-RWAMaps-Source

    FieldsChangesResponse · 8 fieldsShow
    schemaVersion"1.1.0"
    —
    sincestring (date-time) | null
    The since instant as applied, in UTC (e.g. 2026-11-16T00:00:00.000Z); null when not given.
    afterstring | null
    The after change id as applied; null when not given.
    countinteger
    —
    changesChangeEntry[]
    Changes strictly after since (or after the change named by after), oldest first.
    latestChangeIdstring
    Id of the newest change in the whole changelog. Pass it as after on the next call to get only newer changes.
    lastVerifiedstring (date)
    Calendar date, YYYY-MM-DD.
    sourcestring (uri)
    Absolute URL.

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · after=2026-11-28-benji-metadata-ens-status31 linesShow
    {
      "schemaVersion": "1.1.0",
      "since": null,
      "after": "2026-11-28-benji-metadata-ens-status",
      "count": 1,
      "changes": [
        {
          "id": "2026-11-28-jltxx-metadata-ens-status",
          "timestamp": "2026-11-28T16:06:22Z",
          "type": "metadata",
          "token": "jltxx",
          "chain": null,
          "chainSlug": null,
          "address": null,
          "before": {
            "ensStatus": "planned"
          },
          "after": {
            "ensStatus": "live"
          },
          "reason": "JLTXX's ENS name is live on-chain as an ENS v1 name on the Public Resolver under moneymarket.eth.",
          "sourceUrl": "https://am.jpmorgan.com/us/en/asset-management/adv/about-us/media/press-releases/jp-morgan-asset-management-launches-second-tokenized-fund-on-ethereum/",
          "commit": "50962d7539d1e40510dbe7513dbcba064628f699",
          "warnings": []
        }
      ],
      "latestChangeId": "2026-11-28-jltxx-metadata-ens-status",
      "lastVerified": "2026-11-28",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
    200 example · after=2026-11-28-jltxx-metadata-ens-status (the newest change): nothing new
    {
      "schemaVersion": "1.1.0",
      "since": null,
      "after": "2026-11-28-jltxx-metadata-ens-status",
      "count": 0,
      "changes": [],
      "latestChangeId": "2026-11-28-jltxx-metadata-ens-status",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 400since is not an ISO 8601 date or date-time with a zone, after is not a change id, or both are given.ApiError
    • error invalid_argument: Invalid "since". Use an ISO 8601 date or date-time with a zone, such as 2026-11-17 or 2026-11-17T00:00:00Z.

    Headers X-RWAMaps-Source

    400 example · since=yesterday8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_argument",
      "message": "Invalid \"since\". Use an ISO 8601 date or date-time with a zone, such as 2026-11-17 or 2026-11-17T00:00:00Z.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 120 requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 120 requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/changes.rss

Change feed, RSS 2.0

Request
curl https://rwamaps.com/changes.rss

Responses

  • 200RSS 2.0 feed.application/rss+xml

    Headers X-Registry-Schema, X-RWAMaps-Last-Verified, X-RWAMaps-Source

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/changes.atom

Change feed, Atom 1.0

Request
curl https://rwamaps.com/changes.atom

Responses

  • 200Atom 1.0 feed.application/atom+xml

    Headers X-Registry-Schema, X-RWAMaps-Last-Verified, X-RWAMaps-Source

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

Signatures

An agent can prove that an answer came from RWA Maps and was not changed on the way: responses are signed with an Ethereum key (scheme eip191-jcs-v1), and the signer is published at /.well-known/rwamaps-signer.json and, by the owner, on ENS.

What is signed

With a signing key configured, these end with the signature members signed, signatureScheme, signer, signedAt, signature: every /api/v1 JSON body, errors included; /api/prices; the webhook delivery cron's answers; every JSON 405 for a method an endpoint does not serve; MCP tool results and resource reads; the API error body each MCP JSON-RPC error carries as error.data; and /registry.json, signed when the site is built, with /registry.json.sig as its detached signature. Never signed: the signer document /.well-known/rwamaps-signer.json, /openapi.json, /.well-known/ai-plugin.json, /registry.json.sig itself (it is the signature) and MCP protocol results (initialize, tools/list, ping and the like). The scheme is eip191-jcs-v1:

  1. signable: the JSON object minus its signature member. It keeps signed, signatureScheme, signer and signedAt, so those are covered too.
  2. message: the RFC 8785 JSON Canonicalization Scheme (JCS) of signable (RFC 8785: members sorted by UTF-16 code units, no whitespace, ECMAScript number form), as a UTF-8 string.
  3. signature: EIP-191 personal_sign of message (version 0x45), the secp256k1 signature of keccak256("\x19Ethereum Signed Message:\n" + byteLength + message), as 65 bytes of hex (r, s, v).
Signature members
"signed": true,
"signatureScheme": "eip191-jcs-v1",
"signer": "0x… (the signing key's address)",
"signedAt": "2026-11-18T06:23:00.000Z",
"signature": "0x… (65 bytes: r, s, v)"

Without a key the body carries signed: false and no other signature member, and no signature headers are sent. Nothing then proves where the body came from. Once this deployment publishes a signer (the rwamaps.signer record, or a published entry in the signer document), treat signed: false or a missing signature as a failed verification, never as a neutral state: whoever can change a body in transit can strip its signature just as easily.

A signature attests origin and integrity only: this body, unchanged, from this signer. The claims are the structured fields (verified, listed, isToken, and each deployment's address with its chain). Fields such as query, and the address and chain of a verify-address answer, echo what the caller sent; a signature over them says nothing about them.

Headers

A signed response repeats its signature members in headers, exposed to browsers through CORS:

X-RWAMaps-Signature
The body’s signature.
X-RWAMaps-Signer
The body’s signer.
X-RWAMaps-Signed-At
The body’s signedAt.
X-RWAMaps-Signature-Scheme
eip191-jcs-v1

Verify the body, not the headers: the headers are a convenience for logs and proxies. The CSV, /llms.txt, /llms-full.txt and the change feeds are not JSON and are not signed; /tokenlist.json is JSON but is not a signed registry document; they carry the envelope as the X-Registry-Schema, X-RWAMaps-Last-Verified and X-RWAMaps-Source headers instead, which the JSON data documents send too.

Verify a response

Two checks, and you need both. First recompute the message from the body you received and recover the signer: that proves the body is unchanged since signer signed it. Parse the raw response text with a strict parser first (the snippets import the full examples' parsers, so save the example next to them): key order and whitespace do not matter, because the message is canonical, but a repeated member name or a re-encoded number is refused (below). Then check that signer is an RWA Maps signer you trust (below): anyone can sign a body that names their own key, so a valid signature alone proves nothing about where it came from.

TypeScript · viem
import canonicalize from "canonicalize";
import { isAddressEqual, verifyMessage } from "viem";
// Save docs/examples/verify-signature.ts next to this file: its strict parser.
import { parseStrictJson } from "./verify-signature.ts";

// The RWA Maps signer you pinned: the rwamaps.signer ENS text record (once the
// owner sets it), or an address you took from the published signer list.
const EXPECTED_SIGNER = "0x…";

// The raw text, parsed strictly: a member name repeated in one object, a lone surrogate
// or a number not in its RFC 8785 form is refused (res.json() accepts all three).
const parsed = parseStrictJson(await (await fetch("https://rwamaps.com/api/v1/tokens/paxg")).text());
if ("problem" in parsed) throw new Error(parsed.problem);
const body = parsed.value as Record<string, any>;
const { signature, ...signable } = body; // everything except "signature"
const valid =
  body.signed === true &&
  (await verifyMessage({ address: body.signer, message: canonicalize(signable)!, signature }));
const trusted = valid && isAddressEqual(body.signer, EXPECTED_SIGNER); // act on this, not on valid
Python · eth_account
import urllib.error
import urllib.request
from eth_account import Account
from eth_account.messages import encode_defunct
# Save docs/examples/verify_signature.py next to this file: its strict parser and RFC 8785.
from verify_signature import loads, signing_message

# The RWA Maps signer you pinned: the rwamaps.signer ENS text record (once the
# owner sets it), or an address you took from the published signer list.
EXPECTED_SIGNER = "0x…"

# The raw text, parsed strictly: loads() refuses a member name repeated in one object,
# a lone surrogate and a number not in its RFC 8785 form (json.load accepts all three).
def fetch(url):
    try:
        return urllib.request.urlopen(url).read()
    except urllib.error.HTTPError as error:  # a 4xx or 5xx answer is a signed error body too
        return error.read()

body = loads(fetch("https://rwamaps.com/api/v1/tokens/paxg").decode("utf-8"))
valid = trusted = False
if body.get("signed") is True:  # an unsigned body (signed: false) is never valid
    message = signing_message(body)  # JCS of the body minus "signature"
    recovered = Account.recover_message(encode_defunct(text=message), signature=body["signature"])
    valid = recovered.lower() == body["signer"].lower()
    trusted = valid and recovered.lower() == EXPECTED_SIGNER.lower()  # act on this, not on valid

The full examples are docs/examples/verify-signature.ts (npm install viem canonicalize) and docs/examples/verify_signature.py (pip install eth-account; it includes its own RFC 8785 canonicalization, or use the rfc8785 package). Both return valid (the signature), trusted (the signer, under the anchor you give) and ok, which is both: act on ok. The command line exits 0 only when ok is true, and verifies signed error bodies too. Both are tested against responses signed by this site’s signing code and against bodies re-signed by a foreign key.

Give the full examples the raw response text; the snippets pass it to the same parsers. They refuse, with fixed text, a body that names the same member twice in one object, holds a lone surrogate, or writes a number in another form than its RFC 8785 one (18.0 or 1.8e1 for 18, -0 for 0): the signature would still match, while another parser could read a different value. res.json() and json.load accept all three. Check the signature over the parsed value itself, never over a copy a schema library rebuilt from it: such a copy can drop a member (zod leaves out one named __proto__), and would verify while the body does not. This site writes every number in its RFC 8785 form, so a body passed on exactly as received never trips the check.

Command line
python verify_signature.py --signer 0x… https://rwamaps.com/api/v1/tokens/paxg
python verify_signature.py --signer-doc https://rwamaps.com/.well-known/rwamaps-signer.json https://rwamaps.com/api/v1/tokens/paxg
# exit 0 only when the signature is valid AND the signer is trusted;
# without --signer or --signer-doc it exits 1: the signer was not checked
Full example · verify-signature.ts453 linesShow
/*
 * Verify a signed RWA Maps response in TypeScript (scheme eip191-jcs-v1).
 *
 *   npm install viem canonicalize
 *
 * Every /api/v1 JSON body and every MCP tool result carries `signed`. When the
 * deployment has a signing key, it also carries signatureScheme, signer,
 * signedAt and signature:
 *
 *   signable  = the JSON object minus its "signature" member (it keeps signed,
 *               signatureScheme, signer and signedAt)
 *   message   = the RFC 8785 (JCS) serialization of signable, as a UTF-8 string
 *   signature = EIP-191 personal_sign(message), 65 bytes as 0x hex
 *
 * Two separate checks, and you need both:
 *
 * 1. `valid`: the signature recovers to the signer the body names, so the body
 *    is unchanged since that key signed it. Anyone can sign a body that names
 *    their own key, so `valid` alone proves nothing about where it came from.
 * 2. `trusted`: that signer is an RWA Maps signer according to a trust anchor
 *    you pass in: signer addresses you pinned yourself (the rwamaps.signer
 *    text record on commodities.eth, once the owner sets it, or an address you
 *    obtained out of band), or the signer document
 *    /.well-known/rwamaps-signer.json fetched from https://rwamaps.com. A
 *    signer document served by the same origin as the response is not an
 *    independent anchor against a mirror or an interceptor: it would vouch for
 *    its own forgeries. Without an anchor, `trusted` is null.
 *
 * `ok` is valid && trusted === true. Act on `ok`, never on `valid`.
 *
 * Pass the raw response text. RFC 8785 requires I-JSON (RFC 7493), so a text
 * that names the same member twice in one object (at any depth, "a" and
 * "\u0061" being the same name) or holds a lone surrogate is rejected:
 * JSON.parse keeps the last duplicate while other parsers keep the first, so
 * the same signed bytes would read as two different answers. A number written
 * in any form but its RFC 8785 (JCS) one (18.0, 1.8e1 or 18.0000000000000001
 * for 18, -0 for 0, 0.10 for 0.1) is rejected for the same reason: JCS reads
 * every number as an IEEE 754 double, so the signature still matches, while a
 * parser that keeps more precision reads another value. RWA Maps writes every
 * number in its JCS form, so a genuine body never trips this. A parsed object
 * can no longer show either, which is why the text is the input to use.
 *
 * A member named "__proto__", "constructor" or "toString" is an ordinary
 * member: JSON.parse defines it as an own property, the duplicate check keeps
 * names in a Set, and the signed message (object spread, then canonicalize)
 * includes it like any other. So a "__proto__" member added to a signed body
 * is a change, and the signature no longer matches. Never verify a copy that
 * a schema library rebuilt from the body: zod, for one, leaves an own
 * "__proto__" member out of its output, and the copy would verify while the
 * body does not.
 *
 * This file has no Node-only imports: the /api page runs it in the browser
 * for its "Try it" boxes, and tests/docs-verify-signature.test.ts runs it in
 * Node against responses signed by lib/agent/signing.ts, and against bodies
 * re-signed by a foreign key.
 *
 * Usage: pin the signer, then act only on `ok`.
 *   import { createPublicClient, http } from "viem";
 *   import { mainnet } from "viem/chains";
 *   import { normalize } from "viem/ens";
 *
 *   // The owner sets this record from his own wallet. Until he has, getEnsText
 *   // returns null, which means no trust anchor: pin an address you obtained
 *   // yourself, or every check fails (ok: false).
 *   const ens = createPublicClient({ chain: mainnet, transport: http() });
 *   const record = await ens.getEnsText({ name: normalize("commodities.eth"), key: "rwamaps.signer" });
 *   const pinned = record ? [record] : [];
 *
 *   const res = await fetch("https://rwamaps.com/api/v1/tokens/paxg");
 *   const result = await verifyRwaMapsResponse(await res.text(), { pinned });
 *   if (!result.ok) throw new Error(result.reason);
 */
import canonicalize from "canonicalize";
import { getAddress, isAddress, isAddressEqual, recoverMessageAddress, verifyMessage, type Hex } from "viem";

/** The only scheme RWA Maps signs with today. */
export const SIGNATURE_SCHEME = "eip191-jcs-v1";

/** The headers that repeat the signature members on a signed HTTP response. */
export const SIGNATURE_HEADERS = {
  signature: "X-RWAMaps-Signature",
  signer: "X-RWAMaps-Signer",
  signedAt: "X-RWAMaps-Signed-At",
  scheme: "X-RWAMaps-Signature-Scheme",
} as const;

/** What the /api page prints for a body with `signed: false`. */
export const UNSIGNED_LABEL = "Unsigned (signer key not configured)";

/** The signer document, served at this path on https://rwamaps.com. */
export const SIGNER_DOCUMENT_URL = "https://rwamaps.com/.well-known/rwamaps-signer.json";

/** The body of /.well-known/rwamaps-signer.json (the members this check reads). */
export type SignerDocument = {
  current: string | null;
  signers: {
    address: string;
    validFrom: string;
    validTo: string | null;
    /** "revoked": a compromised key, never trusted whatever the signedAt. */
    status?: "active" | "retired" | "revoked";
  }[];
};

/**
 * What to trust: signer addresses you pinned yourself, or a signer document
 * you fetched from https://rwamaps.com (not from the origin you are checking).
 */
export type TrustAnchor = { pinned: readonly string[] } | SignerDocument;

/**
 * "pinned": the signer is one of your pinned addresses. "published": a
 * published signer whose window covers signedAt, per the signer document.
 * "current": the key the deployment says it signs with now, per the signer
 * document; that is self-reported, so confirm it with the ENS record.
 */
export type TrustLevel = "pinned" | "published" | "current";

export type RwaMapsVerification = {
  /** True when the body says it is signed (`signed: true`). */
  signed: boolean;
  /**
   * True only when the signature recovers to the signer the body names. It
   * says the body is unchanged since that key signed it, not that the key is
   * RWA Maps': a body re-signed by any key that names itself is `valid`.
   */
  valid: boolean;
  /** The signer the body names (EIP-55), or null. */
  signer: Hex | null;
  /** The address recovered from the signature, or null when none could be recovered. */
  recoveredSigner: Hex | null;
  signedAt: string | null;
  /** The exact string that was signed: JCS(body minus "signature"). Null when unsigned. */
  message: string | null;
  /** How the signer is trusted under the anchor you passed; null when it is not, or when no anchor was given. */
  trust: TrustLevel | null;
  /** True or false when an anchor was given and the signature is valid; null when no anchor was given. */
  trusted: boolean | null;
  /** valid && trusted === true. The one field to act on. */
  ok: boolean;
  reason: string;
};

const SIGNATURE_HEX = /^0x[0-9a-fA-F]{130}$/;

function isRecord(value: unknown): value is Record<string, unknown> {
  return typeof value === "object" && value !== null && !Array.isArray(value);
}

/** The fixed reasons for a text that is JSON but not I-JSON (RFC 7493), which RFC 8785 requires. */
export const NOT_I_JSON_REASONS = {
  "duplicate-member":
    "The body names the same member twice in one object, so it is not I-JSON (RFC 7493), which RFC 8785 requires: parsers disagree on which value wins. Rejected.",
  "lone-surrogate":
    "The body holds a lone surrogate (an unpaired code unit in U+D800 to U+DFFF), so it is not I-JSON (RFC 7493), which RFC 8785 requires. Rejected.",
} as const;

/** The fixed reason for a number written in another form than its RFC 8785 (JCS) one. */
export const NON_CANONICAL_NUMBER_REASON =
  "The body writes a number in a form other than its RFC 8785 (JCS) one, such as 18.0 or 1.8e1 for 18, or -0 for 0. RWA Maps writes every number in that form, and a parser that keeps more precision than a double can read another form (18.0000000000000001) as a different value while the signature still matches. Rejected.";

/** Every fixed reason a text is refused with before any signature check. */
export const REFUSED_TEXT_REASONS: readonly string[] = [...Object.values(NOT_I_JSON_REASONS), NON_CANONICAL_NUMBER_REASON];

/** Why parseStrictJson refused a text. */
export type StrictJsonProblem = "syntax" | keyof typeof NOT_I_JSON_REASONS | "non-canonical-number";

/** The characters a JSON number token is made of (JSON.parse has already checked its grammar). */
const NUMBER_CHARS = "0123456789+-.eE";

/** True when a string holds a UTF-16 surrogate that is not half of a pair. */
function hasLoneSurrogate(value: string): boolean {
  for (let i = 0; i < value.length; i++) {
    const unit = value.charCodeAt(i);
    if (unit < 0xd800 || unit > 0xdfff) continue;
    const next = value.charCodeAt(i + 1);
    if (unit <= 0xdbff && next >= 0xdc00 && next <= 0xdfff) i++;
    else return true;
  }
  return false;
}

/**
 * JSON.parse for I-JSON with canonical numbers only. Returns { value } or
 * { problem }: "syntax" for a text that is not JSON, "duplicate-member" for
 * an object (at any depth) that names a member twice after unescaping,
 * "lone-surrogate" for a string with an unpaired surrogate, and
 * "non-canonical-number" for a number token whose text is not the RFC 8785
 * serialization of its value (the same canonicalize call that builds the
 * signed message). After JSON.parse accepts the grammar, one iterative pass
 * over the tokens checks the names of each object and every number.
 */
export function parseStrictJson(text: string): { value: unknown } | { problem: StrictJsonProblem } {
  let value: unknown;
  try {
    value = JSON.parse(text);
  } catch {
    return { problem: "syntax" };
  }
  const open: Array<Set<string> | null> = []; // per open container: the names seen (object) or null (array)
  let expectName = false;
  for (let i = 0; i < text.length; i++) {
    const ch = text[i];
    if (ch === "-" || (ch >= "0" && ch <= "9")) {
      // Outside a string, a number token: it must read exactly as JCS writes its value.
      let end = i + 1;
      while (end < text.length && NUMBER_CHARS.includes(text[end])) end++;
      const token = text.slice(i, end);
      const number = Number(token);
      // 1e400 reads as Infinity, which has no JSON form at all.
      if (!Number.isFinite(number) || canonicalize(number) !== token) return { problem: "non-canonical-number" };
      i = end - 1;
    } else if (ch === '"') {
      let end = i + 1;
      while (text[end] !== '"') end += text[end] === "\\" ? 2 : 1;
      const token = text.slice(i, end + 1);
      const str: string = token.includes("\\") ? JSON.parse(token) : token.slice(1, -1);
      if (hasLoneSurrogate(str)) return { problem: "lone-surrogate" };
      const names = open[open.length - 1];
      if (names && expectName) {
        if (names.has(str)) return { problem: "duplicate-member" };
        names.add(str);
        expectName = false;
      }
      i = end;
    } else if (ch === "{") {
      open.push(new Set());
      expectName = true;
    } else if (ch === "[") {
      open.push(null);
      expectName = false;
    } else if (ch === "}" || ch === "]") {
      open.pop();
      expectName = false;
    } else if (ch === ",") {
      expectName = open[open.length - 1] instanceof Set;
    }
  }
  return { value };
}

function result(fields: Partial<RwaMapsVerification> & { reason: string }): RwaMapsVerification {
  return {
    signed: false,
    valid: false,
    signer: null,
    recoveredSigner: null,
    signedAt: null,
    message: null,
    trust: null,
    trusted: null,
    ok: false,
    ...fields,
  };
}

/** Whether a value looks like a signer document (the members trustedSigner reads). */
export function isSignerDocument(value: unknown): value is SignerDocument {
  if (!isRecord(value)) return false;
  return (
    (value.current === null || typeof value.current === "string") &&
    Array.isArray(value.signers) &&
    value.signers.every((s) => isRecord(s) && typeof s.address === "string" && typeof s.validFrom === "string")
  );
}

/**
 * Whether `signer` was an RWA Maps signer at `signedAt`, per the signer
 * document: null for a revoked entry (whoever holds a leaked key chooses
 * signedAt, so no window can save it), "published" when a published window
 * [validFrom, validTo) covers signedAt, "current" when it is the key the
 * deployment signs with now, and null otherwise (do not trust the body).
 * The document is only as trustworthy as the origin you fetched it from.
 */
export function trustedSigner(doc: SignerDocument, signer: string, signedAt: string): "published" | "current" | null {
  if (!isAddress(signer, { strict: false })) return null;
  const entries = doc.signers.filter((entry) => isAddress(entry.address, { strict: false }) && isAddressEqual(entry.address, signer));
  if (entries.some((entry) => entry.status === "revoked")) return null;
  const at = Date.parse(signedAt);
  if (Number.isNaN(at)) return null;
  for (const entry of entries) {
    const from = Date.parse(entry.validFrom);
    const to = entry.validTo === null ? Infinity : Date.parse(entry.validTo);
    if (at >= from && at < to) return "published";
  }
  if (doc.current && isAddress(doc.current, { strict: false }) && isAddressEqual(doc.current, signer)) return "current";
  return null;
}

/** The trust level of `signer` under `anchor`, or null. */
export function trustUnder(anchor: TrustAnchor, signer: string, signedAt: string | null): TrustLevel | null {
  if ("pinned" in anchor) {
    if (!isAddress(signer, { strict: false })) return null;
    return anchor.pinned.some((p) => isAddress(p, { strict: false }) && isAddressEqual(p, signer)) ? "pinned" : null;
  }
  return signedAt === null ? null : trustedSigner(anchor, signer, signedAt);
}

const TRUST_WORDS: Record<TrustLevel, string> = {
  pinned: "one of the signers you pinned",
  published: "a published RWA Maps signer at signedAt, per the signer document",
  current: "the key the deployment says it signs with now, per the signer document (self-reported: confirm it with the rwamaps.signer ENS text record once the owner sets it)",
};

/** The fixed reason for a text parseStrictJson refused. */
export function refusedTextReason(problem: StrictJsonProblem): string {
  if (problem === "syntax") return "The body is not JSON.";
  return problem === "non-canonical-number" ? NON_CANONICAL_NUMBER_REASON : NOT_I_JSON_REASONS[problem];
}

/**
 * Verifies an RWA Maps JSON body: the raw response text (preferred: only the
 * text shows a duplicated member name or a re-encoded number, which are
 * rejected), or the object JSON.parse returned. Pass a trust anchor to get
 * `trusted` and `ok`; without one, `ok` is always false. Never throws.
 */
export async function verifyRwaMapsResponse(body: string | object, anchor?: TrustAnchor): Promise<RwaMapsVerification> {
  let parsed: unknown = body;
  if (typeof body === "string") {
    const strict = parseStrictJson(body);
    if ("problem" in strict) return result({ reason: refusedTextReason(strict.problem) });
    parsed = strict.value;
  }
  if (!isRecord(parsed)) return result({ reason: "The body is not a JSON object." });

  if (parsed.signed === false) return result({ reason: UNSIGNED_LABEL });
  if (parsed.signed !== true) return result({ reason: "Unsigned: the body has no signature members." });

  const signedAt = typeof parsed.signedAt === "string" ? parsed.signedAt : null;
  if (parsed.signatureScheme !== SIGNATURE_SCHEME) {
    return result({ signed: true, signedAt, reason: `Unsupported signature scheme; expected ${SIGNATURE_SCHEME}.` });
  }
  const { signer, signature } = parsed;
  if (typeof signer !== "string" || !isAddress(signer, { strict: false })) {
    return result({ signed: true, signedAt, reason: "The signer member is not an Ethereum address." });
  }
  const claimed = getAddress(signer);
  if (typeof signature !== "string" || !SIGNATURE_HEX.test(signature)) {
    return result({
      signed: true,
      signer: claimed,
      signedAt,
      reason: "The signature member is not 65 bytes of hex (0x followed by 130 hex characters).",
    });
  }

  // Everything except "signature", canonicalized with RFC 8785.
  const signable: Record<string, unknown> = { ...parsed };
  delete signable.signature;
  let message: string | undefined;
  try {
    message = canonicalize(signable);
  } catch {
    message = undefined;
  }
  if (message === undefined) {
    return result({ signed: true, signer: claimed, signedAt, reason: "The body has no RFC 8785 (JCS) form." });
  }

  let recovered: Hex | null = null;
  let valid = false;
  try {
    recovered = await recoverMessageAddress({ message, signature: signature as Hex });
    valid = await verifyMessage({ address: claimed, message, signature: signature as Hex });
  } catch {
    valid = false;
  }
  if (!valid) {
    return result({
      signed: true,
      signer: claimed,
      recoveredSigner: recovered,
      signedAt,
      message,
      reason: recovered
        ? `Invalid: the signature recovers to ${recovered}, not to the signer ${claimed}. The body was changed after signing, or it names the wrong signer.`
        : "Invalid: no signer can be recovered from this signature.",
    });
  }

  const checked = { signed: true, valid: true, signer: claimed, recoveredSigner: recovered, signedAt, message };
  if (!anchor) {
    return result({
      ...checked,
      reason: `Valid signature by ${claimed}, but no trusted signer was given: the signature only matches the signer the body names, which anyone can set to their own key. Pass pinned signers or the signer document from https://rwamaps.com, and act on ok.`,
    });
  }
  const trust = trustUnder(anchor, claimed, signedAt);
  if (trust === null) {
    return result({
      ...checked,
      trusted: false,
      reason: `Valid signature by ${claimed}, but that address is not a trusted RWA Maps signer under the anchor you passed (or it was revoked). Do not treat this body as coming from RWA Maps.`,
    });
  }
  return result({ ...checked, trust, trusted: true, ok: true, reason: `Valid signature by ${claimed}, ${TRUST_WORDS[trust]}.` });
}

/**
 * Fetches a URL and verifies its body, under `anchor` when one is given.
 * `headerMatches` says whether the X-RWAMaps-Signature header repeats the
 * body's signature (null when the response carries no such header). A signed
 * error body (a 404, a 429) verifies like any other.
 */
export async function fetchAndVerify(
  url: string,
  init?: Omit<RequestInit, "headers"> & { headers?: Record<string, string> },
  anchor?: TrustAnchor,
): Promise<RwaMapsVerification & { status: number; headerMatches: boolean | null }> {
  const res = await fetch(url, { ...init, headers: { Accept: "application/json", ...init?.headers } });
  const text = await res.text();
  const verification = await verifyRwaMapsResponse(text, anchor);
  const header = res.headers.get(SIGNATURE_HEADERS.signature);
  const strict = parseStrictJson(text);
  const bodySignature = "value" in strict && isRecord(strict.value) ? strict.value.signature : null;
  return { ...verification, status: res.status, headerMatches: header === null ? null : header === bodySignature };
}

/**
 * fetchAndVerify with a trust anchor you choose: `pinned` signer addresses,
 * or the signer document at `signerDocumentUrl`. Give the canonical URL
 * (SIGNER_DOCUMENT_URL), never one on the origin you are checking: a mirror
 * serves a signer document that vouches for its own key. With neither, or
 * when the document cannot be loaded, `ok` is false.
 */
export async function fetchAndVerifyTrusted(
  url: string,
  options: {
    pinned?: readonly string[];
    signerDocumentUrl?: string;
    init?: Omit<RequestInit, "headers"> & { headers?: Record<string, string> };
  },
): Promise<RwaMapsVerification & { status: number; headerMatches: boolean | null }> {
  let anchor: TrustAnchor | undefined;
  if (options.pinned && options.pinned.length > 0) {
    anchor = { pinned: options.pinned };
  } else if (options.signerDocumentUrl) {
    try {
      const res = await fetch(options.signerDocumentUrl, { headers: { Accept: "application/json" } });
      // Strict too: a signer document with a duplicated member is no anchor (fail closed).
      const strict = res.ok ? parseStrictJson(await res.text()) : null;
      const doc: unknown = strict && "value" in strict ? strict.value : null;
      if (isSignerDocument(doc)) anchor = doc;
    } catch {
      anchor = undefined;
    }
    if (!anchor) {
      const out = await fetchAndVerify(url, options.init);
      return { ...out, ok: false, reason: `The signer document could not be loaded, so the signer was not checked. ${out.reason}` };
    }
  }
  return fetchAndVerify(url, options.init, anchor);
}
Full example · verify_signature.py567 linesShow
"""Verify a signed RWA Maps response in Python (scheme eip191-jcs-v1).

    pip install eth-account

Every /api/v1 JSON body and every MCP tool result carries `signed`. When the
deployment has a signing key, it also carries signatureScheme, signer,
signedAt and signature:

    signable  = the JSON object minus its "signature" member (it keeps signed,
                signatureScheme, signer and signedAt)
    message   = the RFC 8785 (JCS) serialization of signable, as a UTF-8 string
    signature = EIP-191 personal_sign(message), 65 bytes as 0x hex

`canonicalize` below is a self-contained RFC 8785 implementation (standard
library only). The `rfc8785` package on PyPI (pip install rfc8785) is an
alternative: rfc8785.dumps(value).decode("utf-8") returns the same string.

Two separate checks, and you need both:

    valid    the signature recovers to the signer the body names, so the body
             is unchanged since that key signed it. Anyone can sign a body
             that names their own key: valid alone proves nothing about origin.
    trusted  that signer is an RWA Maps signer, according to a trust anchor
             you give: --signer (an address you pinned: the rwamaps.signer
             text record on commodities.eth once the owner sets it, or one you
             obtained out of band), or --signer-doc (the signer document,
             https://rwamaps.com/.well-known/rwamaps-signer.json). A signer
             document served by the same origin as the response is not an
             independent anchor against a mirror or an interceptor.

    ok = valid and trusted. Act on ok (and the exit code), never on valid.

RFC 8785 requires I-JSON (RFC 7493), so a body that names the same member
twice in one object (at any depth; "a" and "\\u0061" are the same name) or
holds a lone surrogate is rejected. json.loads would keep the last of two
duplicates while another parser keeps the first, so the same signed bytes
would read as two different answers. A number written in any form but its
RFC 8785 one (18.0, 1.8e1 or 18.0000000000000001 for 18, -0 for 0, 0.10 for
0.1) is rejected for the same reason: JCS reads every number as an IEEE 754
double, so the signature still matches, while a Decimal parser reads another
value. RWA Maps writes every number in its JCS form. Verify the raw text, not
a dict another parser produced. A member named "__proto__" (special only to
JavaScript) is an ordinary key here, signed and sorted like any other, so one
added to a signed body is a change: the signature no longer matches.

Usage:
    python verify_signature.py --signer 0xSIGNER https://rwamaps.com/api/v1/tokens/paxg
    python verify_signature.py --signer-doc https://rwamaps.com/.well-known/rwamaps-signer.json response.json
    curl -s https://rwamaps.com/api/v1/registry | python verify_signature.py --signer 0xSIGNER -
    python verify_signature.py --jcs response.json     # print the signed message (same checks)
    python verify_signature.py --self-test             # RFC 8785 test vectors

--signer may be repeated. --signer-doc takes a URL or a file. A URL that
answers with an HTTP error is still verified: signed error bodies (a 404, a
429) are signed like any other, and "httpStatus" says what the server answered.

It prints the result as JSON and exits 0 only when ok is true: the signature
is valid AND the signer is trusted. It exits 1 otherwise (an invalid or
unsigned body, an untrusted signer, or no --signer or --signer-doc given),
and 2 on a usage error.
"""

from __future__ import annotations

import json
import re
import sys
import urllib.error
import urllib.request
from datetime import datetime, timezone
from typing import Any

SIGNATURE_SCHEME = "eip191-jcs-v1"
UNSIGNED_LABEL = "Unsigned (signer key not configured)"
SIGNER_DOCUMENT_URL = "https://rwamaps.com/.well-known/rwamaps-signer.json"
NO_ANCHOR = "no trusted signer given: pass --signer or --signer-doc"
_ADDRESS = re.compile(r"^0x[0-9a-fA-F]{40}$")
# 65 bytes (r, s, v) as hex with a lower-case 0x, the form the server writes and the TS verifier and the endpoint require.
_SIGNATURE_HEX = re.compile(r"^0x[0-9a-fA-F]{130}$")

# ---------------------------------------------------------------------------
# RFC 8785: JSON Canonicalization Scheme


def _reject_constant(name: str) -> Any:
    raise ValueError(f"{name} is not valid JSON")


class RefusedJson(ValueError):
    """A JSON text a signature check refuses. The message is fixed text: it never quotes the input."""


class NotIJson(RefusedJson):
    """JSON that is not I-JSON (RFC 7493), which RFC 8785 requires."""


class NonCanonicalNumber(RefusedJson):
    """A number token whose text is not the RFC 8785 serialization of its value."""


DUPLICATE_MEMBER = (
    "The body names the same member twice in one object, so it is not I-JSON (RFC 7493), "
    "which RFC 8785 requires: parsers disagree on which value wins. Rejected."
)
LONE_SURROGATE = (
    "The body holds a lone surrogate (an unpaired code unit in U+D800 to U+DFFF), so it is not "
    "I-JSON (RFC 7493), which RFC 8785 requires. Rejected."
)
NON_CANONICAL_NUMBER = (
    "The body writes a number in a form other than its RFC 8785 (JCS) one, such as 18.0 or 1.8e1 for 18, "
    "or -0 for 0. RWA Maps writes every number in that form, and a parser that keeps more precision than a "
    "double can read another form (18.0000000000000001) as a different value while the signature still "
    "matches. Rejected."
)
_SURROGATE = re.compile("[\ud800-\udfff]")


def _unique_members(pairs: list[tuple[str, Any]]) -> dict:
    # json.loads would keep the last of two equal names (after unescaping, so
    # "a" and "\u0061" are equal); another parser may keep the first.
    members: dict = {}
    for name, value in pairs:
        if name in members:
            raise NotIJson(DUPLICATE_MEMBER)
        members[name] = value
    return members


def _reject_lone_surrogates(value: Any) -> None:
    # json.loads joins an escaped surrogate pair into one character, so any
    # surrogate code point left in a string is unpaired. Iterative: no depth limit.
    stack = [value]
    while stack:
        node = stack.pop()
        if isinstance(node, str):
            if _SURROGATE.search(node):
                raise NotIJson(LONE_SURROGATE)
        elif isinstance(node, dict):
            stack.extend(node.keys())
            stack.extend(node.values())
        elif isinstance(node, list):
            stack.extend(node)


def _canonical_int(token: str) -> int:
    # json.loads hands over the exact token text: it must be what canonicalize writes for its value.
    # JCS writes an integer in digits only below 1e21, so never with more than 21 digits; a longer
    # token is refused before int() reads it (Python refuses over 4300 digits as if it were not JSON).
    if len(token.lstrip("-")) > 21:
        raise NonCanonicalNumber(NON_CANONICAL_NUMBER)
    value = int(token)
    if canonicalize(value) != token:
        raise NonCanonicalNumber(NON_CANONICAL_NUMBER)
    return value


def _canonical_float(token: str) -> float:
    value = float(token)
    # 1e400 reads as infinity, which has no JSON form at all.
    if value != value or value in (float("inf"), float("-inf")) or _number(value) != token:
        raise NonCanonicalNumber(NON_CANONICAL_NUMBER)
    return value


def loads(text: str | bytes, canonical_numbers: bool = True) -> Any:
    """
    json.loads for I-JSON only: rejects NaN and Infinity (no JSON form), and
    raises NotIJson for a member name repeated in one object at any depth or
    a lone surrogate. With canonical_numbers (the default, for every signed
    body), it raises NonCanonicalNumber for a number token whose text is not
    the RFC 8785 serialization of its value (18.0, 1.8e1, -0, 0.10). Only the
    RFC 8785 self-test, whose sample input is deliberately not canonical,
    turns that off.
    """
    numbers = {"parse_int": _canonical_int, "parse_float": _canonical_float} if canonical_numbers else {}
    value = json.loads(text, parse_constant=_reject_constant, object_pairs_hook=_unique_members, **numbers)
    _reject_lone_surrogates(value)
    return value


_ESCAPES = {'"': '\\"', "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", "\t": "\\t"}


def _string(value: str) -> str:
    # ECMAScript JSON.stringify escaping: the two-character escapes, \u00xx for
    # the other control characters, everything else as is.
    out = ['"']
    for ch in value:
        code = ord(ch)
        if ch in _ESCAPES:
            out.append(_ESCAPES[ch])
        elif code < 0x20:
            out.append("\\u%04x" % code)
        elif 0xD800 <= code <= 0xDFFF:
            raise ValueError("lone surrogates have no canonical form")
        else:
            out.append(ch)
    out.append('"')
    return "".join(out)


def _number(value: float) -> str:
    # ECMAScript Number::toString, from Python's shortest round-trip digits.
    if value != value or value in (float("inf"), float("-inf")):
        raise ValueError("NaN and Infinity have no canonical form")
    if value == 0:
        return "0"
    sign = "-" if value < 0 else ""
    mantissa, _, exp = repr(abs(value)).partition("e")
    whole, _, frac = mantissa.partition(".")
    all_digits = whole + frac
    leading = len(all_digits) - len(all_digits.lstrip("0"))
    digits = all_digits.lstrip("0").rstrip("0")
    k = len(digits)
    # value = 0.d1d2...dk x 10^n
    n = len(whole) + (int(exp) if exp else 0) - leading
    if k <= n <= 21:
        return sign + digits + "0" * (n - k)
    if 0 < n <= 21:
        return sign + digits[:n] + "." + digits[n:]
    if -6 < n <= 0:
        return sign + "0." + "0" * -n + digits
    e = n - 1
    exponent = ("+" if e >= 0 else "-") + str(abs(e))
    if k == 1:
        return sign + digits + "e" + exponent
    return sign + digits[0] + "." + digits[1:] + "e" + exponent


def _utf16_key(name: str) -> bytes:
    # Members sort by UTF-16 code units; big-endian UTF-16 bytes compare the same way.
    return name.encode("utf-16-be")


def canonicalize(value: Any) -> str:
    """The RFC 8785 serialization of a parsed JSON value."""
    if value is None:
        return "null"
    if value is True:
        return "true"
    if value is False:
        return "false"
    if isinstance(value, int):
        # JSON numbers are IEEE 754 doubles: an integer beyond 2^53 is read as
        # the nearest double, as a JavaScript client would read it.
        return str(value) if abs(value) <= 2**53 else _number(float(value))
    if isinstance(value, float):
        return _number(value)
    if isinstance(value, str):
        return _string(value)
    if isinstance(value, (list, tuple)):
        return "[" + ",".join(canonicalize(item) for item in value) + "]"
    if isinstance(value, dict):
        for key in value:
            if not isinstance(key, str):
                raise TypeError("JSON object keys must be strings")
        members = sorted(value.items(), key=lambda item: _utf16_key(item[0]))
        return "{" + ",".join(_string(k) + ":" + canonicalize(v) for k, v in members) + "}"
    raise TypeError(f"{type(value).__name__} has no JSON form")


def signing_message(body: dict) -> str:
    """The exact string an RWA Maps signature covers: JCS(body minus "signature")."""
    return canonicalize({k: v for k, v in body.items() if k != "signature"})


# ---------------------------------------------------------------------------
# Verification


def _instant(value: Any) -> datetime | None:
    """An ISO 8601 date or date-time as an aware UTC datetime (a bare date is midnight UTC)."""
    if not isinstance(value, str):
        return None
    text = value.strip()
    if text.endswith("Z") or text.endswith("z"):
        text = text[:-1] + "+00:00"
    try:
        parsed = datetime.fromisoformat(text)
    except ValueError:
        return None
    return parsed if parsed.tzinfo else parsed.replace(tzinfo=timezone.utc)


def _same_address(a: Any, b: Any) -> bool:
    return isinstance(a, str) and isinstance(b, str) and bool(_ADDRESS.fullmatch(a)) and a.lower() == b.lower()


def is_signer_document(doc: Any) -> bool:
    """Whether doc looks like /.well-known/rwamaps-signer.json (the members trusted_signer reads)."""
    return (
        isinstance(doc, dict)
        and (doc.get("current") is None or isinstance(doc.get("current"), str))
        and isinstance(doc.get("signers"), list)
        and all(isinstance(s, dict) and isinstance(s.get("address"), str) for s in doc["signers"])
    )


def trusted_signer(doc: dict, signer: str, signed_at: Any) -> str | None:
    """
    Whether signer was an RWA Maps signer at signed_at, per the signer document:
    None for a revoked entry (whoever holds a leaked key chooses signedAt),
    "published" when a window [validFrom, validTo) covers signed_at, "current"
    when it is the key the deployment says it signs with now (self-reported),
    and None otherwise. The document is only as trustworthy as its origin.
    """
    entries = [e for e in doc.get("signers", []) if _same_address(e.get("address"), signer)]
    if any(e.get("status") == "revoked" for e in entries):
        return None
    at = _instant(signed_at)
    if at is None:
        return None
    for entry in entries:
        start = _instant(entry.get("validFrom"))
        end = None if entry.get("validTo") is None else _instant(entry.get("validTo"))
        if start is None or (entry.get("validTo") is not None and end is None):
            continue
        if at >= start and (end is None or at < end):
            return "published"
    if _same_address(doc.get("current"), signer):
        return "current"
    return None


_TRUST_WORDS = {
    "pinned": "one of the signers you pinned",
    "published": "a published RWA Maps signer at signedAt, per the signer document",
    "current": "the key the deployment says it signs with now, per the signer document (self-reported: "
    "confirm it with the rwamaps.signer ENS text record once the owner sets it)",
}


def verify_rwamaps_response(body: str | bytes | dict, pinned: list[str] | None = None, signer_doc: dict | None = None) -> dict:
    """
    Verifies an RWA Maps JSON body (raw text or a parsed dict). Never raises.

    pinned: signer addresses you trust; signer_doc: a parsed signer document.
    Without either, "trusted" is None and "ok" is False.
    """
    result = {
        "signed": False,
        "valid": False,
        "signer": None,
        "recoveredSigner": None,
        "signedAt": None,
        "trust": None,
        "trusted": None,
        "ok": False,
        "reason": "",
    }
    checked = _verify_signature(body, result)
    if not checked["valid"]:
        return checked
    signer = checked["signer"]
    if pinned is None and signer_doc is None:
        return {
            **checked,
            "reason": f"Valid signature by {signer}, but the signature only matches the claimed signer, "
            f"which anyone can set to their own key; {NO_ANCHOR}.",
        }
    trust = None
    if pinned is not None and any(_same_address(p, signer) for p in pinned):
        trust = "pinned"
    elif signer_doc is not None:
        trust = trusted_signer(signer_doc, signer, checked["signedAt"])
    if trust is None:
        return {
            **checked,
            "trusted": False,
            "reason": f"Valid signature by {signer}, but that address is not a trusted RWA Maps signer under the "
            "anchor you gave (or it was revoked). Do not treat this body as coming from RWA Maps.",
        }
    return {**checked, "trust": trust, "trusted": True, "ok": True, "reason": f"Valid signature by {signer}, {_TRUST_WORDS[trust]}."}


def _verify_signature(body: str | bytes | dict, result: dict) -> dict:
    """The signature half: does the signature recover to the signer the body names?"""
    if isinstance(body, (str, bytes)):
        try:
            body = loads(body)
        except RefusedJson as error:  # not I-JSON, or a number not in its RFC 8785 form
            return {**result, "reason": str(error)}
        except ValueError:
            return {**result, "reason": "The body is not JSON."}
    if not isinstance(body, dict):
        return {**result, "reason": "The body is not a JSON object."}
    if body.get("signed") is False:
        return {**result, "reason": UNSIGNED_LABEL}
    if body.get("signed") is not True:
        return {**result, "reason": "Unsigned: the body has no signature members."}

    result.update(signed=True, signedAt=body.get("signedAt"))
    if body.get("signatureScheme") != SIGNATURE_SCHEME:
        return {**result, "reason": f"Unsupported signature scheme; expected {SIGNATURE_SCHEME}."}
    signer, signature = body.get("signer"), body.get("signature")
    if not isinstance(signer, str) or not isinstance(signature, str):
        return {**result, "reason": "The body is missing signer or signature."}
    if not _ADDRESS.fullmatch(signer):
        return {**result, "reason": "The signer member is not an Ethereum address."}
    result["signer"] = signer
    if not _SIGNATURE_HEX.fullmatch(signature):
        return {**result, "reason": "The signature member is not 65 bytes of hex (0x followed by 130 hex characters)."}

    try:
        from eth_account import Account
        from eth_account.messages import encode_defunct
    except ImportError:
        return {**result, "reason": "eth-account is not installed: pip install eth-account"}

    try:
        message = signing_message(body)
        recovered = Account.recover_message(encode_defunct(text=message), signature=signature)
    except Exception as error:  # a malformed signature or a body with no JCS form
        return {**result, "reason": f"Invalid: {error}"}
    result["recoveredSigner"] = recovered
    if recovered.lower() == signer.lower():
        return {**result, "valid": True, "reason": f"Valid signature by {recovered}."}
    return {
        **result,
        "reason": f"Invalid: the signature recovers to {recovered}, not to the signer {signer}. "
        "The body was changed after signing, or it names the wrong signer.",
    }


# ---------------------------------------------------------------------------
# Command line


def _self_test() -> bool:
    # RFC 8785 section 3.2.2, and Appendix B number samples (as IEEE 754 bit patterns).
    import struct

    # The RFC's sample input writes its numbers in other forms on purpose, so it is read leniently.
    sample = loads(
        '{"numbers": [333333333.33333329, 1E30, 4.50, 2e-3, 0.000000000000000000000000001],'
        ' "string": "\\u20ac$\\u000F\\u000aA\'\\u0042\\u0022\\u005c\\\\\\"\\/",'
        ' "literals": [null, true, false]}',
        canonical_numbers=False,
    )
    expected = (
        '{"literals":[null,true,false],"numbers":[333333333.3333333,1e+30,4.5,0.002,1e-27],'
        '"string":"€$\\u000f\\nA\'B\\"\\\\\\\\\\"/"}'
    )
    ok = canonicalize(sample) == expected
    numbers = {
        "0000000000000000": "0",
        "8000000000000000": "0",
        "0000000000000001": "5e-324",
        "8000000000000001": "-5e-324",
        "7fefffffffffffff": "1.7976931348623157e+308",
        "ffefffffffffffff": "-1.7976931348623157e+308",
        "4340000000000000": "9007199254740992",
        "c340000000000000": "-9007199254740992",
        "4430000000000000": "295147905179352830000",
        "44b52d02c7e14af5": "9.999999999999997e+22",
        "44b52d02c7e14af6": "1e+23",
        "44b52d02c7e14af7": "1.0000000000000001e+23",
        "444b1ae4d6e2ef4e": "999999999999999700000",
        "444b1ae4d6e2ef4f": "999999999999999900000",
        "444b1ae4d6e2ef50": "1e+21",
        "3eb0c6f7a0b5ed8c": "9.999999999999997e-7",
        "3eb0c6f7a0b5ed8d": "0.000001",
        "41b3de4355555553": "333333333.3333332",
        "41b3de4355555554": "333333333.33333325",
        "41b3de4355555555": "333333333.3333333",
        "41b3de4355555556": "333333333.3333334",
        "41b3de4355555557": "333333333.33333343",
        "becbf647612f3696": "-0.0000033333333333333333",
        "43143ff3c1cb0959": "1424953923781206.2",
    }
    for bits, text in numbers.items():
        value = struct.unpack(">d", bytes.fromhex(bits))[0]
        ok = ok and canonicalize(value) == text
    # Members sort by UTF-16 code units: the emoji (D83D DE00) before U+FB33.
    keys = loads('{"\\ufb33":1,"\\ud83d\\ude00":2,"\\u20ac":3,"1":4,"\\u0080":5}')
    ok = ok and canonicalize(keys) == '{"1":4,"\u0080":5,"€":3,"\U0001F600":2,"דּ":1}'
    return ok


def _read(source: str) -> tuple[str, int | None]:
    """The text of a URL, a file or stdin ("-"), with the HTTP status for a URL.

    An HTTP error status still has a body: RWA Maps signs its error bodies, so
    the body is returned for verification rather than raised."""
    if source == "-":
        return sys.stdin.read(), None
    if source.startswith("https://") or source.startswith("http://"):
        request = urllib.request.Request(source, headers={"Accept": "application/json"})
        try:
            with urllib.request.urlopen(request, timeout=30) as response:
                return response.read().decode("utf-8"), response.status
        except urllib.error.HTTPError as error:
            return error.read().decode("utf-8", errors="replace"), error.code
    with open(source, encoding="utf-8") as handle:
        return handle.read(), None


def _usage(message: str) -> int:
    print(f"verify_signature.py: {message}\n\n{__doc__}", file=sys.stderr)
    return 2


def main(argv: list[str]) -> int:
    if argv == ["--self-test"]:
        ok = _self_test()
        print(json.dumps({"selfTest": "pass" if ok else "fail"}))
        return 0 if ok else 1
    if len(argv) == 2 and argv[0] == "--jcs":
        try:
            body = loads(_read(argv[1])[0])
        except ValueError as error:  # not JSON, not I-JSON (a duplicate member, a lone surrogate), or a re-encoded number
            print(f"verify_signature.py: {error}", file=sys.stderr)
            return 1
        sys.stdout.write(signing_message(body) if isinstance(body, dict) else canonicalize(body))
        return 0

    pinned: list[str] = []
    doc_source: str | None = None
    sources: list[str] = []
    args = iter(argv)
    for arg in args:
        if arg in ("--signer", "--signer-doc"):
            value = next(args, None)
            if value is None:
                return _usage(f"{arg} needs a value")
            if arg == "--signer":
                if not _ADDRESS.fullmatch(value):
                    return _usage("--signer takes an address: 0x followed by 40 hex characters")
                pinned.append(value)
            elif doc_source is not None:
                return _usage("give --signer-doc once")
            else:
                doc_source = value
        elif arg.startswith("--"):
            return _usage(f"unknown option {arg}")
        else:
            sources.append(arg)
    if len(sources) != 1:
        return _usage("give one URL, file or - (stdin)")

    try:
        text, status = _read(sources[0])
    except (OSError, ValueError) as error:  # no such file, connection refused, DNS failure
        print(json.dumps({"ok": False, "reason": f"Could not read {sources[0]}: {error}"}, ensure_ascii=False))
        return 1

    signer_doc = None
    if doc_source is not None:
        try:
            doc_text, doc_status = _read(doc_source)
            signer_doc = loads(doc_text)
        except (OSError, ValueError) as error:
            signer_doc, doc_status = None, None
            print(f"verify_signature.py: the signer document could not be read: {error}", file=sys.stderr)
        if not is_signer_document(signer_doc) or (doc_status is not None and doc_status >= 400):
            # Fail closed: an unreadable anchor trusts nobody.
            signer_doc = {"current": None, "signers": []}

    result = verify_rwamaps_response(text, pinned=pinned or None, signer_doc=signer_doc)
    if status is not None:
        result["httpStatus"] = status
    print(json.dumps(result, ensure_ascii=False))
    return 0 if result["ok"] else 1


if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))

Which signer to trust

The trust check needs an anchor that does not come from the response you are checking. In order of strength:

  • The ENS text record rwamaps.signer on commodities.eth, read from Ethereum. It will hold the current signer address once the owner sets it from his own wallet; RWA Maps never sends a transaction. Until then getEnsText returns null, and null is no anchor: do not fall back to the signer the body names.
  • A signer address you pinned yourself, obtained out of band and compared with the ENS record when it exists.
  • /.well-known/rwamaps-signer.json lists the current signer and the published signers with their validFrom, validTo and status. It is served by the same origin as the responses, so it is not an independent anchor against a mirror or an interceptor: one that forges a body can serve a signer document that vouches for it. Read it only from https://rwamaps.com, never from the origin you are checking, and treat current as self-reported. A published signer is trusted when its window covers the body’s signedAt, unless its status is revoked.
Read the ENS record · viem
import { createPublicClient, http } from "viem";
import { mainnet } from "viem/chains";
import { normalize } from "viem/ens";

const client = createPublicClient({ chain: mainnet, transport: http() });
// null until the owner sets the record: no anchor, so trusted stays false.
const record = await client.getEnsText({ name: normalize("commodities.eth"), key: "rwamaps.signer" });
const trusted = valid && record !== null && record.toLowerCase() === body.signer.toLowerCase();

registry.json and its detached signature

/registry.json is signed once, when the site is built, so its signedAt is the build time. /registry.json.sig serves the same signature detached, with the SHA-256 of the exact file, for mirrors and caches that keep the file as bytes. On a deployment without a key it answers 404.

Check a copy
curl -s https://rwamaps.com/registry.json -o registry.json
curl -s https://rwamaps.com/registry.json.sig        # { schemaVersion, scheme, signer, signedAt, signature, sha256, message, lastVerified, source }
sha256sum registry.json                    # must equal "sha256" in registry.json.sig
# the embedded signature is the detached one; exit 0 only when it is valid and the signer is trusted
python verify_signature.py --signer-doc https://rwamaps.com/.well-known/rwamaps-signer.json registry.json

Key rotation and revocation

A routine rotation retires the signing key without breaking old signatures:

  1. The old address stays published in the signer document with validTo set to the rotation time and status: "retired". Bodies it signed before then keep verifying as published.
  2. A new key is generated and set as the deployment’s REGISTRY_SIGNER_PRIVATE_KEY; its address is published with validFrom at the rotation time.
  3. The owner updates rwamaps.signer on commodities.eth to the new address, from his own wallet.

validTo only works for an honest key: the window is checked against the body’s own signedAt, which whoever holds the key chooses. If a key leaks, its entry is marked status: "revoked" instead, and a revoked signer is never trusted, whatever its signedAt. That also invalidates bodies it signed genuinely before the leak: fetch them again.

The helper below checks a payload against the signer list for you, but verifying locally is better: it needs no network call and trusts nobody’s answer but your own.

POST/api/v1/verify-signature

Verify a signed payload or a raw message signature

Send { payload } (a signed object as received) or { message, signature, signer }. Says whether the signature is valid and whether the signer is a trusted RWA Maps signer at signedAt. A signature attests origin and integrity only: the claims are the structured members (verified, listed, isToken, an address with its chain), while query, address and chain echo the caller's input. Prefer verifying locally (viem verifyMessage or eth_account).

Request body

Body fieldsVerifySignatureRequest · 4 fieldsShow

Shape 1 of 2

payloadobject
A signed object exactly as received (a parsed API body or MCP result).

Shape 2 of 2

messagestring
The exact signed message (the JCS string).
signaturestring
—
signerstring
—
Body · A payload
{
  "payload": {
    "schemaVersion": "1.1.0",
    "error": "not_found",
    "message": "No verified token for that key. Use an id or ticker such as paxg.",
    "lastVerified": "2026-12-01",
    "source": "https://rwamaps.com/registry.json",
    "signed": false
  }
}
Request
curl -s https://rwamaps.com/api/v1/tokens/paxg \
  | jq '{payload: .}' \
  | curl -X POST https://rwamaps.com/api/v1/verify-signature -H 'Content-Type: application/json' -d @-

Responses

  • 200The check.VerifySignatureResponse

    Headers X-RWAMaps-Source

    FieldsVerifySignatureResponse · 9 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    validboolean
    The signature matches the claimed signer over the exact message.
    recoveredSignerstring | null
    EVM address, 0x followed by 40 hex characters.
    trustedSignerboolean
    —
    trustSignerTrust
    published: a published RWA Maps signer whose validity window covers signedAt. current: the key this deployment signs with now, not (yet) published for that time. unknown: neither.
    reasonstring
    —

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · An unsigned payload
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/.well-known/rwamaps-signer.json",
      "valid": false,
      "recoveredSigner": null,
      "trustedSigner": false,
      "trust": "unknown",
      "reason": "The payload is unsigned (signed: false): the server had no signing key.",
      "signed": false
    }
  • 400The body is not JSON, larger than 1024 KiB, nested deeper than 32 levels, holds more than 20000 members, or is not one of the two shapes (invalid_request); or it is JSON that RFC 8785 cannot sign as written (invalid_argument): a member name repeated in one object, a lone surrogate, or a number not written in its RFC 8785 (JCS) form, such as 18.0 or 1.8e1 for 18, -0 for 0, or 0.10 for 0.1.ApiError
    • error invalid_request: The body is not one of the two accepted shapes. Send { payload } (a signed object as received) or { message, signature, signer }.

    Headers X-RWAMaps-Source

    400 example · Bad body8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "The body is not one of the two accepted shapes. Send { payload } (a signed object as received) or { message, signature, signer }.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Over the per-client limit of 20 verify-signature requests a minute: rate_limited, with Retry-After and X-RateLimit-Limit, -Remaining and -Reset.ApiError
    • error rate_limited: Rate limit exceeded: 20 verify-signature requests per minute per client. Retry after 60 s.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Rate limit exceeded: 20 verify-signature requests per minute per client. Retry after 60 s.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/.well-known/rwamaps-signer.json

Signer addresses to trust

The current signer, the published signers with their validity windows, and the ENS text record (rwamaps.signer on commodities.eth) that confirms them, with schemaVersion, lastVerified and source. Not signed: its anchors are the ENS record and a signer address the client pins.

Request
curl https://rwamaps.com/.well-known/rwamaps-signer.json

Responses

  • 200Signer document.SignerDocument

    Headers X-RWAMaps-Last-Verified, X-RWAMaps-Source

    FieldsSignerDocument · 8 fieldsShow
    schemaVersion"1.1.0"
    —
    scheme"eip191-jcs-v1"
    —
    currentstring | null
    The address this deployment signs with now; null when unsigned.
    signersPublishedSigner[]
    —
    ensobject
    —
    docsstring (uri)
    Absolute URL.
    lastVerifiedstring (date)
    The registry's newest lastVerified, as on every registry-wide body.
    sourcestring (uri)
    This document's own URL: SITE_URL + /.well-known/rwamaps-signer.json.
    200 example · Example13 linesShow
    {
      "schemaVersion": "1.1.0",
      "scheme": "eip191-jcs-v1",
      "current": "0x7f19920741A59aF83835995f0244aE08C7706fF8",
      "signers": [],
      "ens": {
        "name": "commodities.eth",
        "textRecordKey": "rwamaps.signer"
      },
      "docs": "https://rwamaps.com/api#signatures",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/.well-known/rwamaps-signer.json"
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

GET/registry.json.sig

Detached signature of /registry.json

Request
curl https://rwamaps.com/registry.json.sig

Responses

  • 200The detached signature.DetachedSignature

    Headers X-RWAMaps-Last-Verified, X-RWAMaps-Source

    FieldsDetachedSignature · 9 fieldsShow
    schemaVersion"1.1.0"
    —
    scheme"eip191-jcs-v1"
    —
    signerstring
    EVM address, 0x followed by 40 hex characters.
    signedAtstring (date-time)
    ISO 8601 date-time (UTC, e.g. from Date.toISOString()).
    signaturestring
    65-byte secp256k1 signature (r, s, v) as 0x hex.
    sha256string
    SHA-256 (hex) of the exact /registry.json body.
    messagestring
    —
    lastVerifiedstring (date)
    The signed document's lastVerified: the registry's newest.
    sourcestring (uri)
    The document this signature belongs to: SITE_URL + /registry.json.
  • 404This deployment has no signing key: registry.json is unsigned.ApiError
    • error not_found: registry.json is unsigned on this deployment.

    Headers X-RWAMaps-Source

    404 example · Unsigned build8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "not_found",
      "message": "registry.json is unsigned on this deployment.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

API keys

POST/api/v1/keys

Get a free API key

Optional: nothing needs a key. Returns a key once (only its SHA-256 is stored); send it as Authorization: Bearer <key> to /api/v1 and /api/mcp for 5 times the anonymous rate limits. No email is sent and the address is not verified. 5 keys per hour per IP, 3 per email address. Called from the site's own /keys page; CORS allows only the site's origin and the body must be application/json.

Request body

Body fieldsKeyRequest · 1 fieldShow
emailstring (email)
A contact address for abuse and breaking changes. Not verified, never emailed a key.
Body · A key request
{
  "email": "you@example.com"
}

Responses

  • 201Issued. The key is in this response only.KeyIssuedResponse

    Headers X-RWAMaps-Source

    FieldsKeyIssuedResponse · 10 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    keystring
    rwm_ followed by 43 base64url characters. Shown only once: store it now. Only its SHA-256 is kept.
    idstring
    The first 16 hex characters of the key's SHA-256.
    createdAtstring (date-time)
    ISO 8601 date-time (UTC, e.g. from Date.toISOString()).
    usagestring
    —
    limitsobject
    —
    notestring
    —

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    201 example · Created21 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "lastVerifiedRange": {
        "oldest": "2026-11-14",
        "newest": "2026-12-01"
      },
      "source": "https://rwamaps.com/registry.json",
      "key": "rwm_example_key_shown_once_00000000000000000000",
      "id": "0123456789abcdef",
      "createdAt": "2026-12-01T00:00:00.000Z",
      "usage": "Send it as Authorization: Bearer <key> on /api/v1 requests and on the MCP endpoint (/api/mcp).",
      "limits": {
        "mcpToolCallsPerMinute": 300,
        "mcpListingMessagesPerMinute": 1500,
        "restReadsPerMinute": 600,
        "verifySignaturePostsPerMinute": 100
      },
      "note": "Shown once: store it now. Only its SHA-256 is kept, so it cannot be shown again.",
      "signed": false
    }
  • 400The body is not JSON, is too large, or is not { email } with a valid address (invalid_request).ApiError
    • error invalid_request: The body must be JSON: { "email": "you@example.com" }.

    Headers X-RWAMaps-Source

    400 example · Not JSON8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "The body must be JSON: { \"email\": \"you@example.com\" }.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
    400 example · Not an email address8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "The body must be { \"email\": \"<a valid email address>\" }.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 415Not application/json (invalid_request).ApiError
    • error invalid_request: Send the body as JSON, with Content-Type: application/json.

    Headers X-RWAMaps-Source

    415 example · Wrong Content-Type8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "Send the body as JSON, with Content-Type: application/json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Too many keys from this IP, for this address or in all (rate_limited).ApiError
    • error rate_limited: Too many requests. Retry after the number of seconds in Retry-After.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Too many requests. Retry after the number of seconds in Retry-After.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 500The key could not be issued.ApiError
    • error internal_error: The key could not be issued. Try again later.

    Headers X-RWAMaps-Source

    500 example · Store unreachable8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "internal_error",
      "message": "The key could not be issued. Try again later.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 503No Redis on this deployment (keys_unavailable).ApiError
    • error keys_unavailable: API keys are not available on this deployment (no Redis credentials).

    Headers X-RWAMaps-Source

    503 example · No store8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "keys_unavailable",
      "message": "API keys are not available on this deployment (no Redis credentials).",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }

Webhooks

Get a signed POST when the registry changes, instead of polling. Deliveries are HMAC-signed with a secret only you and RWA Maps hold.

Register and delete

Register an https URL with the events you want. The answer (201) holds an id and a secret: the secret is shown once, so store it. It signs every delivery and deletes the subscription. Registration is limited to 10 per hour per IP. Without a store configured on the deployment, webhook endpoints answer 503 webhooks_unavailable.

Register
curl -X POST https://rwamaps.com/api/v1/webhooks \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com/hooks/rwamaps","events":["reclassified","added"],"filters":{"tokens":["xaut0"],"chains":["celo"]}}'
Delete
curl -X DELETE https://rwamaps.com/api/v1/webhooks/wh_example \
  -H 'Authorization: Bearer <secret>'

Events and filters

events
Any of added, removed, reclassified, metadata and monitor, or * for all. They are the change log’s entry types.
filters.tokens
Optional. Token ids or tickers; only their changes are sent.
filters.chains
Optional. Chain names, slugs or aliases (bsc, eth, avax); stored as the registry’s chain names.

A new subscription starts at the newest change, so it receives only changes made after it registered. For the history, read GET /api/v1/changes.

Delivery and signature

Each change is a separate POST with a JSON body (shown in full under the delivery below) and these headers:

Content-Type
application/json
User-Agent
RWAMaps-Webhooks/1
X-RWAMaps-Event-Id
The body’s id, repeated for logging. The HMAC does not cover it: deduplicate on the body’s id, which a retried event keeps.
X-RWAMaps-Event
The change type, e.g. reclassified, for logging. The HMAC does not cover it: route on the body’s change.type.
X-RWAMaps-Signature
t=<unix seconds>,v1=<hex HMAC-SHA256(secret, `${t}.${rawBody}`)>

To verify a delivery, compute the HMAC-SHA256 of `${t}.${rawBody}` with your secret as the key, over the raw body exactly as received, and compare it with v1 in constant time. Reject the request when t is more than 300 seconds from your clock (the replay window), and treat a malformed header as a failed check, not an error. The HMAC covers t and the body only, never the other headers, so take the event id and type from the verified body. Webhook bodies are not signed with the Ethereum key; the HMAC covers them.

TypeScript · node:crypto
import { createHmac, timingSafeEqual } from "node:crypto";

/** rawBody: the request body exactly as received, before JSON.parse. */
export function verifyRwaMapsWebhook(
  rawBody: string,
  header: string | null, // the X-RWAMaps-Signature header
  secret: string,
  now = Date.now(),
): boolean {
  if (!header) return false;
  const parts = new Map(header.split(",").map((p) => p.trim().split("=", 2) as [string, string]));
  const ts = parts.get("t") ?? "";
  const given = parts.get("v1") ?? "";
  // A malformed header is a failed check, never an exception: t is ASCII digits, v1 is 64 hex.
  if (!/^\d{1,12}$/.test(ts) || !/^[0-9a-f]{64}$/i.test(given)) return false;
  const t = Number(ts);
  // Replay window: reject a timestamp more than 300 s from now.
  if (Math.abs(now / 1000 - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
  return timingSafeEqual(Buffer.from(given, "hex"), Buffer.from(expected, "hex"));
}
Python · hmac
import hashlib, hmac, re, time

def verify_rwamaps_webhook(raw_body: bytes, header: str, secret: str, now: float | None = None) -> bool:
    """raw_body: the request body exactly as received, before json.loads.
    header: the X-RWAMaps-Signature header."""
    parts = dict(p.strip().split("=", 1) for p in (header or "").split(",") if "=" in p)
    ts, given = parts.get("t", ""), parts.get("v1", "")
    # A malformed header is a failed check, never an exception: t is ASCII digits, v1 is 64 hex.
    if not re.fullmatch(r"[0-9]{1,12}", ts) or not re.fullmatch(r"[0-9a-fA-F]{64}", given):
        return False
    # Replay window: reject a timestamp more than 300 s from now.
    if abs((time.time() if now is None else now) - int(ts)) > 300:
        return False
    expected = hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, given.lower())
Full example · verify-webhook.ts107 linesShow
/*
 * Verify an RWA Maps webhook delivery in TypeScript (Node 18+). Copy this
 * file into your receiver; it needs nothing but node:crypto.
 *
 * Every delivery is a POST with a JSON body and these headers:
 *
 *   X-RWAMaps-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, `${t}.${rawBody}`)>
 *   X-RWAMaps-Event-Id:  evt_<change id>   (for logs only: not signed)
 *   X-RWAMaps-Event:     added | removed | reclassified | metadata   (not signed)
 *
 * The HMAC covers the timestamp and the body, not the other headers. So
 * deduplicate on the body's `id` (the same on every retry) and route on the
 * body's `change.type`; never trust X-RWAMaps-Event-Id or X-RWAMaps-Event,
 * which anyone replaying a captured delivery could change.
 *
 * `secret` is the value POST /api/v1/webhooks returned once. Verify the raw
 * body exactly as received, before parsing it: re-serialized JSON will not
 * match. Reject deliveries whose t is more than 300 s from your clock (replay
 * protection), then answer 2xx quickly; anything else is retried. A
 * malformed header is reported as invalid, never thrown, so junk requests get
 * a 401 and not a 500.
 *
 * In a Next.js route handler:
 *
 *   import { verifyRwaMapsWebhook } from "./verify-webhook";
 *
 *   export async function POST(request: Request) {
 *     const rawBody = await request.text();
 *     const check = verifyRwaMapsWebhook({
 *       rawBody,
 *       signatureHeader: request.headers.get("x-rwamaps-signature"),
 *       secret: process.env.RWAMAPS_WEBHOOK_SECRET ?? "",
 *     });
 *     if (!check.ok) return new Response(check.reason, { status: 401 });
 *     const delivery = JSON.parse(rawBody);   // { schemaVersion, id, type: "registry.change", change, deliveredAt, lastVerified, source }
 *     // Skip delivery.id if you have seen it (not the header); then act on delivery.change.
 *     // An address in delivery.change is only valid on delivery.change.chain.
 *     return new Response(null, { status: 204 });
 *   }
 *
 * From a shell (Node 22.18+ runs TypeScript directly):
 *
 *   RWAMAPS_WEBHOOK_SECRET=whsec_... node docs/examples/verify-webhook.ts "<X-RWAMaps-Signature value>" < body.json
 */

import { createHmac, timingSafeEqual } from "node:crypto";
import { pathToFileURL } from "node:url";

export const SIGNATURE_HEADER = "X-RWAMaps-Signature";
export const EVENT_ID_HEADER = "X-RWAMaps-Event-Id";
export const TOLERANCE_SECONDS = 300;

export type WebhookCheck = { ok: true; timestamp: number } | { ok: false; reason: string };

export function verifyRwaMapsWebhook(input: {
  /** The request body exactly as received. */
  rawBody: string;
  /** The X-RWAMaps-Signature header value. */
  signatureHeader: string | null | undefined;
  /** The subscription's secret. */
  secret: string;
  /** Allowed clock difference in seconds (default 300). */
  toleranceSeconds?: number;
  /** Your clock, in unix seconds (default: now). */
  now?: number;
}): WebhookCheck {
  if (!input.signatureHeader) return { ok: false, reason: "missing X-RWAMaps-Signature" };
  if (!input.secret) return { ok: false, reason: "no secret configured" };

  let timestamp: number | null = null;
  const candidates: string[] = [];
  for (const part of input.signatureHeader.split(",")) {
    const [key, value] = part.trim().split("=", 2);
    // ASCII digits only, at most 12 of them (unix seconds until the year 33658).
    if (key === "t" && /^[0-9]{1,12}$/.test(value ?? "")) timestamp = Number(value);
    if (key === "v1" && /^[0-9a-fA-F]{64}$/.test(value ?? "")) candidates.push(value.toLowerCase());
  }
  if (timestamp === null || candidates.length === 0) return { ok: false, reason: "malformed X-RWAMaps-Signature" };

  const now = input.now ?? Math.floor(Date.now() / 1000);
  if (Math.abs(now - timestamp) > (input.toleranceSeconds ?? TOLERANCE_SECONDS)) {
    return { ok: false, reason: "timestamp outside the tolerance (possible replay)" };
  }

  const expected = createHmac("sha256", input.secret).update(`${timestamp}.${input.rawBody}`, "utf8").digest();
  const valid = candidates.some((hex) => {
    const given = Buffer.from(hex, "hex");
    return given.length === expected.length && timingSafeEqual(given, expected);
  });
  return valid ? { ok: true, timestamp } : { ok: false, reason: "signature mismatch" };
}

async function main() {
  const header = process.argv[2];
  const secret = process.env.RWAMAPS_WEBHOOK_SECRET ?? "";
  if (!header || !secret) {
    console.error('usage: RWAMAPS_WEBHOOK_SECRET=... node verify-webhook.ts "<X-RWAMaps-Signature>" < body.json');
    process.exit(2);
  }
  const chunks: Buffer[] = [];
  for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
  const check = verifyRwaMapsWebhook({ rawBody: Buffer.concat(chunks).toString("utf8"), signatureHeader: header, secret });
  console.log(check.ok ? `valid (t=${check.timestamp})` : `invalid: ${check.reason}`);
  process.exit(check.ok ? 0 : 1);
}

if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) void main();
Full example · verify_webhook.py106 linesShow
"""Verify an RWA Maps webhook delivery in Python 3 (standard library only).

Every delivery is a POST with a JSON body and these headers:

    X-RWAMaps-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, f"{t}.{raw_body}")>
    X-RWAMaps-Event-Id:  evt_<change id>   (for logs only: not signed)
    X-RWAMaps-Event:     added | removed | reclassified | metadata   (not signed)

The HMAC covers the timestamp and the body, not the other headers. So
deduplicate on the body's "id" (the same on every retry) and route on the
body's change["type"]; never trust X-RWAMaps-Event-Id or X-RWAMaps-Event,
which anyone replaying a captured delivery could change.

`secret` is the value POST /api/v1/webhooks returned once. Verify the raw body
bytes exactly as received, before parsing them. Reject deliveries whose t is
more than 300 s from your clock (replay protection), then answer 2xx quickly;
anything else is retried. A malformed header is reported as invalid, never
raised, so junk requests get a 401 and not a 500.

In Flask:

    from verify_webhook import verify_webhook

    @app.post("/hooks/rwamaps")
    def rwamaps():
        ok, reason = verify_webhook(request.get_data(), request.headers.get("X-RWAMaps-Signature"), SECRET)
        if not ok:
            return reason, 401
        delivery = request.get_json()   # {schemaVersion, id, type, change, deliveredAt, lastVerified, source}
        # Skip delivery["id"] if you have seen it (not the header); then act on delivery["change"].
        # An address in delivery["change"] is only valid on delivery["change"]["chain"].
        return "", 204

From a shell:

    RWAMAPS_WEBHOOK_SECRET=whsec_... python3 verify_webhook.py "<X-RWAMaps-Signature value>" < body.json
"""

import hashlib
import hmac
import os
import re
import sys
import time

TOLERANCE_SECONDS = 300

# ASCII digits only: str.isdigit() also accepts characters such as U+00B2
# (superscript two) that int() rejects, which would raise instead of refusing.
TIMESTAMP = re.compile(r"[0-9]{1,12}")
HEX_DIGEST = re.compile(r"[0-9a-fA-F]{64}")


def parse_signature_header(header):
    """Return (timestamp, [v1 hex, ...]) or None. Never raises on a malformed header."""
    timestamp = None
    candidates = []
    for part in (header or "").split(","):
        key, _, value = part.strip().partition("=")
        if key == "t" and TIMESTAMP.fullmatch(value):
            timestamp = int(value)
        elif key == "v1" and HEX_DIGEST.fullmatch(value):
            candidates.append(value.lower())
    if timestamp is None or not candidates:
        return None
    return timestamp, candidates


def verify_webhook(raw_body, signature_header, secret, tolerance=TOLERANCE_SECONDS, now=None):
    """Return (True, "valid") or (False, reason). raw_body is bytes (or str, encoded as UTF-8)."""
    if not signature_header:
        return False, "missing X-RWAMaps-Signature"
    if not secret:
        return False, "no secret configured"
    parsed = parse_signature_header(signature_header)
    if parsed is None:
        return False, "malformed X-RWAMaps-Signature"
    timestamp, candidates = parsed
    current = int(time.time()) if now is None else int(now)
    if abs(current - timestamp) > tolerance:
        return False, "timestamp outside the tolerance (possible replay)"
    body = raw_body.encode("utf-8") if isinstance(raw_body, str) else raw_body
    expected = hmac.new(secret.encode("utf-8"), str(timestamp).encode("ascii") + b"." + body, hashlib.sha256).hexdigest()
    if any(hmac.compare_digest(candidate, expected) for candidate in candidates):
        return True, "valid"
    return False, "signature mismatch"


def main(argv):
    args = list(argv[1:])
    now = None
    if "--now" in args:
        index = args.index("--now")
        now = int(args[index + 1])
        del args[index : index + 2]
    secret = os.environ.get("RWAMAPS_WEBHOOK_SECRET", "")
    if len(args) != 1 or not secret:
        print('usage: RWAMAPS_WEBHOOK_SECRET=... python3 verify_webhook.py "<X-RWAMaps-Signature>" [--now <unix>] < body.json', file=sys.stderr)
        return 2
    ok, reason = verify_webhook(sys.stdin.buffer.read(), args[0], secret, now=now)
    print(reason if ok else "invalid: " + reason)
    return 0 if ok else 1


if __name__ == "__main__":
    sys.exit(main(sys.argv))

Retries and disabling

  • Answer with any 2xx to acknowledge. A 3xx counts as a failure (redirects are not followed), as do other statuses and no answer within 5 seconds.
  • A failed event is retried up to 5 attempts in one run, after 0.5 s, 1 s, 2 s and 4 s. Events go out oldest first, and a subscription’s position only moves on a 2xx, so nothing is skipped.
  • After 5 runs in a row that end in failure, the subscription is disabled. Register again to resume.
  • Runs happen daily (Vercel Cron) and right after each production deploy, which is when the registry changes.

Which URLs are accepted

To keep the delivery service from being pointed at internal systems, a subscriber URL must be https on port 443, with no user name or password in it. Its host may not be an IP literal in a private (10/8, 172.16/12, 192.168/16), loopback, link-local, carrier-grade NAT (100.64/10), multicast, unspecified, IPv6 unique-local and cloud metadata range, for IPv4, IPv6 and IPv4-mapped IPv6. Every A and AAAA record the host resolves to must be public as well, and the check runs again before each delivery.

POST/api/v1/webhooks

Subscribe to registry changes

Registers an https URL for change events. Returns the HMAC secret once. Deliveries are POSTs of the registryChange webhook below. 10 registrations per hour per IP.

Request body

Body fieldsWebhookRegisterRequest · 3 fieldsShow
urlstring (uri)
https only, port 443, no credentials, and a public host (no private, loopback, link-local or metadata address).
eventsWebhookEvent[]
—
filtersWebhookFilters · optional
—
Body · XAUT0 changes15 linesShow
{
  "url": "https://example.com/hooks/rwamaps",
  "events": [
    "reclassified",
    "added"
  ],
  "filters": {
    "tokens": [
      "xaut0"
    ],
    "chains": [
      "celo"
    ]
  }
}
Request
curl -X POST https://rwamaps.com/api/v1/webhooks \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com/hooks/rwamaps","events":["reclassified","added"],"filters":{"tokens":["xaut0"],"chains":["celo"]}}'

Responses

  • 201Registered.WebhookRegistrationResponse

    Headers X-RWAMaps-Source

    FieldsWebhookRegistrationResponse · 10 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    idstring
    —
    secretstring
    HMAC-SHA256 key for X-RWAMaps-Signature. Shown only once: store it now.
    urlstring (uri)
    Absolute URL.
    eventsWebhookEvent[]
    —
    filtersWebhookFilters
    —
    cursorstring
    The latest change id: only changes after it are delivered.

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    201 example · Created22 linesShow
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "id": "wh_example",
      "secret": "shown-once-store-it-now",
      "url": "https://example.com/hooks/rwamaps",
      "events": [
        "reclassified",
        "added"
      ],
      "filters": {
        "tokens": [
          "xaut0"
        ],
        "chains": [
          "Celo"
        ]
      },
      "cursor": "2026-11-28-jltxx-metadata-ens-status",
      "signed": false
    }
  • 400Invalid body (invalid_request) or a URL the policy refuses (invalid_url).ApiError
    • error invalid_request: The body must be JSON: { "url": "https://…", "events": ["*"], "filters": { "tokens": [], "chains": [] } }.
    • error invalid_url: Only https URLs are accepted.

    Headers X-RWAMaps-Source

    400 example · Not JSON8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_request",
      "message": "The body must be JSON: { \"url\": \"https://…\", \"events\": [\"*\"], \"filters\": { \"tokens\": [], \"chains\": [] } }.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
    400 example · An http URL8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "invalid_url",
      "message": "Only https URLs are accepted.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 429Rate limited.ApiError
    • error rate_limited: Too many requests. Retry after the number of seconds in Retry-After.

    Headers X-RWAMaps-Source, Retry-After

    429 example · Too many8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "rate_limited",
      "message": "Too many requests. Retry after the number of seconds in Retry-After.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 500The registration failed unexpectedly.ApiError
    • error internal_error: The registration could not be completed. Try again later.

    Headers X-RWAMaps-Source

    500 example · Store unreachable8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "internal_error",
      "message": "The registration could not be completed. Try again later.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 503Webhooks are not configured.ApiError
    • error webhooks_unavailable: Webhooks are not configured on this deployment (no Redis credentials).

    Headers X-RWAMaps-Source

    503 example · No store8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "webhooks_unavailable",
      "message": "Webhooks are not configured on this deployment (no Redis credentials).",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }

DELETE/api/v1/webhooks/{id}Bearer secret

Unsubscribe

Parameters

idpath · required · string
—
Request
curl -X DELETE https://rwamaps.com/api/v1/webhooks/wh_example \
  -H 'Authorization: Bearer <secret>'

Responses

  • 200Deleted.WebhookDeletedResponse

    Headers X-RWAMaps-Source

    FieldsWebhookDeletedResponse · 6 fieldsShow
    schemaVersion"1.1.0"
    —
    lastVerifiedstring (date)
    Newest lastVerified among the records this result covers.
    lastVerifiedRangeLastVerifiedRange · optional
    Oldest and newest lastVerified among the records covered.
    sourcestring (uri)
    Where the data is published: the token page, registry.json or /changes.
    idstring
    —
    deletedtrue
    —

    Plus the signature members: signed, signatureScheme, signer, signedAt, signature (or signed: false alone). See Signatures.

    200 example · Deleted
    {
      "schemaVersion": "1.1.0",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "id": "wh_example",
      "deleted": true,
      "signed": false
    }
  • 401Missing or wrong secret.ApiError
    • error unauthorized: Send the subscription's secret as Authorization: Bearer <secret>.

    Headers X-RWAMaps-Source, WWW-Authenticate

    401 example · No bearer secret8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "unauthorized",
      "message": "Send the subscription's secret as Authorization: Bearer <secret>.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
    401 example · Wrong secret8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "unauthorized",
      "message": "Missing or wrong bearer secret.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 404No such subscription.ApiError
    • error not_found: No webhook subscription with that id.

    Headers X-RWAMaps-Source

    404 example · Unknown id8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "not_found",
      "message": "No webhook subscription with that id.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: DELETE, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers DELETE and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers DELETE and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 500The deletion failed unexpectedly.ApiError
    • error internal_error: The deletion could not be completed. Try again later.

    Headers X-RWAMaps-Source

    500 example · Store unreachable8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "internal_error",
      "message": "The deletion could not be completed. Try again later.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 503Webhooks are not configured.ApiError
    • error webhooks_unavailable: Webhooks are not configured on this deployment (no Redis credentials).

    Headers X-RWAMaps-Source

    503 example · No store8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "webhooks_unavailable",
      "message": "Webhooks are not configured on this deployment (no Redis credentials).",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }

POSTyour https URLWebhook · sent by RWA Maps

A registry change, POSTed to each matching subscriber

X-RWAMaps-Signature is t=<unix seconds>,v1=<hex HMAC-SHA256(secret, `${t}.${rawBody}`)>. Reject when |now - t| > 300 s, and deduplicate on X-RWAMaps-Event-Id. Answer 2xx; a 3xx or anything else is a failure and is retried (up to 5 attempts per run, backoff 0.5 s to 4 s). 5 failed runs in a row disable the subscription.

Headers

X-RWAMaps-Signatureheader · required · string
t=<unix seconds>,v1=<hex HMAC-SHA256 keyed by the subscription secret, over `${t}.${rawBody}`>. Reject when |now - t| > 300 s. Example: t=1763446980,v1=<64 hex>
X-RWAMaps-Event-Idheader · required · string
evt_<change id>, the body's id. The same on every retry: deduplicate on it. Example: evt_2026-11-17-xaut0-bnb-smart-chain-reclassified
X-RWAMaps-Eventheader · required · "added" | "removed" | "reclassified" | "metadata"
The change type (the body's change.type).
User-Agentheader · required · "RWAMaps-Webhooks/1"
Identifies RWA Maps webhook deliveries.

Payload

Payload fieldsWebhookDelivery · 7 fieldsShow
schemaVersion"1.1.0"
—
idstring
Event id (also X-RWAMaps-Event-Id). Deduplicate on it.
type"registry.change"
—
changeChangeEntry
One change to the verified data, derived from the git history of lib/tokens.ts.
deliveredAtstring (date-time)
ISO 8601 date-time (UTC, e.g. from Date.toISOString()).
lastVerifiedstring (date)
The registry's newest lastVerified when the event was built.
sourcestring (uri)
Absolute URL.
Payload · Example50 linesShow
{
  "schemaVersion": "1.1.0",
  "id": "evt_2026-11-17-xaut0-bnb-smart-chain-reclassified",
  "type": "registry.change",
  "change": {
    "id": "2026-11-17-xaut0-bnb-smart-chain-reclassified",
    "timestamp": "2026-11-17T04:50:43Z",
    "type": "reclassified",
    "token": "xaut0",
    "chain": "BNB Smart Chain",
    "chainSlug": "bnb-smart-chain",
    "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
    "before": {
      "token": "xaut",
      "role": "official",
      "standard": "BEP-20",
      "sources": [
        {
          "label": "Tether supported protocols",
          "url": "https://tether.to/en/supported-protocols/"
        }
      ]
    },
    "after": {
      "token": "xaut0",
      "role": "oft-token",
      "standard": "BEP-20 (OFT)",
      "sources": [
        {
          "label": "USDT0 official deployments",
          "url": "https://docs.usdt0.to/technical-documentation/deployments"
        },
        {
          "label": "USDT0 BNB Chain ecosystem",
          "url": "https://usdt0.to/ecosystem/bnb-chain"
        }
      ],
      "note": "On-chain name is Tether Gold and the symbol is XAUt. This is the XAUT0 omnichain token on BNB Smart Chain, not a separate XAUT contract."
    },
    "reason": "Reclassified: the BNB Smart Chain address moved from XAUT (role official, standard BEP-20) to XAUT0 (role oft-token, standard BEP-20 (OFT)); the address itself did not change. On-chain name is Tether Gold and the symbol is XAUt. This is the XAUT0 omnichain token on BNB Smart Chain, not a separate XAUT contract.",
    "sourceUrl": "https://docs.usdt0.to/technical-documentation/deployments",
    "commit": "c0ce16756d292da58315ab2b530e6471a7d693a2",
    "warnings": [
      "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain."
    ]
  },
  "deliveredAt": "2026-11-18T06:23:00.000Z",
  "lastVerified": "2026-12-01",
  "source": "https://rwamaps.com/changes"
}

Your response

  • 2XXAny 2xx acknowledges the event.

GET/api/cron/deliver-webhooksBearer secret

Deliver pending change events (operator only, GET)

Called by Vercel Cron (GET) and the deploy workflow (POST; the same route and answers) with Authorization: Bearer CRON_SECRET. 503 cron_unavailable when CRON_SECRET is unset or shorter than 16 characters, 503 webhooks_unavailable without a webhook store.

Request
curl https://rwamaps.com/api/cron/deliver-webhooks -H "Authorization: Bearer $CRON_SECRET"

Responses

  • 200Run summary.

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET.ApiError
    • error unauthorized: Missing or wrong bearer secret.

    Headers X-RWAMaps-Source, WWW-Authenticate

    401 example · Wrong secret8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "unauthorized",
      "message": "Missing or wrong bearer secret.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 500The run failed unexpectedly.ApiError
    • error internal_error: The delivery run could not be completed. Try again later.

    Headers X-RWAMaps-Source

    500 example · Store unreachable8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "internal_error",
      "message": "The delivery run could not be completed. Try again later.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
  • 503CRON_SECRET or the store is not configured.ApiError
    • error cron_unavailable: CRON_SECRET is not set.
    • error webhooks_unavailable: Webhooks are not configured on this deployment (no Redis credentials).

    Headers X-RWAMaps-Source

    503 example · CRON_SECRET not set8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "cron_unavailable",
      "message": "CRON_SECRET is not set.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }
    503 example · No webhook store8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "webhooks_unavailable",
      "message": "Webhooks are not configured on this deployment (no Redis credentials).",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/changes",
      "signed": false
    }

POST/api/cron/deliver-webhooksBearer secret

Deliver pending change events (operator only, POST)

The deploy workflow's call: the same handler and answers as GET.

Responses

  • 200Run summary (as GET).

    Headers X-RWAMaps-Source

  • 401Missing or wrong CRON_SECRET (as GET).ApiError

    Headers X-RWAMaps-Source, WWW-Authenticate

  • 405Another method on this path: method_not_allowed. Allow: GET, HEAD, POST, OPTIONS.ApiError
    • error method_not_allowed: This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.

    Headers X-RWAMaps-Source, Allow

    405 example · Another method8 linesShow
    {
      "schemaVersion": "1.1.0",
      "error": "method_not_allowed",
      "message": "This endpoint answers GET, HEAD, POST and OPTIONS only. Every endpoint and its methods are listed in https://rwamaps.com/openapi.json.",
      "lastVerified": "2026-12-01",
      "source": "https://rwamaps.com/registry.json",
      "signed": false
    }
  • 500The run failed unexpectedly (as GET).ApiError

    Headers X-RWAMaps-Source

  • 503CRON_SECRET or the store is not configured (as GET).ApiError

    Headers X-RWAMaps-Source

MCP server

Any MCP client can add RWA Maps as a tool: Streamable HTTP at https://rwamaps.com/api/mcp, stateless, public and read-only, with no key needed (an optional free key raises the limits). Copy-paste setup for Claude Desktop, Claude Code, Cursor and other clients is on the MCP setup page.

resolve_asset
A ticker, name or planned ENS name to its addresses, each with its chain, decimals, issuer and warnings.
verify_address
Check before you sign: is this exact address the listed token on this chain, and if not, what is it?
list_assets
Verified tokens, filtered by category, chain or issuer.
get_asset
One token across every chain: deployments, sources, notes, audit links.
get_changes
Registry changes since a date.
lookup_wallet
A labeled PAXG or XAUT Ethereum wallet by address, ENS name or slug, or the full list.

resolve_asset, verify_address, get_changes and lookup_wallet return the same object as their REST twins (/api/v1/resolve, /api/v1/verify-address, /api/v1/changes and /api/v1/wallets), signed the same way. list_assets and get_asset are MCP-only: /api/v1/tokens/{token} keeps its PR #1 shape and takes an id or a ticker, not a planned ENS name. Each result comes as structuredContent and as a JSON text block. The resource rwamaps://registry is the signed registry. Each client may make 60 tool calls a minute: every tools/call and resources/read message counts, also inside a batch. The handshake and listing messages (initialize, notifications, ping, tools/list, resources/list) do not: they have their own budget of 300. A client is its IP address, so the users of a hosted connector, which calls from its provider's shared addresses, share one budget unless they send a free API key.

Claude Code
claude mcp add --transport http rwamaps https://rwamaps.com/api/mcp

POST/api/mcp

MCP server (Streamable HTTP, stateless)

JSON-RPC 2.0 over MCP Streamable HTTP. Tools: resolve_asset, verify_address, list_assets, get_asset, get_changes; resource rwamaps://registry. 60 tool calls per minute per client: every tools/call and resources/read message counts, also inside a batch; initialize, notifications, ping and the list methods have their own budget of 300. A request either budget refuses is refused whole and charges neither; a 400, 406, 413 or 415 is answered before the rate limit and costs nothing. Setup: https://rwamaps.com/mcp. A tool result's structuredContent is the same object the REST twin returns (schemaVersion, lastVerified, source and the signature members), and its text block holds the same JSON (abbreviated in these examples). Each tool declares it as its outputSchema. A tool error (an unknown token, an invalid since) is a result with isError: true whose text block is the ApiError body. JSON-RPC is served over POST only: GET (no SSE stream), DELETE (no session), PUT, PATCH and any other method but OPTIONS answer 405 with Allow: POST and a JSON-RPC -32000 error whose data is the signed method_not_allowed body.

Parameters

Acceptheader · required · string
Required by the Streamable HTTP transport: both application/json and text/event-stream (406 otherwise). Example: application/json, text/event-stream
MCP-Protocol-Versionheader · optional · string
Optional: the MCP protocol version negotiated at initialize (2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05, 2024-10-07). Example: 2025-06-18

Request body

Body fieldsJsonRpcRequest · 4 fieldsShow
jsonrpc"2.0"
—
idstring | number · optional
—
methodstring
—
paramsobject · optional
—
Body · verify_address: XAUT0's BNB address on Celo
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "verify_address",
    "arguments": {
      "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
      "chain": "celo"
    }
  }
}
Body · get_asset: an unknown token
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "get_asset",
    "arguments": {
      "token": "nope"
    }
  }
}
Body · A notification (no id): answered 202
{
  "jsonrpc": "2.0",
  "method": "notifications/initialized"
}
Request
curl -X POST https://rwamaps.com/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"verify_address","arguments":{"address":"0x21cAef8A43163Eea865baeE23b9C2E327696A3bf","chain":"celo"}}}'

Responses

  • 200JSON-RPC response (JSON, or one SSE message).JsonRpcResponse · text/event-stream
    FieldsJsonRpcResponse · 4 fieldsShow
    jsonrpc"2.0"
    —
    idstring | number | null
    —
    resultany · optional
    —
    errorobject · optional
    Every error the endpoint answers carries data: the signed API error body (ApiError), in fixed text.
    200 example · verify_address: not the token on Celo60 linesShow
    {
      "jsonrpc": "2.0",
      "id": 2,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "<the same JSON as structuredContent, serialized>"
          }
        ],
        "structuredContent": {
          "schemaVersion": "1.1.0",
          "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
          "chain": "Celo",
          "chainSlug": "celo",
          "verified": false,
          "listed": false,
          "isToken": false,
          "reason": "Not verified. This address is NOT the XAUT0 token on Celo: in the registry it is the XAUT0 token on BNB Smart Chain. According to the registry's XAUT0 note, on Celo this address is the XAUT0 OFT contract, not the token. The XAUT0 token on Celo is 0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff (chain: Celo). Always match the address and the chain.",
          "otherChains": [
            {
              "chain": "BNB Smart Chain",
              "chainSlug": "bnb-smart-chain",
              "address": "0x21cAef8A43163Eea865baeE23b9C2E327696A3bf",
              "token": "xaut0",
              "ticker": "XAUT0",
              "role": "oft-token",
              "roleLabel": "OFT token",
              "addressKind": "contract",
              "page": "https://rwamaps.com/gold/xaut0/bnb-smart-chain"
            }
          ],
          "deploymentOnChain": {
            "chain": "Celo",
            "chainSlug": "celo",
            "address": "0xaf37E8B6C9ED7f6318979f56Fc287d76c30847ff",
            "token": "xaut0",
            "ticker": "XAUT0",
            "role": "oft-token",
            "roleLabel": "OFT token",
            "addressKind": "contract",
            "page": "https://rwamaps.com/gold/xaut0/celo"
          },
          "reuse": {
            "chain": "Celo",
            "chainSlug": "celo",
            "role": "OFT contract (not the token)",
            "token": "xaut0",
            "sourceNote": "The same address string can identify different contracts on different chains. 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain.",
            "warning": "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain."
          },
          "warnings": [
            "The same address can mean different contracts on different chains. For example, 0x21cAef8A43163Eea865baeE23b9C2E327696A3bf is the XAUT0 token on BNB Smart Chain and the OFT contract on Celo and Monad. Always match the address and the chain."
          ],
          "lastVerified": "2026-11-16",
          "source": "https://rwamaps.com/gold/xaut0",
          "signed": false
        }
      }
    }
    200 example · get_asset: an unknown token (isError)13 linesShow
    {
      "jsonrpc": "2.0",
      "id": 3,
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"schemaVersion\":\"1.1.0\",\"error\":\"not_found\",\"message\":\"No verified token for that key. Use an id or ticker: xaut, paxg, kau, xaum, vnxau, xaut0, kag, xagm, buidl, buidl-i, usdy, usyc, benji, jltxx, tslaon, tslax, tsla-robinhood, nvdaon, nvdax, nvda-robinhood, aaplon, aaplx, aapl-robinhood, msfton, msftx, msft-robinhood, googlon, googlx, googl-robinhood, amznon, amznx, amzn-robinhood, metaon, metax, meta-robinhood, avgoon, avgox, avgo-robinhood, coinon, coinx, coin-robinhood, mstron, mstrx, mstr-robinhood, hoodon, hoodx, crclon, crclx, crcl-robinhood, pltron, pltrx, pltr-robinhood, spyon, spyx, spy-robinhood, qqqon, qqqx, qqq-robinhood, glxy, sbet, fwdi, exod, spcx, spcx-dw, ivvon, strcon, strcx, spcxon, spcxx, spcx-robinhood, muon, mux, mu-robinhood, slvon, slvx, slv-robinhood, himson, himsx, hims-robinhood, tlton, tltx, sgovon, sgovx, sgov-robinhood, iefaon, aggon, gldon, gldx, gld-robinhood, itoton, dynfon, efaon, tipon, sofion, sofix, sofi-robinhood, coroon, tsmon, tsmx, tsm-robinhood, pddon, pddx, intcon, intcx, intc-robinhood, iemgon, iemgx, aipon, aipx, bmnron, bmnrx, bmnr-robinhood, mrvlon, mrvlx, mrvl-robinhood, eemon, tqqqon, tqqqx, inroon, usoon, usox, uso-robinhood, blcron, googon, iwnon, ibiton, amdon, amdx, amd-robinhood, baion, orclon, orclx, orcl-robinhood, nbison, nbisx, nbis-robinhood, antx, ant-robinhood, ethaon, iwmon, iwmx, asmlon, asmlx, asml-robinhood, fxion, pgon, pgx, gmeon, gmex, gme-robinhood, ijhon, ibmon, ibmx, ibm-robinhood, panwon, panwx, panw-robinhood, cvxon, cvxx, jpmon, jpmx, jpm-robinhood, mcdon, mcdx, mcd-robinhood, acred, acrdx, hlscope, arkvx.\",\"lastVerified\":\"2026-12-01\",\"source\":\"https://rwamaps.com/registry.json\",\"signed\":false}"
          }
        ],
        "isError": true
      }
    }
  • 202A notification or a response from the client: accepted, no body.
  • 400The body is not JSON or not a JSON-RPC message or batch, a batch holds more than 100 messages, cancels one of its own requests, or names revision 2026-07-28 (which allows no batches), MCP-Protocol-Version names a revision this server does not serve (the message lists those it serves), or a 2026-07-28 request lacks its _meta envelope or headers.JsonRpcResponse
    400 example · Invalid JSON16 linesShow
    {
      "jsonrpc": "2.0",
      "error": {
        "code": -32700,
        "message": "Parse error: the body is not valid JSON. Send a JSON-RPC 2.0 request or batch with POST.",
        "data": {
          "schemaVersion": "1.1.0",
          "error": "invalid_request",
          "message": "Parse error: the body is not valid JSON. Send a JSON-RPC 2.0 request or batch with POST.",
          "lastVerified": "2026-12-01",
          "source": "https://rwamaps.com/registry.json",
          "signed": false
        }
      },
      "id": null
    }
  • 406Accept does not include both application/json and text/event-stream.JsonRpcResponse
    406 example · Accept: application/json only16 linesShow
    {
      "jsonrpc": "2.0",
      "error": {
        "code": -32000,
        "message": "Not acceptable: send Accept: application/json, text/event-stream.",
        "data": {
          "schemaVersion": "1.1.0",
          "error": "invalid_request",
          "message": "Not acceptable: send Accept: application/json, text/event-stream.",
          "lastVerified": "2026-12-01",
          "source": "https://rwamaps.com/registry.json",
          "signed": false
        }
      },
      "id": null
    }
  • 413The body is over 64 KiB, or a batch carries more tool calls (or handshake and listing messages) than a client may send in a minute.JsonRpcResponse
    413 example · A body over 64 KiB16 linesShow
    {
      "jsonrpc": "2.0",
      "id": null,
      "error": {
        "code": -32600,
        "message": "Request too large: the body is over 64 KiB.",
        "data": {
          "schemaVersion": "1.1.0",
          "error": "invalid_request",
          "message": "Request too large: the body is over 64 KiB.",
          "lastVerified": "2026-12-01",
          "source": "https://rwamaps.com/registry.json",
          "signed": false
        }
      }
    }
    413 example · 61 tools/call in one batch16 linesShow
    {
      "jsonrpc": "2.0",
      "id": null,
      "error": {
        "code": -32600,
        "message": "Batch too large: it carries more tool calls than the 60 a client may make per minute. Send smaller batches.",
        "data": {
          "schemaVersion": "1.1.0",
          "error": "invalid_request",
          "message": "Batch too large: it carries more tool calls than the 60 a client may make per minute. Send smaller batches.",
          "lastVerified": "2026-12-01",
          "source": "https://rwamaps.com/registry.json",
          "signed": false
        }
      }
    }
  • 415Content-Type is not application/json.JsonRpcResponse
    415 example · Content-Type: text/plain16 linesShow
    {
      "jsonrpc": "2.0",
      "error": {
        "code": -32000,
        "message": "Unsupported media type: send Content-Type: application/json.",
        "data": {
          "schemaVersion": "1.1.0",
          "error": "invalid_request",
          "message": "Unsupported media type: send Content-Type: application/json.",
          "lastVerified": "2026-12-01",
          "source": "https://rwamaps.com/registry.json",
          "signed": false
        }
      },
      "id": null
    }
  • 429Rate limited: a JSON-RPC error body.JsonRpcResponse

    Headers Retry-After

Prices are separate

GET/api/prices

Spot quotes are cached from CoinGecko for up to 5 minutes and are not part of the registry schema or the OpenAPI document. Like every API body, the response carries schemaVersion, lastVerified (the registry's) and a source link to the methodology's prices section, and it is signed when the deployment has a key. Prices are context for the records, never part of them. The listing criteria are on the methodology page.

Request
curl https://rwamaps.com/api/prices

Field reference

The registry document, generated from the live document at schema 1.1.0, and the members every response adds. A field marked optional appears only on the records it applies to. Every other schema is in /openapi.json.

Registry document

10 fields
schemaVersionstring
Version of the document shape. It changes when the shape changes, not when a record is re-verified.
namestring
The product name, RWA Maps.
namespacestring
The ENS namespace recorded on this document, commodities.eth, for the Commodities section. Other sections use moneymarket.eth, publicequity.eth and privateequity.eth. Live names resolve on-chain; still use the address and chain from the registry when you transact.
sectionstring
The section this document covers.
descriptionstring
The site tagline.
urlstring
The site origin.
registryUrlstring
This document as a static file.
apiUrlstring
This document from the API.
lastVerifiedstring
The newest per-record date (YYYY-MM-DD). Records are verified on different dates, so read each token’s own lastVerified.
tokensobject[]
Every verified record, in registry order.

Token

21 fields
idstring
Record id, used in paths.
tickerstring
Ticker as published by the issuer.
namestring
Token name.
commoditystring
Commodity id, for example gold.
commodityLabelstring
Commodity name.
issuerstring
Issuer as named in the record.
issuerUrlstring
The issuer’s official page.
issuerSlugstring
Issuer id, used in /issuer paths.
issuerPathstring
Path of the issuer profile.
unitstring
What one token represents.
summarystring
One-paragraph description.
websitestring
Official website.
twitterstring · optional
Official X handle, when one is recorded.
subnamestring
ENS subname under commodities.eth. Live names resolve on-chain.
ensobject
—
verifiedboolean
Always true: only verified records are published.
lastVerifiedstring
Date of the research pass that confirmed this record (YYYY-MM-DD).
notesstring[] · optional
Caveats, verbatim.
auditLinksobject[]
Reserve reports and audits: label and url.
pathstring
Path of the record page.
deploymentsobject[]
One entry per chain, in record order.

Deployment

12 fields
chainstring
Chain name.
chainSlugstring
Chain id, used in paths.
addressstring
The recorded string, not re-cased. With addressKind token-id it is a HyperCore spot token id, not a contract.
decimalsnumber · optional
Decimals, only where a public token page states them.
explorerstring
Explorer link. EVM addresses use EIP-55 checksum form.
standardstring
Token standard on that chain.
rolestring
canonical, official, oft-token or oft-adapter. An oft-adapter is shown in the UI as “Bridge contract, not a token”.
pathstring
Path of the per-chain page.
sourcesobject[]
The sources that confirm this deployment: label and url.
notestring · optional
Chain-specific caveat, verbatim.
decimalsLabelstring · optional
What the decimals are called when not ERC-20 decimals, for example weiDecimals.
addressKindstring · optional
token-id when the value is not a contract address.

Envelope and signature

9 fields
schemaVersionstring
Always first. The version of the response shape.
lastVerifiedstring
The newest lastVerified among the records the response covers (YYYY-MM-DD).
lastVerifiedRangeobject · optional
Registry-wide responses only: { oldest, newest }, because records are verified on different dates.
sourcestring
Where the data is published: the token page for one token, registry.json for registry-wide answers, /changes for changes.
signedboolean
True when the body is signed; false when the deployment has no signing key (and no other signature member follows).
signatureSchemestring · optional
eip191-jcs-v1
signerstring · optional
Address of the signing key.
signedAtstring · optional
ISO 8601 time of signing (UTC).
signaturestring · optional
EIP-191 signature of the JCS form of the body without this member. See Signatures.

Earlier paths

These paths permanently redirect to the versioned routes above.

  • /api/registryredirects to/api/v1/registry
  • /api/registry/csvredirects to/api/v1/registry.csv