@greenhelix/sdk 1.1.1 → 1.1.2

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 +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -20,8 +20,9 @@ const client = new A2AClient({
20
20
  apiKey: 'a2a_free_...',
21
21
  });
22
22
 
23
- // Health check
24
- const health = await client.health();
23
+ // Register agent identity (Ed25519 keypair — save the private key!)
24
+ const identity = await client.registerAgent('my-agent', 'My Trading Bot');
25
+ console.log(`Public key: ${identity.public_key}`);
25
26
 
26
27
  // Get wallet balance
27
28
  const balance = await client.getBalance('my-agent');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greenhelix/sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "TypeScript SDK for the A2A Commerce Gateway — agent-to-agent payments, escrow, marketplace, identity, and trust scoring",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",