n8n-nodes-agnicwallet 1.0.1 → 1.0.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# n8n-nodes-agnicwallet
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
|
|
4
|
-
[](https://
|
|
4
|
+
[](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
|
|
5
5
|
|
|
6
6
|
N8N community node for AgnicWallet - automated Web3 payments for X402-enabled APIs.
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ Make HTTP requests to X402-enabled APIs with automatic blockchain payment handli
|
|
|
13
13
|
|
|
14
14
|
## What is AgnicWallet?
|
|
15
15
|
|
|
16
|
-
AgnicWallet is a non-custodial Web3 wallet service
|
|
16
|
+
AgnicWallet is a non-custodial Web3 wallet service that handles blockchain payments automatically. Connect once, then all X402 payments happen seamlessly in the background.
|
|
17
17
|
|
|
18
18
|
## Features
|
|
19
19
|
|
|
@@ -61,8 +61,8 @@ Not yet available. This node must first be approved as a community node by the N
|
|
|
61
61
|
|
|
62
62
|
### 1. Create AgnicWallet Account
|
|
63
63
|
|
|
64
|
-
1. Go to [AgnicWallet](https://
|
|
65
|
-
2. Sign up with email/social login
|
|
64
|
+
1. Go to [AgnicWallet](https://app.agnicpay.xyz)
|
|
65
|
+
2. Sign up with email/social login
|
|
66
66
|
3. Your embedded wallet is created automatically
|
|
67
67
|
|
|
68
68
|
### 2. Connect to N8N
|
|
@@ -77,7 +77,7 @@ Not yet available. This node must first be approved as a community node by the N
|
|
|
77
77
|
|
|
78
78
|
#### Option B: API Key
|
|
79
79
|
|
|
80
|
-
1. Log in to [AgnicWallet](https://
|
|
80
|
+
1. Log in to [AgnicWallet](https://app.agnicpay.xyz)
|
|
81
81
|
2. Go to **Settings** → **API Tokens**
|
|
82
82
|
3. Generate a new token
|
|
83
83
|
4. In N8N, select **API Key** authentication
|
|
@@ -168,7 +168,7 @@ JSON body for sending data to the API
|
|
|
168
168
|
|
|
169
169
|
## Security
|
|
170
170
|
|
|
171
|
-
- **Non-custodial** - Your keys, your crypto
|
|
171
|
+
- **Non-custodial** - Your keys, your crypto
|
|
172
172
|
- **OAuth2** - Industry-standard authentication
|
|
173
173
|
- **Spending limits** - Monthly caps prevent overspending
|
|
174
174
|
- **Payment review** - See all payments in AgnicWallet dashboard
|
|
@@ -185,7 +185,7 @@ JSON body for sending data to the API
|
|
|
185
185
|
|
|
186
186
|
**Solutions:**
|
|
187
187
|
1. Reconnect credentials in N8N
|
|
188
|
-
2. Check balance at [AgnicWallet](https://
|
|
188
|
+
2. Check balance at [AgnicWallet](https://app.agnicpay.xyz)
|
|
189
189
|
3. Check backend status
|
|
190
190
|
|
|
191
191
|
### "Request failed after payment"
|
|
@@ -206,7 +206,7 @@ The body field only appears when Method is **POST** or **PUT**. For GET requests
|
|
|
206
206
|
|
|
207
207
|
## Examples & Workflows
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
For example workflows and advanced use cases, check the documentation included with this package.
|
|
210
210
|
|
|
211
211
|
## API Reference
|
|
212
212
|
|
|
@@ -226,27 +226,23 @@ See [example workflows](https://github.com/agnicpay/agnicwallet-project/tree/mai
|
|
|
226
226
|
- **Body types:** JSON only (form-encoded coming soon)
|
|
227
227
|
- **Query params:** Use in URL for now (dedicated field coming soon)
|
|
228
228
|
|
|
229
|
-
See [ENHANCEMENT_PLAN.md](https://github.com/agnicpay/agnicwallet-project/blob/main/n8n-nodes-agnicwallet/nodes/X402HttpRequest/ENHANCEMENT_PLAN.md) for upcoming features.
|
|
230
|
-
|
|
231
229
|
## Contributing
|
|
232
230
|
|
|
233
|
-
Contributions welcome! Please
|
|
231
|
+
Contributions welcome! Please contact us for more information.
|
|
234
232
|
|
|
235
233
|
## Support
|
|
236
234
|
|
|
237
|
-
- **Issues:** [GitHub Issues](https://github.com/agnicpay/agnicwallet-project/issues)
|
|
238
|
-
- **Docs:** [Full Documentation](https://github.com/agnicpay/agnicwallet-project)
|
|
239
235
|
- **X402 Standard:** [x402.org](https://www.x402.org/)
|
|
236
|
+
- **AgnicWallet:** [Dashboard](https://app.agnicpay.xyz)
|
|
240
237
|
|
|
241
238
|
## License
|
|
242
239
|
|
|
243
|
-
MIT
|
|
240
|
+
MIT License
|
|
244
241
|
|
|
245
242
|
## Links
|
|
246
243
|
|
|
247
244
|
- [NPM Package](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
|
|
248
|
-
- [
|
|
249
|
-
- [AgnicWallet Dashboard](https://agnicwallet-project.vercel.app)
|
|
245
|
+
- [AgnicWallet Dashboard](https://app.agnicpay.xyz)
|
|
250
246
|
- [X402 Protocol](https://www.x402.org/)
|
|
251
247
|
- [N8N Documentation](https://docs.n8n.io)
|
|
252
248
|
|
|
@@ -271,7 +267,6 @@ MIT - See [LICENSE](https://github.com/agnicpay/agnicwallet-project/blob/main/LI
|
|
|
271
267
|
|
|
272
268
|
Built with:
|
|
273
269
|
- [N8N](https://n8n.io) - Workflow automation
|
|
274
|
-
- [Privy](https://privy.io) - Embedded wallets
|
|
275
270
|
- [X402 Protocol](https://www.x402.org/) - HTTP payment standard
|
|
276
271
|
- [Base](https://base.org) - L2 blockchain
|
|
277
272
|
|
|
@@ -5,7 +5,7 @@ class AgnicWalletApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'agnicWalletApi';
|
|
7
7
|
this.displayName = 'AgnicWallet API';
|
|
8
|
-
this.documentationUrl = 'https://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "n8n community node for AgnicWallet - automated Web3 payments for X402 APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"payments"
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"homepage": "https://
|
|
15
|
+
"homepage": "https://app.agnicpay.xyz",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "AgnicWallet",
|
|
18
|
-
"email": "support@
|
|
18
|
+
"email": "support@agnicpay.xyz"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"format": "prettier nodes credentials --write",
|
|
29
29
|
"lint": "tslint -p tsconfig.json -c tslint.json",
|
|
30
30
|
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json",
|
|
31
|
-
"prepublishOnly": "npm run build
|
|
31
|
+
"prepublishOnly": "npm run build",
|
|
32
32
|
"test": "jest"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|