n8n-nodes-agnicwallet 1.0.3 → 1.0.5
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/LICENSE +21 -0
- package/README.md +85 -8
- package/package.json +13 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 AgnicWallet
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
|
|
4
4
|
[](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
|
|
5
|
+
[](https://github.com/agnicpay/n8n-X402-AgnicWallet/issues)
|
|
6
|
+
[](https://github.com/agnicpay/n8n-X402-AgnicWallet/stargazers)
|
|
5
7
|
|
|
6
8
|
N8N community node for AgnicWallet - automated Web3 payments for X402-enabled APIs.
|
|
7
9
|
|
|
10
|
+
> ⭐ If you find this node useful, please star the repository on [GitHub](https://github.com/agnicpay/n8n-X402-AgnicWallet)!
|
|
11
|
+
|
|
8
12
|
Make HTTP requests to X402-enabled APIs with automatic blockchain payment handling via AgnicWallet. No manual wallet management, no complex crypto operations - just authenticate and automate.
|
|
9
13
|
|
|
10
14
|
## What is X402?
|
|
@@ -25,7 +29,7 @@ AgnicWallet is a non-custodial Web3 wallet service that handles blockchain payme
|
|
|
25
29
|
- ✅ **JSON body support** - For POST/PUT requests
|
|
26
30
|
- ✅ **Payment metadata** - See exactly what you paid and when
|
|
27
31
|
- ✅ **Monthly spending limits** - Built-in safety controls
|
|
28
|
-
- ✅ **
|
|
32
|
+
- ✅ **Multi-chain support** - Base (EVM) and Solana networks, both testnet and mainnet
|
|
29
33
|
|
|
30
34
|
## Installation
|
|
31
35
|
|
|
@@ -158,6 +162,30 @@ JSON body for sending data to the API
|
|
|
158
162
|
4. **Retry request** - Node retries with `X-PAYMENT` header containing payment proof
|
|
159
163
|
5. **Return response** - API validates payment and returns protected resource
|
|
160
164
|
|
|
165
|
+
## Backend Service
|
|
166
|
+
|
|
167
|
+
This node requires the AgnicWallet backend API to function. **This is by design and secure.**
|
|
168
|
+
|
|
169
|
+
### How It Works
|
|
170
|
+
1. You create a free account at [AgnicWallet](https://app.agnicpay.xyz)
|
|
171
|
+
2. You authorize n8n to use your wallet (OAuth2 or API Key)
|
|
172
|
+
3. When making X402 requests, the node calls `api.agnicpay.xyz` to sign payments on your behalf
|
|
173
|
+
4. Your wallet is non-custodial (keys managed securely, not stored by AgnicWallet)
|
|
174
|
+
|
|
175
|
+
### Why This Architecture?
|
|
176
|
+
- **No blockchain complexity** - You don't manage private keys or gas fees
|
|
177
|
+
- **Automatic payments** - Sign once, automate forever
|
|
178
|
+
- **Spending controls** - Set monthly limits for safety
|
|
179
|
+
- **Standard pattern** - Just like Slack, Notion, and other n8n nodes that use external APIs
|
|
180
|
+
|
|
181
|
+
### Backend API Details
|
|
182
|
+
- **Hosted at:** `api.agnicpay.xyz` (free to use)
|
|
183
|
+
- **Authentication:** OAuth2 or API Key
|
|
184
|
+
- **What it does:** Signs X402 payments with your authorized wallet
|
|
185
|
+
- **Open source:** You can self-host by setting `AGNICWALLET_API_URL` environment variable
|
|
186
|
+
|
|
187
|
+
This is the same architecture used by most n8n community nodes that interact with external services.
|
|
188
|
+
|
|
161
189
|
## Payment Details
|
|
162
190
|
|
|
163
191
|
- **Network:** Base Sepolia (testnet)
|
|
@@ -174,6 +202,36 @@ JSON body for sending data to the API
|
|
|
174
202
|
- **Payment review** - See all payments in AgnicWallet dashboard
|
|
175
203
|
- **Revocable access** - Disconnect N8N anytime
|
|
176
204
|
|
|
205
|
+
## FAQ
|
|
206
|
+
|
|
207
|
+
### Is my wallet safe?
|
|
208
|
+
Yes! AgnicWallet is non-custodial. Your private keys are managed securely using industry-standard key management infrastructure, never stored on AgnicWallet servers. The backend only signs transactions you've authorized.
|
|
209
|
+
|
|
210
|
+
### Do I need to trust AgnicWallet?
|
|
211
|
+
Yes, but only as much as you trust Slack, Notion, or Google when using their n8n nodes. You're authorizing AgnicWallet to sign X402 payments on your behalf within your spending limits.
|
|
212
|
+
|
|
213
|
+
### Can I use this node without AgnicWallet?
|
|
214
|
+
No. This node is specifically designed to work with AgnicWallet's backend API. However, you can:
|
|
215
|
+
- Fork this node and modify it to use your own payment service
|
|
216
|
+
- Self-host the AgnicWallet backend (set `AGNICWALLET_API_URL` environment variable)
|
|
217
|
+
|
|
218
|
+
### Is the backend API free?
|
|
219
|
+
Yes! The AgnicWallet service is free to use. You only pay blockchain transaction costs (USDC payments).
|
|
220
|
+
|
|
221
|
+
### What if api.agnicpay.xyz goes down?
|
|
222
|
+
- Your workflows will fail with payment signing errors
|
|
223
|
+
- Advanced users can self-host the backend for redundancy
|
|
224
|
+
- Check status at https://app.agnicpay.xyz
|
|
225
|
+
|
|
226
|
+
### Can n8n approve a node with external dependencies?
|
|
227
|
+
Absolutely! Most popular n8n community nodes depend on external APIs:
|
|
228
|
+
- Slack → api.slack.com
|
|
229
|
+
- GitHub → api.github.com
|
|
230
|
+
- Stripe → api.stripe.com
|
|
231
|
+
- AgnicWallet → api.agnicpay.xyz ✅
|
|
232
|
+
|
|
233
|
+
This is standard practice and well-documented in the node's README.
|
|
234
|
+
|
|
177
235
|
## Troubleshooting
|
|
178
236
|
|
|
179
237
|
### "Payment signing failed"
|
|
@@ -220,15 +278,29 @@ For example workflows and advanced use cases, check the documentation included w
|
|
|
220
278
|
| headers | collection | No | Custom headers |
|
|
221
279
|
| body | json | No* | JSON body (*POST/PUT only) |
|
|
222
280
|
|
|
281
|
+
## Supported Networks
|
|
282
|
+
|
|
283
|
+
AgnicWallet supports multiple blockchain networks for X402 payments:
|
|
284
|
+
|
|
285
|
+
- ✅ **Base Sepolia** - EVM testnet (free testing with testnet USDC)
|
|
286
|
+
- ✅ **Base** - EVM mainnet (real USDC payments)
|
|
287
|
+
- ✅ **Solana Devnet** - SVM testnet (free testing with devnet USDC)
|
|
288
|
+
- ✅ **Solana** - SVM mainnet (real USDC payments)
|
|
289
|
+
|
|
290
|
+
The node automatically selects the appropriate network based on your API token configuration and the X402 payment requirements from the API provider.
|
|
291
|
+
|
|
223
292
|
## Limitations
|
|
224
293
|
|
|
225
|
-
- **Networks:** Currently Base Sepolia only (mainnet coming soon)
|
|
226
294
|
- **Body types:** JSON only (form-encoded coming soon)
|
|
227
295
|
- **Query params:** Use in URL for now (dedicated field coming soon)
|
|
228
296
|
|
|
229
297
|
## Contributing
|
|
230
298
|
|
|
231
|
-
Contributions welcome!
|
|
299
|
+
Contributions are welcome! We appreciate bug reports, feature requests, and pull requests.
|
|
300
|
+
|
|
301
|
+
- **Bug reports & feature requests:** [Open an issue](https://github.com/agnicpay/n8n-X402-AgnicWallet/issues)
|
|
302
|
+
- **Pull requests:** See our [Contributing Guide](CONTRIBUTING.md)
|
|
303
|
+
- **Questions:** Contact us at support@agnicpay.xyz
|
|
232
304
|
|
|
233
305
|
## Support
|
|
234
306
|
|
|
@@ -248,15 +320,20 @@ MIT License
|
|
|
248
320
|
|
|
249
321
|
## Roadmap
|
|
250
322
|
|
|
251
|
-
###
|
|
323
|
+
### ✅ Completed
|
|
324
|
+
- Multi-chain support (Base EVM + Solana SVM)
|
|
325
|
+
- OAuth2 and API Key authentication
|
|
326
|
+
- Mainnet and testnet support for both chains
|
|
327
|
+
|
|
328
|
+
### v1.1.0 (Next)
|
|
252
329
|
- Query parameters support
|
|
253
330
|
- Form-encoded body
|
|
254
331
|
- Timeout configuration
|
|
255
332
|
|
|
256
|
-
### v1.2.0
|
|
257
|
-
-
|
|
258
|
-
- Retry logic
|
|
259
|
-
-
|
|
333
|
+
### v1.2.0 (Future)
|
|
334
|
+
- Additional EVM networks (Polygon, Arbitrum, etc.)
|
|
335
|
+
- Retry logic with exponential backoff
|
|
336
|
+
- Enhanced rate limiting
|
|
260
337
|
|
|
261
338
|
### v2.0.0
|
|
262
339
|
- File upload support
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-agnicwallet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "n8n community node for AgnicWallet - automated Web3 payments for X402 APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -9,17 +9,26 @@
|
|
|
9
9
|
"x402",
|
|
10
10
|
"web3",
|
|
11
11
|
"crypto",
|
|
12
|
-
"payments"
|
|
12
|
+
"payments",
|
|
13
|
+
"blockchain",
|
|
14
|
+
"usdc",
|
|
15
|
+
"automation",
|
|
16
|
+
"workflow",
|
|
17
|
+
"base",
|
|
18
|
+
"solana"
|
|
13
19
|
],
|
|
14
20
|
"license": "MIT",
|
|
15
|
-
"homepage": "https://
|
|
21
|
+
"homepage": "https://github.com/agnicpay/n8n-X402-AgnicWallet#readme",
|
|
16
22
|
"author": {
|
|
17
23
|
"name": "AgnicWallet",
|
|
18
24
|
"email": "support@agnicpay.xyz"
|
|
19
25
|
},
|
|
20
26
|
"repository": {
|
|
21
27
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/agnicpay/
|
|
28
|
+
"url": "https://github.com/agnicpay/n8n-X402-AgnicWallet.git"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/agnicpay/n8n-X402-AgnicWallet/issues"
|
|
23
32
|
},
|
|
24
33
|
"main": "index.js",
|
|
25
34
|
"scripts": {
|