n8n-nodes-agnicwallet 1.0.2 → 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
|
@@ -61,7 +61,7 @@ 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://
|
|
64
|
+
1. Go to [AgnicWallet](https://app.agnicpay.xyz)
|
|
65
65
|
2. Sign up with email/social login
|
|
66
66
|
3. Your embedded wallet is created automatically
|
|
67
67
|
|
|
@@ -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
|
|
@@ -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"
|
|
@@ -233,7 +233,7 @@ Contributions welcome! Please contact us for more information.
|
|
|
233
233
|
## Support
|
|
234
234
|
|
|
235
235
|
- **X402 Standard:** [x402.org](https://www.x402.org/)
|
|
236
|
-
- **AgnicWallet:** [Dashboard](https://
|
|
236
|
+
- **AgnicWallet:** [Dashboard](https://app.agnicpay.xyz)
|
|
237
237
|
|
|
238
238
|
## License
|
|
239
239
|
|
|
@@ -242,7 +242,7 @@ MIT License
|
|
|
242
242
|
## Links
|
|
243
243
|
|
|
244
244
|
- [NPM Package](https://www.npmjs.com/package/n8n-nodes-agnicwallet)
|
|
245
|
-
- [AgnicWallet Dashboard](https://
|
|
245
|
+
- [AgnicWallet Dashboard](https://app.agnicpay.xyz)
|
|
246
246
|
- [X402 Protocol](https://www.x402.org/)
|
|
247
247
|
- [N8N Documentation](https://docs.n8n.io)
|
|
248
248
|
|
|
@@ -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": [
|