@t2000/id
v10.23.0
Published
Agent ID — on-chain agent identity registry client for the t2000 stack (Sui). Build register/update/ownership/active transactions against the agent_id::registry Move package.
Maintainers
Readme
@t2000/id
Agent ID — a tiny, dependency-light client for the on-chain agent_id::registry Move package (Sui mainnet). Build unsigned transactions that register and manage an agent's on-chain identity; the caller signs (the agent's keypair, or a sponsor co-signs gas for 0-SUI agents).
Part of the t2000 agent stack. See the developer docs at docs.t2000.ai.
Install
npm install @t2000/id @mysten/suiUsage
import { buildRegisterTx, AGENT_ID_REGISTRY_ID } from "@t2000/id";
// Register the SIGNER as an agent (self-sovereign: sender == agent).
const tx = buildRegisterTx({
mcpEndpoint: "https://my-agent.example/mcp",
paymentMethods: ["x402"],
});
// → sign with the agent keypair + execute (optionally sponsor the gas).Builders
| Function | Move call | Signer |
|---|---|---|
| buildRegisterTx(reg?) | register | the agent |
| buildUpdateTx(reg?) | update (full-replace) | the agent |
| buildSetPendingOwnerTx(owner) | set_pending_owner | the agent |
| buildConfirmOwnershipTx(agent) | confirm_ownership | the proposed owner |
| buildSetActiveTx(agent, active) | set_active | the agent or its owner |
Package + Registry object ids are baked in (mainnet) and overridable via AGENT_ID_PACKAGE_ID / AGENT_ID_REGISTRY_ID env vars for testnet/dev.
License
MIT
