agentwallet-sdk 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +33 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -246,6 +246,39 @@ Mainnet: Ethereum, Base, Arbitrum, Polygon, Optimism, Avalanche, BSC, Celo, Gnos
246
246
 
247
247
  Testnet: Base Sepolia, Arbitrum Sepolia, and corresponding testnets.
248
248
 
249
+ ## Complete Agent Identity Stack (v5.1.0)
250
+
251
+ One npm install now gives any AI agent a wallet, email address, on-chain ID, reputation, and signed payment intents.
252
+
253
+ | Component | What It Does |
254
+ |-----------|-------------|
255
+ | **EmailResolver** *(NEW)* | AgentMail integration — agents get `email@agentmail.to` linked to wallet. Resolve email→wallet, send/receive with embedded x402 payment requests. |
256
+ | **AgentIdentity** | ERC-8004 + ERC-6551: on-chain NFT identity + Token Bound Account |
257
+ | **ReputationClient** | On-chain reputation scoring — give/read feedback, aggregate scores |
258
+ | **VerifiableIntentClient** | Mastercard-spec signed payment intents with scope enforcement |
259
+ | **ValidationClient** | Request/respond validation workflow (TEE attestations, compliance) |
260
+
261
+ ### EmailResolver Quick Start
262
+
263
+ ```typescript
264
+ import { EmailResolver } from 'agentwallet-sdk';
265
+
266
+ const resolver = new EmailResolver();
267
+
268
+ // Resolve an agent email to its wallet address
269
+ const wallet = await resolver.resolveEmail('myagent@agentmail.to');
270
+ console.log(wallet.address); // 0x...
271
+
272
+ // Send a payment request embedded in an email
273
+ await resolver.sendWithPayment({
274
+ to: 'vendor@agentmail.to',
275
+ subject: 'Payment for API access',
276
+ amount: 5_000_000n, // 5 USDC
277
+ token: 'USDC',
278
+ chain: 'base',
279
+ });
280
+ ```
281
+
249
282
  ## Links
250
283
 
251
284
  - [ERC-8004 Spec](https://eips.ethereum.org/EIPS/eip-8004)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentwallet-sdk",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Non-custodial AI agent wallet SDK. ERC-8004 identity & reputation registries, mutual stake escrow, x402 payments, 17-chain CCTP bridging, ERC-6551 TBA, SpendingPolicy guardrails, Uniswap V3 swap. The agent holds the keys.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",