@n8n-dev/n8n-nodes-cryptal 1.0.0

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.
Files changed (27) hide show
  1. package/README.md +97 -0
  2. package/dist/credentials/CryptalApi.credentials.d.ts +10 -0
  3. package/dist/credentials/CryptalApi.credentials.js +56 -0
  4. package/dist/credentials/CryptalApi.credentials.js.map +1 -0
  5. package/dist/icons/cryptal.dark.svg +4 -0
  6. package/dist/icons/cryptal.svg +4 -0
  7. package/dist/nodes/Cryptal/Cryptal.node.d.ts +4 -0
  8. package/dist/nodes/Cryptal/Cryptal.node.js +68 -0
  9. package/dist/nodes/Cryptal/Cryptal.node.js.map +1 -0
  10. package/dist/nodes/Cryptal/Cryptal.node.json +20 -0
  11. package/dist/nodes/Cryptal/cryptal.dark.svg +4 -0
  12. package/dist/nodes/Cryptal/cryptal.svg +4 -0
  13. package/dist/nodes/Cryptal/resources/account-methods/index.d.ts +2 -0
  14. package/dist/nodes/Cryptal/resources/account-methods/index.js +279 -0
  15. package/dist/nodes/Cryptal/resources/account-methods/index.js.map +1 -0
  16. package/dist/nodes/Cryptal/resources/index.d.ts +3 -0
  17. package/dist/nodes/Cryptal/resources/index.js +10 -0
  18. package/dist/nodes/Cryptal/resources/index.js.map +1 -0
  19. package/dist/nodes/Cryptal/resources/public-methods/index.d.ts +2 -0
  20. package/dist/nodes/Cryptal/resources/public-methods/index.js +419 -0
  21. package/dist/nodes/Cryptal/resources/public-methods/index.js.map +1 -0
  22. package/dist/nodes/Cryptal/resources/trading-methods/index.d.ts +2 -0
  23. package/dist/nodes/Cryptal/resources/trading-methods/index.js +659 -0
  24. package/dist/nodes/Cryptal/resources/trading-methods/index.js.map +1 -0
  25. package/dist/package.json +62 -0
  26. package/dist/tsconfig.tsbuildinfo +1 -0
  27. package/package.json +62 -0
package/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # @n8n-dev/n8n-nodes-cryptal
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@n8n-dev/n8n-nodes-cryptal.svg)](https://www.npmjs.com/package/@n8n-dev/n8n-nodes-cryptal)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ ---
7
+
8
+ **Stop writing cryptal API integrations by hand.**
9
+
10
+ Every time you connect n8n to cryptal, you waste hours mapping endpoints, defining parameters, and debugging schemas. You copy-paste from docs, fix edge cases, and pray nothing breaks.
11
+
12
+ **What if connecting n8n to cryptal took 5 minutes, not half a day?**
13
+
14
+ This node gives you **4+ resources** out of the box: **Public Methods**, **Trading Methods**, **Account Methods**, **Overview**: with full CRUD operations, typed parameters, and zero manual configuration.
15
+
16
+ ---
17
+
18
+ ## What You Get
19
+
20
+ - **Zero boilerplate**: Resources, operations, and fields are pre-configured and ready to use
21
+ - **Full CRUD**: Create, read, update, and delete support where the API allows it
22
+ - **Typed parameters**: No more guessing field types
23
+ - **Built-in auth**: API key authentication, ready to go
24
+ - **Declarative**: Native n8n performance, no custom execute() overhead
25
+
26
+ ---
27
+
28
+ ## Install
29
+
30
+ ```bash
31
+ npm install @n8n-dev/n8n-nodes-cryptal
32
+ ```
33
+
34
+ **Or in n8n:**
35
+ 1. **Settings → Community Nodes → Install**
36
+ 2. Search: `@n8n-dev/n8n-nodes-cryptal`
37
+ 3. Click **Install**
38
+
39
+ ---
40
+
41
+ ## Quick Start
42
+
43
+ 1. Install the node (above)
44
+ 2. Add credentials: **cryptal API** → paste your API key
45
+ 3. Drag the **cryptal** node into your workflow
46
+ 4. Pick a resource → pick an operation → done.
47
+
48
+ That's it. No configuration files. No code. It just works.
49
+
50
+ ---
51
+
52
+ ## Resources
53
+
54
+ | Resource | Operations |
55
+ |----------|------------|
56
+ | Public Methods | GET Get Order book, GET Get All info about markets summery, GET Get Currencies, GET Get Pairs, GET Get Ticker Data, GET Get Trades |
57
+ | Trading Methods | GET Get Open Orders, GET Get Order History, GET Get Trade History, POST New Order (TRADE), DELETE Cancel Order (TRADE) |
58
+ | Account Methods | GET Get Account Balances, POST Withdraw crypto |
59
+
60
+ ---
61
+
62
+ ## Why This Node?
63
+
64
+ **Without this node:**
65
+ - Hours of manual API integration
66
+ - Copy-pasting from cryptal docs
67
+ - Debugging auth, pagination, error handling
68
+ - Maintaining your own client code
69
+
70
+ **With this node:**
71
+ - Install → configure → use. 5 minutes.
72
+ - Auto-generated from the official cryptal OpenAPI spec
73
+ - Always up to date when the API changes
74
+ - Native n8n performance
75
+
76
+ ---
77
+
78
+ ## Auto-Generated
79
+ This node was auto-generated from the official **cryptal** OpenAPI specification using
80
+ [@n8n-dev/n8n-openapi-node-ultimate](https://github.com/kelvinzer0/n8n-openapi-node-ultimate),
81
+ then validated against the live API so you get accurate types and real parameters, not guesswork.
82
+
83
+ When the cryptal API updates, this node updates too.
84
+
85
+ ---
86
+
87
+ ## Support This Project
88
+
89
+ If this node saved you hours of work, consider supporting continued development, new APIs, better error handling, and faster updates.
90
+
91
+ [![Keep It Moving.](https://crypto-donate.insidexofficial.workers.dev/eyJ0aXRsZSI6IktlZXAgSXQgTW92aW5nIiwiZGVzYyI6Ik9uZSBkZXZlbG9wZXIgYnVpbHQgYSB0b29sIHRoYXQgYXV0by1nZW5lcmF0ZXNcbm44biBub2RlcyBmcm9tIGFueSBPcGVuQVBJIHNwZWMuXG5cbllvdXIgZG9uYXRpb24gZnVuZHMgbmV3IGZlYXR1cmVzLCBtb3JlIEFQSSBzdXBwb3J0LFxuYW5kIGJldHRlciB0b29saW5nIGZvciBldmVyeSBkZXZlbG9wZXIgYWZ0ZXIgeW91LiIsInRhcmdldCI6NTAwMCwiYWRkcmVzc2VzIjp7ImV0aGVyZXVtIjoiMHhmMDU1NWQ0MGRiRkI0ZTNCZjA3MDQ0MjgyQjc4RjJmRTFmNTFFZjcyIiwic29sYW5hIjoiNlpEVk5BYmpZZExEcXo4cGt3VUNHYllaNVV3QlFranB0QzU1Wk5vTFcybVUifSwiZGlzY29yZCI6Imh0dHBzOi8vZGlzY29yZC5nZy9wdERaOGU0aDkzIn0/badge)](https://n8n-code.github.io/membership/#/eyJ0aXRsZSI6IktlZXAgSXQgTW92aW5nIiwiZGVzYyI6Ik9uZSBkZXZlbG9wZXIgYnVpbHQgYSB0b29sIHRoYXQgYXV0by1nZW5lcmF0ZXNcbm44biBub2RlcyBmcm9tIGFueSBPcGVuQVBJIHNwZWMuXG5cbllvdXIgZG9uYXRpb24gZnVuZHMgbmV3IGZlYXR1cmVzLCBtb3JlIEFQSSBzdXBwb3J0LFxuYW5kIGJldHRlciB0b29saW5nIGZvciBldmVyeSBkZXZlbG9wZXIgYWZ0ZXIgeW91LiIsInRhcmdldCI6NTAwMCwiYWRkcmVzc2VzIjp7ImV0aGVyZXVtIjoiMHhmMDU1NWQ0MGRiRkI0ZTNCZjA3MDQ0MjgyQjc4RjJmRTFmNTFFZjcyIiwic29sYW5hIjoiNlpEVk5BYmpZZExEcXo4cGt3VUNHYllaNVV3QlFranB0QzU1Wk5vTFcybVUifSwiZGlzY29yZCI6Imh0dHBzOi8vZGlzY29yZC5nZy9wdERaOGU0aDkzIn0)
92
+
93
+ ---
94
+
95
+ ## License
96
+
97
+ MIT © [kelvinzer0](https://github.com/n8n-code)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class CryptalApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptalApi = void 0;
4
+ class CryptalApi {
5
+ constructor() {
6
+ this.name = 'N8nDevCryptalApi';
7
+ this.displayName = 'cryptal API';
8
+ this.icon = { light: 'file:../nodes/Cryptal/cryptal.svg', dark: 'file:../nodes/Cryptal/cryptal.dark.svg' };
9
+ this.documentationUrl = '';
10
+ this.properties = [
11
+ {
12
+ displayName: 'Base URL',
13
+ name: 'url',
14
+ type: 'string',
15
+ default: 'https://exchange.cryptal.com/exchange',
16
+ required: true,
17
+ placeholder: 'https://exchange.cryptal.com/exchange',
18
+ description: 'The base URL of your cryptal API server',
19
+ },
20
+ {
21
+ displayName: 'API Key',
22
+ name: 'apiKey',
23
+ type: 'string',
24
+ typeOptions: { password: true },
25
+ default: '',
26
+ required: true,
27
+ },
28
+ {
29
+ "displayName": "❤️ Keep It Moving: One developer built a tool that auto-generates n8n nodes from any OpenAPI spec. Your donation funds new features, more API support, and better tooling for every developer after you. <a href=\"https://n8n-code.github.io/membership/#/eyJ0aXRsZSI6IktlZXAgSXQgTW92aW5nIiwiZGVzYyI6Ik9uZSBkZXZlbG9wZXIgYnVpbHQgYSB0b29sIHRoYXQgYXV0by1nZW5lcmF0ZXNcbm44biBub2RlcyBmcm9tIGFueSBPcGVuQVBJIHNwZWMuXG5cbllvdXIgZG9uYXRpb24gZnVuZHMgbmV3IGZlYXR1cmVzLCBtb3JlIEFQSSBzdXBwb3J0LFxuYW5kIGJldHRlciB0b29saW5nIGZvciBldmVyeSBkZXZlbG9wZXIgYWZ0ZXIgeW91LiIsInRhcmdldCI6NTAwMCwiYWRkcmVzc2VzIjp7ImV0aGVyZXVtIjoiMHhmMDU1NWQ0MGRiRkI0ZTNCZjA3MDQ0MjgyQjc4RjJmRTFmNTFFZjcyIiwic29sYW5hIjoiNlpEVk5BYmpZZExEcXo4cGt3VUNHYllaNVV3QlFranB0QzU1Wk5vTFcybVUifSwiZGlzY29yZCI6Imh0dHBzOi8vZGlzY29yZC5nZy9wdERaOGU0aDkzIn0\" target=\"_blank\">☕ Buy me a coffee</a>",
30
+ "name": "n8nCodeNotice",
31
+ "type": "notice",
32
+ "default": "",
33
+ "displayOptions": {
34
+ "show": {}
35
+ }
36
+ }
37
+ ];
38
+ this.authenticate = {
39
+ type: 'generic',
40
+ properties: {
41
+ headers: {
42
+ Authorization: '=Bearer {{$credentials.apiKey}}',
43
+ },
44
+ },
45
+ };
46
+ this.test = {
47
+ request: {
48
+ baseURL: '={{$credentials.url}}',
49
+ url: '/',
50
+ method: 'GET',
51
+ },
52
+ };
53
+ }
54
+ }
55
+ exports.CryptalApi = CryptalApi;
56
+ //# sourceMappingURL=CryptalApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptalApi.credentials.js","sourceRoot":"","sources":["../../credentials/CryptalApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,kBAAkB,CAAC;QAE1B,gBAAW,GAAG,aAAa,CAAC;QAE5B,SAAI,GAAS,EAAE,KAAK,EAAE,mCAAmC,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC;QAE5G,qBAAgB,GAAG,EAAE,CAAC;QAEtB,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,uCAAuC;gBACpD,WAAW,EAAE,yCAAyC;aACtD;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,aAAa,EAAE,k0BAAk0B;gBACj1B,MAAM,EAAE,eAAe;gBACvB,MAAM,EAAE,QAAQ;gBAChB,SAAS,EAAE,EAAE;gBACb,gBAAgB,EAAE;oBACjB,MAAM,EAAE,EAAE;iBACV;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,GAAG;gBACR,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAtDD,gCAsDC"}
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="none">
2
+ <rect width="60" height="60" rx="8" fill="#2D2D2D"/>
3
+ <text x="30" y="36" text-anchor="middle" fill="#FF6D5A" font-family="Arial,sans-serif" font-size="24" font-weight="bold">C</text>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="none">
2
+ <rect width="60" height="60" rx="8" fill="#FF6D5A"/>
3
+ <text x="30" y="36" text-anchor="middle" fill="white" font-family="Arial,sans-serif" font-size="24" font-weight="bold">C</text>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Cryptal implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Cryptal = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const public_methods_1 = require("./resources/public-methods");
6
+ const trading_methods_1 = require("./resources/trading-methods");
7
+ const account_methods_1 = require("./resources/account-methods");
8
+ class Cryptal {
9
+ constructor() {
10
+ this.description = {
11
+ displayName: 'cryptal',
12
+ name: 'N8nDevCryptal',
13
+ icon: { light: 'file:./cryptal.svg', dark: 'file:./cryptal.dark.svg' },
14
+ group: ['input'],
15
+ version: 1,
16
+ subtitle: '={{\$parameter["operation"] + ": " + \$parameter["resource"]}}',
17
+ description: 'Licensed cryptocurrency exchange and wallet supporting instant buy sell with Georgian Lari and multiple payment methods',
18
+ defaults: { name: 'cryptal' },
19
+ usableAsTool: true,
20
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
21
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
22
+ credentials: [
23
+ {
24
+ name: 'N8nDevCryptalApi',
25
+ required: true,
26
+ },
27
+ ],
28
+ requestDefaults: {
29
+ baseURL: '={{\$credentials.url}}',
30
+ headers: {
31
+ Accept: 'application/json',
32
+ 'Content-Type': 'application/json',
33
+ },
34
+ },
35
+ properties: [
36
+ {
37
+ "displayName": "Resource",
38
+ "name": "resource",
39
+ "type": "options",
40
+ "noDataExpression": true,
41
+ "options": [
42
+ {
43
+ "name": "Public Methods",
44
+ "value": "Public Methods",
45
+ "description": ""
46
+ },
47
+ {
48
+ "name": "Trading Methods",
49
+ "value": "Trading Methods",
50
+ "description": ""
51
+ },
52
+ {
53
+ "name": "Account Methods",
54
+ "value": "Account Methods",
55
+ "description": ""
56
+ }
57
+ ],
58
+ "default": ""
59
+ },
60
+ ...public_methods_1.publicMethodsDescription,
61
+ ...trading_methods_1.tradingMethodsDescription,
62
+ ...account_methods_1.accountMethodsDescription
63
+ ],
64
+ };
65
+ }
66
+ }
67
+ exports.Cryptal = Cryptal;
68
+ //# sourceMappingURL=Cryptal.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cryptal.node.js","sourceRoot":"","sources":["../../../nodes/Cryptal/Cryptal.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,+DAAsE;AACtE,iEAAwE;AACxE,iEAAwE;AAExE,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,yBAAyB,EAAE;YACtE,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,gEAAgE;YAC1E,WAAW,EAAE,yHAAyH;YACtI,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7B,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,kBAAkB;oBACxB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,wBAAwB;gBACjC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACZ;oBACC,aAAa,EAAE,UAAU;oBACzB,MAAM,EAAE,UAAU;oBAClB,MAAM,EAAE,SAAS;oBACjB,kBAAkB,EAAE,IAAI;oBACxB,SAAS,EAAE;wBACV;4BACC,MAAM,EAAE,gBAAgB;4BACxB,OAAO,EAAE,gBAAgB;4BACzB,aAAa,EAAE,EAAE;yBACjB;wBACD;4BACC,MAAM,EAAE,iBAAiB;4BACzB,OAAO,EAAE,iBAAiB;4BAC1B,aAAa,EAAE,EAAE;yBACjB;wBACD;4BACC,MAAM,EAAE,iBAAiB;4BACzB,OAAO,EAAE,iBAAiB;4BAC1B,aAAa,EAAE,EAAE;yBACjB;qBACD;oBACD,SAAS,EAAE,EAAE;iBACb;gBACD,GAAG,yCAAwB;gBAC3B,GAAG,2CAAyB;gBAC5B,GAAG,2CAAyB;aAC3B;SACD,CAAC;IACH,CAAC;CAAA;AAxDD,0BAwDC"}
@@ -0,0 +1,20 @@
1
+ {
2
+ "node": "N8nDevCryptal",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Development"
7
+ ],
8
+ "resources": {
9
+ "primaryDocumentation": [
10
+ {
11
+ "url": "https://github.com/n8n-code/n8n-nodes-cryptal"
12
+ }
13
+ ],
14
+ "credentialDocumentation": [
15
+ {
16
+ "url": "https://github.com/n8n-code/n8n-nodes-cryptal?tab=readme-ov-file#credentials"
17
+ }
18
+ ]
19
+ }
20
+ }
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="none">
2
+ <rect width="60" height="60" rx="8" fill="#2D2D2D"/>
3
+ <text x="30" y="36" text-anchor="middle" fill="#FF6D5A" font-family="Arial,sans-serif" font-size="24" font-weight="bold">C</text>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="none">
2
+ <rect width="60" height="60" rx="8" fill="#FF6D5A"/>
3
+ <text x="30" y="36" text-anchor="middle" fill="white" font-family="Arial,sans-serif" font-size="24" font-weight="bold">C</text>
4
+ </svg>
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const accountMethodsDescription: INodeProperties[];
@@ -0,0 +1,279 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accountMethodsDescription = void 0;
4
+ exports.accountMethodsDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Account Methods"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Balances",
20
+ "value": "Get Balances",
21
+ "action": "Get Account Balances",
22
+ "description": "Get Account Balances",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/api/v1/private/account/balance"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Withdraw Crypto",
32
+ "value": "Withdraw Crypto",
33
+ "action": "Withdraw crypto",
34
+ "description": "Withdraw crypto",
35
+ "routing": {
36
+ "request": {
37
+ "method": "POST",
38
+ "url": "=/api/v1/private/account/withdraw/crypto"
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "default": ""
44
+ },
45
+ {
46
+ "displayName": "GET /api/v1/private/account/balance",
47
+ "name": "operation",
48
+ "type": "notice",
49
+ "typeOptions": {
50
+ "theme": "info"
51
+ },
52
+ "default": "",
53
+ "displayOptions": {
54
+ "show": {
55
+ "resource": [
56
+ "Account Methods"
57
+ ],
58
+ "operation": [
59
+ "Get Balances"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "displayName": "POST /api/v1/private/account/withdraw/crypto",
66
+ "name": "operation",
67
+ "type": "notice",
68
+ "typeOptions": {
69
+ "theme": "info"
70
+ },
71
+ "default": "",
72
+ "displayOptions": {
73
+ "show": {
74
+ "resource": [
75
+ "Account Methods"
76
+ ],
77
+ "operation": [
78
+ "Withdraw Crypto"
79
+ ]
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "displayName": "OTP",
85
+ "name": "OTP",
86
+ "required": true,
87
+ "default": "",
88
+ "type": "string",
89
+ "routing": {
90
+ "request": {
91
+ "headers": {
92
+ "OTP": "={{ $value }}"
93
+ }
94
+ }
95
+ },
96
+ "displayOptions": {
97
+ "show": {
98
+ "resource": [
99
+ "Account Methods"
100
+ ],
101
+ "operation": [
102
+ "Withdraw Crypto"
103
+ ]
104
+ }
105
+ }
106
+ },
107
+ {
108
+ "displayName": "Currency",
109
+ "name": "currency",
110
+ "type": "string",
111
+ "default": "",
112
+ "description": "Which coin to operate with",
113
+ "routing": {
114
+ "send": {
115
+ "property": "currency",
116
+ "propertyInDotNotation": false,
117
+ "type": "body",
118
+ "value": "={{ $value }}"
119
+ }
120
+ },
121
+ "displayOptions": {
122
+ "show": {
123
+ "resource": [
124
+ "Account Methods"
125
+ ],
126
+ "operation": [
127
+ "Withdraw Crypto"
128
+ ]
129
+ }
130
+ }
131
+ },
132
+ {
133
+ "displayName": "Amount",
134
+ "name": "amount",
135
+ "type": "number",
136
+ "default": 0,
137
+ "routing": {
138
+ "send": {
139
+ "property": "amount",
140
+ "propertyInDotNotation": false,
141
+ "type": "body",
142
+ "value": "={{ $value }}"
143
+ }
144
+ },
145
+ "displayOptions": {
146
+ "show": {
147
+ "resource": [
148
+ "Account Methods"
149
+ ],
150
+ "operation": [
151
+ "Withdraw Crypto"
152
+ ]
153
+ }
154
+ }
155
+ },
156
+ {
157
+ "displayName": "Address",
158
+ "name": "address",
159
+ "type": "string",
160
+ "default": "",
161
+ "description": "A place where cryptocurrency can be sent to and from, in the form of a string of letters and numbers.",
162
+ "routing": {
163
+ "send": {
164
+ "property": "address",
165
+ "propertyInDotNotation": false,
166
+ "type": "body",
167
+ "value": "={{ $value }}"
168
+ }
169
+ },
170
+ "displayOptions": {
171
+ "show": {
172
+ "resource": [
173
+ "Account Methods"
174
+ ],
175
+ "operation": [
176
+ "Withdraw Crypto"
177
+ ]
178
+ }
179
+ }
180
+ },
181
+ {
182
+ "displayName": "Address Tag",
183
+ "name": "addressTag",
184
+ "type": "string",
185
+ "default": "",
186
+ "description": "A Destination Tag/Memo is an additional address feature necessary for identifying a transaction recipient beyond a wallet address.",
187
+ "routing": {
188
+ "send": {
189
+ "property": "addressTag",
190
+ "propertyInDotNotation": false,
191
+ "type": "body",
192
+ "value": "={{ $value }}"
193
+ }
194
+ },
195
+ "displayOptions": {
196
+ "show": {
197
+ "resource": [
198
+ "Account Methods"
199
+ ],
200
+ "operation": [
201
+ "Withdraw Crypto"
202
+ ]
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "displayName": "Note",
208
+ "name": "note",
209
+ "type": "string",
210
+ "default": "",
211
+ "routing": {
212
+ "send": {
213
+ "property": "note",
214
+ "propertyInDotNotation": false,
215
+ "type": "body",
216
+ "value": "={{ $value }}"
217
+ }
218
+ },
219
+ "displayOptions": {
220
+ "show": {
221
+ "resource": [
222
+ "Account Methods"
223
+ ],
224
+ "operation": [
225
+ "Withdraw Crypto"
226
+ ]
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "displayName": "Include Fee",
232
+ "name": "includeFee",
233
+ "type": "boolean",
234
+ "default": true,
235
+ "routing": {
236
+ "send": {
237
+ "property": "includeFee",
238
+ "propertyInDotNotation": false,
239
+ "type": "body",
240
+ "value": "={{ $value }}"
241
+ }
242
+ },
243
+ "displayOptions": {
244
+ "show": {
245
+ "resource": [
246
+ "Account Methods"
247
+ ],
248
+ "operation": [
249
+ "Withdraw Crypto"
250
+ ]
251
+ }
252
+ }
253
+ },
254
+ {
255
+ "displayName": "Force Blockchain",
256
+ "name": "forceBlockchain",
257
+ "type": "boolean",
258
+ "default": true,
259
+ "routing": {
260
+ "send": {
261
+ "property": "forceBlockchain",
262
+ "propertyInDotNotation": false,
263
+ "type": "body",
264
+ "value": "={{ $value }}"
265
+ }
266
+ },
267
+ "displayOptions": {
268
+ "show": {
269
+ "resource": [
270
+ "Account Methods"
271
+ ],
272
+ "operation": [
273
+ "Withdraw Crypto"
274
+ ]
275
+ }
276
+ }
277
+ },
278
+ ];
279
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Cryptal/resources/account-methods/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC1D;QACC,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,iBAAiB;iBACjB;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,cAAc;gBACvB,QAAQ,EAAE,sBAAsB;gBAChC,aAAa,EAAE,sBAAsB;gBACrC,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,kCAAkC;qBACzC;iBACD;aACD;YACD;gBACC,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,iBAAiB;gBAC3B,aAAa,EAAE,iBAAiB;gBAChC,SAAS,E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ACP,UAAU,EAAE;oBACX,iBAAiB;iBACjB;gBACD,WAAW,EAAE;oBACZ,iBAAiB;iBACjB;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { publicMethodsDescription } from './public-methods';
2
+ export { tradingMethodsDescription } from './trading-methods';
3
+ export { accountMethodsDescription } from './account-methods';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accountMethodsDescription = exports.tradingMethodsDescription = exports.publicMethodsDescription = void 0;
4
+ var public_methods_1 = require("./public-methods");
5
+ Object.defineProperty(exports, "publicMethodsDescription", { enumerable: true, get: function () { return public_methods_1.publicMethodsDescription; } });
6
+ var trading_methods_1 = require("./trading-methods");
7
+ Object.defineProperty(exports, "tradingMethodsDescription", { enumerable: true, get: function () { return trading_methods_1.tradingMethodsDescription; } });
8
+ var account_methods_1 = require("./account-methods");
9
+ Object.defineProperty(exports, "accountMethodsDescription", { enumerable: true, get: function () { return account_methods_1.accountMethodsDescription; } });
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Cryptal/resources/index.ts"],"names":[],"mappings":";;;AAAA,mDAA4D;AAAnD,0HAAA,wBAAwB,OAAA;AACjC,qDAA8D;AAArD,4HAAA,yBAAyB,OAAA;AAClC,qDAA8D;AAArD,4HAAA,yBAAyB,OAAA"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const publicMethodsDescription: INodeProperties[];