Catalog npm
Back to packageRELEASE DETAILS

0.1.2

npm

@0x402/auditor

The Agent B side, as one Express route: an x402-paid audit that answers with a signed seal, plus the free agent card a caller reads before paying.

agentauditexpresssealx402
Published8 Sept 2026
Direct dependencies10
Transitive dependenciesNot calculated

README

Current package documentation

@0x402/auditor

The Agent B side, as one Express route: an x402-paid audit that answers with a signed seal.

npm i @0x402/auditor express
import express from "express";
import { sealedAuditRoute } from "@0x402/auditor";

const app = express();
app.use(express.json({ limit: "1mb" }));

sealedAuditRoute(app, {
  sealAccount,               // your key, in your process
  agentId: "2",
  priceUsd: "$0.01",
  payToAddress,
  network: "eip155:84532",
  facilitatorUrl,
  sealTtlSeconds: 86_400,
  og: { network: "testnet", apiKey, model: undefined, skipAttestation: false },
});

app.listen(4021);

It mounts two routes:

  • GET /agent — free, and readable from any page (it sets Access-Control-Allow-Origin). The card says who a caller would be hiring: agent id, seal signer, payee, price, network, model, trust mode. Anyone can read it before paying.
  • POST /audit — x402-paid (protocol v2), and the reason this package exists.

What makes you an Agent B

Taking money is not enough. A plain x402 API takes the same cent and answers with prose, and the agent that paid has nothing it can embed, show, or be held to. What makes you a B is issuing a seal: a signed statement binding your verdict to the exact request, the model, and the TEE attestation the inference came back with.

The 502 rule

The payment settles on a 2xx. So if the inference fails, or the seal cannot be issued, this route answers 502 rather than a cheerful body — because a 2xx here would take the money for a seal that was never issued.


Repository · Site · MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 11

Native requirements
10 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@x402/core
Environment
{
  "local_name": "@x402/core",
  "alias": false,
  "peer_metadata": null
}
^2.24.0runtime
@x402/evm
Environment
{
  "local_name": "@x402/evm",
  "alias": false,
  "peer_metadata": null
}
^2.24.0runtime
@x402/express
Environment
{
  "local_name": "@x402/express",
  "alias": false,
  "peer_metadata": null
}
^2.24.0runtime
viem
Environment
{
  "local_name": "viem",
  "alias": false,
  "peer_metadata": null
}
^2.23.2runtime
zod
Environment
{
  "local_name": "zod",
  "alias": false,
  "peer_metadata": null
}
^3.24.2runtime
@0x402/seal
Environment
{
  "local_name": "@0x402/seal",
  "alias": false,
  "peer_metadata": null
}
0.1.2runtime
@0x402/og
Environment
{
  "local_name": "@0x402/og",
  "alias": false,
  "peer_metadata": null
}
0.1.2runtime
@types/express
Environment
{
  "local_name": "@types/express",
  "alias": false,
  "peer_metadata": null
}
^4.17.21development
express
Environment
{
  "local_name": "express",
  "alias": false,
  "peer_metadata": null
}
^4.21.2development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^3.0.5development
express
Environment
{
  "local_name": "express",
  "alias": false,
  "peer_metadata": null
}
^4.21peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-TQmojHSq+6qlJSe7XG2daG2c+YOTwSuvcbX0cfH+UH4bLk9im7NvGE/vOz717q0dWKVAGCDPjx2DTtrajj5ikw==",
  "shasum": "4498f2ba10dd2b731d705e4c72afdc0746fdff2d",
  "tarball": "https://registry.npmjs.org/@0x402/auditor/-/auditor-0.1.2.tgz",
  "fileCount": 13,
  "unpackedSize": 15968,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEYCIQDHCsjENVBGpII4n43VtsIuuA+X592y7DG3rzdKhvQxrAIhAMLoHkD2E4+5gzA0Wi66M37JQXdIUiz4uSb1eiUpDGjX"
    }
  ]
}

Repository

PENDING
wayneal/0g

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:35 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b8c8e998983eedec12ea55ee0c2c95fa16993b1c2cda71f2c9178f5b07508b31

Other collected versions

0.1.18 Sept0.1.07 SeptView all collected versions →