n8n-nodes-agnicwallet 1.0.2 → 1.0.4

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 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
  [![NPM Version](https://img.shields.io/npm/v/n8n-nodes-agnicwallet)](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
4
4
  [![License](https://img.shields.io/npm/l/n8n-nodes-agnicwallet)](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
5
+ [![GitHub issues](https://img.shields.io/github/issues/agnicpay/n8n-X402-AgnicWallet)](https://github.com/agnicpay/n8n-X402-AgnicWallet/issues)
6
+ [![GitHub stars](https://img.shields.io/github/stars/agnicpay/n8n-X402-AgnicWallet)](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
- - ✅ **Base Sepolia support** - Currently supports USDC on Base Sepolia testnet
32
+ - ✅ **Multi-chain support** - Base (EVM) and Solana networks, both testnet and mainnet
29
33
 
30
34
  ## Installation
31
35
 
@@ -61,7 +65,7 @@ Not yet available. This node must first be approved as a community node by the N
61
65
 
62
66
  ### 1. Create AgnicWallet Account
63
67
 
64
- 1. Go to [AgnicWallet](https://agnicwallet-project.vercel.app)
68
+ 1. Go to [AgnicWallet](https://app.agnicpay.xyz)
65
69
  2. Sign up with email/social login
66
70
  3. Your embedded wallet is created automatically
67
71
 
@@ -77,7 +81,7 @@ Not yet available. This node must first be approved as a community node by the N
77
81
 
78
82
  #### Option B: API Key
79
83
 
80
- 1. Log in to [AgnicWallet](https://agnicwallet-project.vercel.app)
84
+ 1. Log in to [AgnicWallet](https://app.agnicpay.xyz)
81
85
  2. Go to **Settings** → **API Tokens**
82
86
  3. Generate a new token
83
87
  4. In N8N, select **API Key** authentication
@@ -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 by Privy, 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 by [Privy](https://privy.io), not 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"
@@ -185,7 +243,7 @@ JSON body for sending data to the API
185
243
 
186
244
  **Solutions:**
187
245
  1. Reconnect credentials in N8N
188
- 2. Check balance at [AgnicWallet](https://agnicwallet-project.vercel.app)
246
+ 2. Check balance at [AgnicWallet](https://app.agnicpay.xyz)
189
247
  3. Check backend status
190
248
 
191
249
  ### "Request failed after payment"
@@ -220,20 +278,34 @@ 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! Please contact us for more information.
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
 
235
307
  - **X402 Standard:** [x402.org](https://www.x402.org/)
236
- - **AgnicWallet:** [Dashboard](https://agnicwallet-project.vercel.app)
308
+ - **AgnicWallet:** [Dashboard](https://app.agnicpay.xyz)
237
309
 
238
310
  ## License
239
311
 
@@ -242,21 +314,26 @@ MIT License
242
314
  ## Links
243
315
 
244
316
  - [NPM Package](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
245
- - [AgnicWallet Dashboard](https://agnicwallet-project.vercel.app)
317
+ - [AgnicWallet Dashboard](https://app.agnicpay.xyz)
246
318
  - [X402 Protocol](https://www.x402.org/)
247
319
  - [N8N Documentation](https://docs.n8n.io)
248
320
 
249
321
  ## Roadmap
250
322
 
251
- ### v1.1.0
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
- - Multiple networks (Base mainnet, Polygon, etc.)
258
- - Retry logic
259
- - Rate limiting
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
@@ -5,7 +5,7 @@ class AgnicWalletApi {
5
5
  constructor() {
6
6
  this.name = 'agnicWalletApi';
7
7
  this.displayName = 'AgnicWallet API';
8
- this.documentationUrl = 'https://docs.agnicwallet.com/n8n';
8
+ this.documentationUrl = 'https://github.com/agnicpay/agnicwallet-project#setup';
9
9
  this.properties = [
10
10
  {
11
11
  displayName: 'User ID',
@@ -6,7 +6,7 @@ class AgnicWalletOAuth2Api {
6
6
  this.name = 'agnicWalletOAuth2Api';
7
7
  this.extends = ['oAuth2Api'];
8
8
  this.displayName = 'AgnicWallet OAuth2 API';
9
- this.documentationUrl = 'https://docs.agnicwallet.com/oauth';
9
+ this.documentationUrl = 'https://github.com/agnicpay/agnicwallet-project/blob/main/OAUTH_COMPLETE_GUIDE.md';
10
10
  this.properties = [
11
11
  {
12
12
  displayName: 'Grant Type',
@@ -18,7 +18,7 @@ class AgnicWalletOAuth2Api {
18
18
  displayName: 'Authorization URL',
19
19
  name: 'authUrl',
20
20
  type: 'string',
21
- default: 'https://agnicwallet-project.onrender.com/oauth/authorize',
21
+ default: 'https://api.agnicpay.xyz/oauth/authorize',
22
22
  required: true,
23
23
  description: 'The OAuth2 authorization endpoint',
24
24
  },
@@ -26,7 +26,7 @@ class AgnicWalletOAuth2Api {
26
26
  displayName: 'Access Token URL',
27
27
  name: 'accessTokenUrl',
28
28
  type: 'string',
29
- default: 'https://agnicwallet-project.onrender.com/oauth/token',
29
+ default: 'https://api.agnicpay.xyz/oauth/token',
30
30
  required: true,
31
31
  description: 'The OAuth2 token endpoint',
32
32
  },
@@ -148,7 +148,7 @@ class X402HttpRequest {
148
148
  let authHeader;
149
149
  // Use AgnicWallet backend API endpoint (production cloud by default)
150
150
  // Can override with AGNICWALLET_API_URL environment variable for local development
151
- apiBaseUrl = process.env.AGNICWALLET_API_URL || 'https://agnicwallet-project.onrender.com';
151
+ apiBaseUrl = process.env.AGNICWALLET_API_URL || 'https://api.agnicpay.xyz';
152
152
  if (authentication === 'oAuth2') {
153
153
  // OAuth2 authentication
154
154
  const credentials = await this.getCredentials('agnicWalletOAuth2Api', itemIndex);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-agnicwallet",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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://agnicwallet.com",
21
+ "homepage": "https://github.com/agnicpay/n8n-X402-AgnicWallet#readme",
16
22
  "author": {
17
23
  "name": "AgnicWallet",
18
- "email": "support@agnicwallet.com"
24
+ "email": "support@agnicpay.xyz"
19
25
  },
20
26
  "repository": {
21
27
  "type": "git",
22
- "url": "https://github.com/agnicpay/agnicwallet-project.git"
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": {
@@ -28,7 +37,7 @@
28
37
  "format": "prettier nodes credentials --write",
29
38
  "lint": "tslint -p tsconfig.json -c tslint.json",
30
39
  "lintfix": "tslint --fix -p tsconfig.json -c tslint.json",
31
- "prepublishOnly": "npm run build && npm run lint -c .eslintrc.prepublish.js nodes credentials package.json",
40
+ "prepublishOnly": "npm run build",
32
41
  "test": "jest"
33
42
  },
34
43
  "files": [