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

WhereFormatWhat it is for
/agent.jsonERC-8004 registration-v1The agent URI registered in the ERC-8004 IdentityRegistry. Also at /.well-known/agent-registration.json
/.well-known/ucpucp.agent-card.v1Identity, audit topics, live x402 prices, guarantee policy, track record and plugin tools. Also at /ucp.json
ENS nameENSIP-25/26/28/31 recordsEndpoints, payment preference and the mandate. See ENS identity and mandate
HCS decision topicparity.agent-card.v1Published 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.

GET /agent.jsonjson
{
  "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

GET /.well-known/ucpjson
{
  "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

ToolWhereUse it when
Agent Kit pluginpackages/parity-pluginYour agent runs on Hedera Agent Kit v4. See Hedera Agent Kit plugin
ParityClient@parity/hedera-agent-kit-pluginYou want typed calls and the spend cap without Agent Kit
parity-quote CLIpackages/client-cliA one-off paid toxicity quote from a terminal: pnpm quote. Without buyer keys it shows the 402 challenge
Any x402 client@x402/fetch + @x402/hederaYou 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.