Back to Labs
API Demo

Token Inspector for AI Agents

Test the /api/inspect endpoint. This is the same API any AI agent or application would call.

1. Enter a token address

Try:

How It Works

1

User asks about a token

"What is 0x7712c...?" or "Can I earn yield on this?"

2

Agent calls RWA Kernel

GET /api/inspect/1/0x7712c...

3

Agent responds with context

Uses agentSummary + promptSnippet to give accurate answers.

Integration Example

Full docs
// In your AI agent's tool handler
async function lookupToken(chain: number, address: string) {
  const res = await fetch(`https://rwakernel.com/api/inspect/${chain}/${address}`);
  const data = await res.json();
  
  if (data.classification === "rwa") {
    // Use agentSummary for quick context
    return `This is a tokenized RWA: ${data.agentSummary}`;
  } else {
    return "This token is not in my RWA database.";
  }
}