12/Integrate
Built to be found by other agents
Other agents find Parity through its ENS name, two machine-readable cards on the gateway, and an announcement on HCS, and they pay it over x402, most easily through the Hedera Agent Kit plugin. Parity is itself an Agent Kit agent: it trades through the same toolkit it sells a plugin for.
Discovery surfaces
| Where | Format | What it is for |
|---|---|---|
| /agent.json | ERC-8004 registration-v1 | The agent URI registered in the ERC-8004 IdentityRegistry. Also at /.well-known/agent-registration.json |
| /.well-known/ucp | ucp.agent-card.v1 | Identity, audit topics, live x402 prices, guarantee policy, track record and plugin tools. Also at /ucp.json |
| ENS name | ENSIP-25/26/28/31 records | Endpoints, payment preference and the mandate. See ENS identity and mandate |
| HCS decision topic | parity.agent-card.v1 | Published once when the agent starts: name, account, ENS name, ERC-8004 registry and id, gateway URL and topic ids |
The ERC-8004 registration file
The gateway builds it with buildErc8004Registration from @parity/ens. services lists the web, A2A, MCP, ENS and x402 endpoints that are configured, then adds the UCP card and a hedera entry of the form network:account. active is true only once the agent has pushed real data and the ENS mandate is active. registrations is filled when ERC8004_AGENT_ID is set.
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "Parity",
"description": "...",
"services": [
{ "name": "ENS", "endpoint": "<ENS_SUBNAME>", "version": "v1" },
{ "name": "x402", "endpoint": "<X402_GATEWAY_URL>/x402" },
{ "name": "UCP", "endpoint": "<X402_GATEWAY_URL>/.well-known/ucp" },
{ "name": "hedera", "endpoint": "hedera:mainnet:0.0.x" }
],
"x402Support": true,
"active": true,
"registrations": [{ "agentId": 1, "agentRegistry": "eip155:1:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432" }]
}The UCP card
{
"schema": "ucp.agent-card.v1",
"name": "Parity",
"description": "...",
"url": "<X402_GATEWAY_URL or null>",
"identity": { "ensName", "erc8004Registry", "erc8004AgentId", "hederaAccountId", "network" },
"auditTopics": { "decisionsTopicId", "pnlTopicId", "trackTopicId" },
"x402": {
"facilitatorUrl", "network", "asset",
"endpoints": [{ "method", "path", "priceUsd", "description" }],
"pricing": EndpointPricing
},
"guarantee": { "policy", "claimUrl": "/guarantee/claim" },
"trackRecord": TrackRecordSummary,
"plugin": {
"package": "@parity/hedera-agent-kit-plugin",
"tools": ["parity_check_swap_safety", "parity_get_toxicity_quote", "parity_claim_guarantee"]
}
}Ways to buy
| Tool | Where | Use it when |
|---|---|---|
| Agent Kit plugin | packages/parity-plugin | Your agent runs on Hedera Agent Kit v4. See Hedera Agent Kit plugin |
| ParityClient | @parity/hedera-agent-kit-plugin | You want typed calls and the spend cap without Agent Kit |
| parity-quote CLI | packages/client-cli | A one-off paid toxicity quote from a terminal: pnpm quote. Without buyer keys it shows the 402 challenge |
| Any x402 client | @x402/fetch + @x402/hedera | You already speak x402: use the exact scheme on hedera:mainnet |
Parity as an Agent Kit agent
ParityHederaExecutor in apps/agent/src/executor.ts builds a HederaAgentAPI in AgentMode.AUTONOMOUS with the core account, token and consensus plugins plus saucer-swap-plugin. It quotes with the SaucerSwap plugin's V2 quote tool and swaps with swap_v2_tool; HCS messages go out directly through @hiero-ledger/sdk so the actual fee can be read back from each record.