warrant-client 0.1.1 → 0.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.
- package/README.md +17 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,37 +43,45 @@ a memory that outlives the process. Every paid step is a real settlement on
|
|
|
43
43
|
Hedera, and every resource is owned by the account that paid for it.
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
# 0.
|
|
46
|
+
# 0. Install the CLI, and set the account that pays. It needs testnet USDC and
|
|
47
|
+
# nothing else —
|
|
47
48
|
# the facilitator sponsors the network fee, so no HBAR is required.
|
|
49
|
+
npm i -g warrant-client
|
|
50
|
+
|
|
48
51
|
export WARRANT_ACCOUNT_ID=0.0.10514332
|
|
49
52
|
export WARRANT_PRIVATE_KEY=302e… # DER or hex
|
|
50
53
|
export WARRANT_AGENT_ADDRESS=0x7d14…33cC # only identity.mint needs this
|
|
51
54
|
|
|
52
55
|
# 1. See what is for sale, and what it costs. Free, and needs no key.
|
|
53
|
-
|
|
56
|
+
warrant catalogue
|
|
54
57
|
|
|
55
58
|
# 2. Mint the agent's identity — soulbound ERC-721 on Hedera ($0.10)
|
|
56
|
-
|
|
59
|
+
warrant buy identity.mint
|
|
57
60
|
|
|
58
61
|
# 3. Claim an inbox it owns and receives replies at ($1.00)
|
|
59
|
-
|
|
62
|
+
warrant buy email.inbox --name scout
|
|
60
63
|
|
|
61
64
|
# 4. Send a real email from it ($0.20)
|
|
62
|
-
|
|
65
|
+
warrant buy email.send --from scout@0gent.xyz --to you@example.com \
|
|
63
66
|
--subject "Hello" --body "from the agent, paid for by the agent"
|
|
64
67
|
|
|
65
68
|
# 5. Ask a model, paid per call ($0.02)
|
|
66
|
-
|
|
69
|
+
warrant buy inference --prompt "What is Hedera in one sentence?"
|
|
67
70
|
|
|
68
71
|
# 6. Write something it will still know tomorrow ($0.05)
|
|
69
|
-
|
|
72
|
+
warrant buy memory.write --content "the peer at 0x7510 answers on scout@0gent.xyz"
|
|
70
73
|
|
|
71
74
|
# 7. Search real phone inventory (free — an agent that cannot see the price
|
|
72
75
|
# before it commits is not choosing)
|
|
73
|
-
|
|
76
|
+
warrant read '/v1/phone/search?country=US&area=415'
|
|
74
77
|
```
|
|
75
78
|
|
|
76
|
-
|
|
79
|
+
Without installing, put the package name in front, because the command is
|
|
80
|
+
`warrant` and the package is `warrant-client`:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npx --package warrant-client warrant catalogue
|
|
84
|
+
```
|
|
77
85
|
|
|
78
86
|
## In code
|
|
79
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "warrant-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Buy resources for an AI agent over x402 on Hedera: a name, an inbox, a phone number, inference and permanent memory, one call at a time.",
|
|
5
5
|
"keywords": ["x402", "agent", "hedera", "usdc", "pay-per-call", "ai-agent", "402"],
|
|
6
6
|
"license": "MIT",
|