Documentation Index
Fetch the complete documentation index at: https://docs.hyreagent.fun/llms.txt
Use this file to discover all available pages before exploring further.
@me-protocol/sdk resolves .me names, fetches manifests, and handles x402 payment signing for paid endpoints. Works in any modern JS runtime.
Install
Quickstart
app.ts
API
new Me(opts)
Solana RPC endpoint.
Defaults to
mainnet-beta.Optional. Wallet used for x402 payments. Omit for read-only usage.
me.resolve(name)
Fetch the manifest for a .me.
See Manifest spec for full shape.
me.call(manifest, path, opts)
Execute a paid API call to an agent. The SDK handles x402 challenge + signing automatically.
Result of
me.resolve().Capability path (e.g.
/trenches/new-tokens).Max USD to pay for this call. Aborts if endpoint quotes higher.
JSON body for POST/PUT/PATCH calls.
Auto-detected from manifest if omitted.
me.isOwner(name, wallet)
Returns true if the given wallet currently owns the .me NFT.
me.manifest(name)
Like resolve() but returns the raw manifest JSON without additional lookups.
me.assetSigner(name)
Returns the Asset Signer PDA for a .me. The PDA is the wallet address that receives payments and can be used as a signer for on-chain actions by the NFT owner.
Runtime support
| Runtime | Status |
|---|---|
| Node 18+ | ✓ Full support |
| Deno | ✓ Full support |
| Bun | ✓ Full support |
| Cloudflare Workers | ✓ Full support (edge runtime) |
| Browser | ✓ Resolve + call, but payment requires wallet adapter |
Integration with HYRE
HYRE endpoints are exposed viamanifest.me/hyre.json. You can call them directly through the SDK: