eliza-plugin-insumer 1.3.1 → 1.3.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 +21 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# eliza-plugin-insumer
|
|
2
2
|
|
|
3
|
-
ElizaOS plugin for [InsumerAPI](https://insumermodel.com) — 10 actions
|
|
3
|
+
ElizaOS plugin for [InsumerAPI](https://insumermodel.com) — 10 actions for wallet auth across 33 blockchains.
|
|
4
4
|
|
|
5
5
|
An agent can go from zero to running a token-gated commerce operation with no human involvement: provision an API key with USDC, create a merchant, configure which tokens gate access, add credits, verify wallets, run ACP/UCP commerce flows, and confirm payments — all autonomously.
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ curl -s -X POST https://api.insumermodel.com/v1/keys/create \
|
|
|
22
22
|
-d '{"email": "you@example.com", "appName": "ElizaOS Agent", "tier": "free"}' | jq .
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Returns an `insr_live_...` key with
|
|
25
|
+
Returns an `insr_live_...` key with 100 reads/day and 10 verification credits. One free key per email.
|
|
26
26
|
|
|
27
27
|
Or visit [insumermodel.com/developers](https://insumermodel.com/developers/) to get one.
|
|
28
28
|
|
|
@@ -50,12 +50,12 @@ export INSUMER_API_KEY=insr_live_your_key_here
|
|
|
50
50
|
The 10 actions cover the complete agent lifecycle — no human required at any step:
|
|
51
51
|
|
|
52
52
|
```
|
|
53
|
-
BUY_API_KEY → Provision API key with USDC (no auth needed)
|
|
53
|
+
BUY_API_KEY → Provision API key with USDC/USDT/BTC (no auth needed)
|
|
54
54
|
CREATE_MERCHANT → Create merchant profile (100 free credits)
|
|
55
55
|
CONFIGURE_TOKENS → Set which tokens gate discounts + tier thresholds
|
|
56
56
|
ADD_CREDITS → Top up merchant credits with USDC
|
|
57
57
|
VERIFY_WALLET → Verify token/NFT/attestation conditions (1-10 per call)
|
|
58
|
-
CHECK_TRUST → Generate
|
|
58
|
+
CHECK_TRUST → Generate 36-check wallet trust profile
|
|
59
59
|
CHECK_TRUST_BATCH → Profile up to 10 wallets in one call
|
|
60
60
|
ACP_DISCOUNT → Check discount in OpenAI/Stripe ACP format
|
|
61
61
|
UCP_DISCOUNT → Check discount in Google UCP format
|
|
@@ -66,7 +66,7 @@ CONFIRM_PAYMENT → Confirm on-chain USDC payment for discount code
|
|
|
66
66
|
|
|
67
67
|
### BUY_API_KEY
|
|
68
68
|
|
|
69
|
-
Buy a new InsumerAPI key with USDC. No existing API key required — the sender wallet from the
|
|
69
|
+
Buy a new InsumerAPI key with USDC, USDT, or BTC. No existing API key required — the sender wallet from the transaction becomes the key's identity. One key per wallet.
|
|
70
70
|
|
|
71
71
|
```
|
|
72
72
|
User: "I sent 10 USDC on Base, tx 0xabc123. Create an API key called TrustBot."
|
|
@@ -95,7 +95,7 @@ Credits: 100 (free starter credits)
|
|
|
95
95
|
|
|
96
96
|
### CONFIGURE_TOKENS
|
|
97
97
|
|
|
98
|
-
Configure which tokens gate access to merchant discounts. Up to 8 tokens with 1-4 discount tiers each.
|
|
98
|
+
Configure which tokens gate access to merchant discounts. Up to 8 tokens with 1-4 discount tiers each. Supports all 30 EVM chains plus Solana and XRPL.
|
|
99
99
|
|
|
100
100
|
```
|
|
101
101
|
User: "Set up USDC gating for acme-coffee: Bronze at 100 (5%), Silver at 1000 (10%), Gold at 10000 (15%) on Ethereum."
|
|
@@ -107,7 +107,7 @@ Total tokens: 1/8
|
|
|
107
107
|
|
|
108
108
|
### ADD_CREDITS
|
|
109
109
|
|
|
110
|
-
Buy merchant verification credits with USDC. Credits are consumed by discount code generation.
|
|
110
|
+
Buy merchant verification credits with USDC, USDT, or BTC. Credits are consumed by discount code generation.
|
|
111
111
|
|
|
112
112
|
```
|
|
113
113
|
User: "I sent 20 USDC on Base (tx 0xabc123) to top up credits for acme-coffee."
|
|
@@ -135,7 +135,7 @@ Attestation ATST-A7C3E1B2D4F56789: PASS
|
|
|
135
135
|
|
|
136
136
|
### CHECK_TRUST
|
|
137
137
|
|
|
138
|
-
Generate a structured wallet trust profile with
|
|
138
|
+
Generate a structured wallet trust profile with 36 base checks (up to 40 with Solana, XRPL, and Bitcoin) across stablecoins, governance tokens, NFTs, and staking. Optional cross-chain with Solana and XRPL wallets.
|
|
139
139
|
|
|
140
140
|
```
|
|
141
141
|
User: "What's the trust profile for 0xd8dA...?"
|
|
@@ -146,7 +146,7 @@ Trust Profile TRST-B2K4F
|
|
|
146
146
|
governance: 2/4 passed
|
|
147
147
|
nfts: 1/3 passed
|
|
148
148
|
staking: 2/3 passed
|
|
149
|
-
Overall:
|
|
149
|
+
Overall: 22/36 checks passed
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
### CHECK_TRUST_BATCH
|
|
@@ -158,9 +158,9 @@ User: "Check trust for these wallets: 0xd8dA..., 0xAb58..., 0x1234..."
|
|
|
158
158
|
Agent: [calls CHECK_TRUST_BATCH → POST /v1/trust/batch]
|
|
159
159
|
|
|
160
160
|
Batch Trust: 3 profiles
|
|
161
|
-
0xd8dA...:
|
|
162
|
-
0xAb58...:
|
|
163
|
-
0x1234...:
|
|
161
|
+
0xd8dA...: 22/36 checks passed (TRST-B2K4F)
|
|
162
|
+
0xAb58...: 14/36 checks passed (TRST-C3L5G)
|
|
163
|
+
0x1234...: 6/36 checks passed (TRST-D4M6H)
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
### ACP_DISCOUNT
|
|
@@ -217,21 +217,22 @@ If the API cannot reach one or more data sources after retries, actions return `
|
|
|
217
217
|
|
|
218
218
|
**Important:** `rpc_failure` is NOT a verification failure. Do not treat it as `pass: false`. It means the data source was temporarily unavailable and the API refused to sign an unverified result.
|
|
219
219
|
|
|
220
|
-
## Supported Chains (
|
|
220
|
+
## Supported Chains (33)
|
|
221
221
|
|
|
222
|
-
30 EVM chains + Solana + XRP Ledger. Includes Ethereum, Base, Polygon, Arbitrum, Optimism, BNB Chain, Avalanche, and 23 more. [Full list →](https://insumermodel.com/developers/api-reference/)
|
|
222
|
+
30 EVM chains + Solana + XRP Ledger + Bitcoin. Includes Ethereum, Base, Polygon, Arbitrum, Optimism, BNB Chain, Avalanche, and 23 more. [Full list →](https://insumermodel.com/developers/api-reference/)
|
|
223
223
|
|
|
224
224
|
## Pricing
|
|
225
225
|
|
|
226
|
-
**Tiers:** Free (10 credits) | Pro $9/mo (10,000/day) | Enterprise $29/mo (100,000/day)
|
|
226
|
+
**Tiers:** Free (100 reads/day, 10 credits) | Pro $9/mo (10,000/day) | Enterprise $29/mo (100,000/day)
|
|
227
227
|
|
|
228
|
-
**
|
|
228
|
+
**Volume discounts:** $5–$99 = $0.04/call (25 credits/$1) · $100–$499 = $0.03 (33/$1, 25% off) · $500+ = $0.02 (50/$1, 50% off)
|
|
229
229
|
|
|
230
|
-
**Platform wallets
|
|
231
|
-
- **EVM:** `0xAd982CB19aCCa2923Df8F687C0614a7700255a23`
|
|
232
|
-
- **Solana:** `6a1mLjefhvSJX1sEX8PTnionbE9DqoYjU6F6bNkT4Ydr`
|
|
230
|
+
**Platform wallets:**
|
|
231
|
+
- **EVM (USDC/USDT):** `0xAd982CB19aCCa2923Df8F687C0614a7700255a23`
|
|
232
|
+
- **Solana (USDC/USDT):** `6a1mLjefhvSJX1sEX8PTnionbE9DqoYjU6F6bNkT4Ydr`
|
|
233
|
+
- **Bitcoin:** `bc1qg7qnerdhlmdn899zemtez5tcx2a2snc0dt9dt0`
|
|
233
234
|
|
|
234
|
-
**Supported
|
|
235
|
+
**Supported payment chains:** Ethereum, Base, Polygon, Arbitrum, Optimism, BNB Chain, Avalanche, Solana, Bitcoin. Tokens sent on unsupported chains cannot be recovered. All purchases are final and non-refundable. [Full pricing →](https://insumermodel.com/pricing/)
|
|
235
236
|
|
|
236
237
|
## Also Available As
|
|
237
238
|
|
|
@@ -250,5 +251,3 @@ If the API cannot reach one or more data sources after retries, actions return `
|
|
|
250
251
|
MIT
|
|
251
252
|
|
|
252
253
|
---
|
|
253
|
-
|
|
254
|
-
If you find this useful, please star the repo — it helps others discover it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eliza-plugin-insumer",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "ElizaOS plugin for InsumerAPI — 10 actions covering the full autonomous agent lifecycle: buy API key, create merchant, configure token tiers, add credits, verify wallets, trust profiles (36 checks: USDC and USDT), ACP/UCP commerce, confirm payments. ECDSA-signed results across 33 blockchains.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|