npm 包

@stwd/sdk

查看源 ↗

周下载量

趋势每日积累 —— 目前仅一个数据点。

项目介绍

TypeScript client for the Steward API. Use this in your agents, bots, or platform integrations to create wallets, set policies, and submit transactions for signing.

Create a new agent wallet. Steward generates a keypair, encrypts it in the vault, and returns the agent identity.

List all agents for the authenticated tenant.

Submit a transaction for policy evaluation and signing.

Throws: StewardApiError with status 400 if a hard policy rejects the transaction. error.data.results contains per-policy details.

Sign an arbitrary message (EIP-191 personal sign) with the agent's key.

Retrieve the current policy rules for an agent.

Replace the full policy set for an agent (PUT semantics —…

摘自 www.npmjs.com/package/@stwd/sdk