@bevanamit/n8n-nodes-blockfrost 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.
- package/LICENSE +160 -0
- package/README.md +182 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Blockfrost/Blockfrost.credentials.d.ts +28 -0
- package/dist/nodes/Blockfrost/Blockfrost.credentials.d.ts.map +1 -0
- package/dist/nodes/Blockfrost/Blockfrost.credentials.js +36 -0
- package/dist/nodes/Blockfrost/Blockfrost.credentials.js.map +1 -0
- package/dist/nodes/Blockfrost/Blockfrost.node.d.ts +7 -0
- package/dist/nodes/Blockfrost/Blockfrost.node.d.ts.map +1 -0
- package/dist/nodes/Blockfrost/Blockfrost.node.js +1882 -0
- package/dist/nodes/Blockfrost/Blockfrost.node.js.map +1 -0
- package/dist/nodes/Blockfrost/GenericFunctions.d.ts +3 -0
- package/dist/nodes/Blockfrost/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Blockfrost/GenericFunctions.js +17 -0
- package/dist/nodes/Blockfrost/GenericFunctions.js.map +1 -0
- package/dist/nodes/Blockfrost/blockfrost-credential.svg +5 -0
- package/dist/nodes/Blockfrost/blockfrost.svg +5 -0
- package/dist/nodes/Blockfrost/index.js +9 -0
- package/nodes/Blockfrost/blockfrost-credential.svg +5 -0
- package/nodes/Blockfrost/blockfrost.svg +5 -0
- package/package.json +68 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
Preamble
|
|
9
|
+
|
|
10
|
+
The GNU General Public License is a free, copyleft license for
|
|
11
|
+
software and other kinds of works.
|
|
12
|
+
|
|
13
|
+
The licenses for most software and other practical works are designed
|
|
14
|
+
to take away your freedom to share and change the works. By contrast,
|
|
15
|
+
the GNU General Public License is intended to guarantee your freedom to
|
|
16
|
+
share and change all versions of a program--to make sure it remains free
|
|
17
|
+
software for all its users. We, the Free Software Foundation, use the
|
|
18
|
+
GNU General Public License for most of our software; it applies also to
|
|
19
|
+
any other work released this way by its authors. You can apply it to
|
|
20
|
+
your programs, too.
|
|
21
|
+
|
|
22
|
+
When we speak of free software, we are referring to freedom, not
|
|
23
|
+
price. Our General Public Licenses are designed to make sure that you
|
|
24
|
+
have the freedom to distribute copies of free software (and charge for
|
|
25
|
+
them if you wish), that you receive source code or can get it if you
|
|
26
|
+
want it, that you can change the software or use pieces of it in new
|
|
27
|
+
free programs, and that you know you can do these things.
|
|
28
|
+
To protect your rights, we need to prevent others from denying you
|
|
29
|
+
these rights or asking you to surrender the rights. Therefore, you have
|
|
30
|
+
certain responsibilities if you distribute copies of the software, or if
|
|
31
|
+
you modify it: responsibilities to respect the freedom of others.
|
|
32
|
+
|
|
33
|
+
For example, if you distribute copies of such a program, whether
|
|
34
|
+
gratis or for a fee, you must pass on to the recipients the same
|
|
35
|
+
freedoms that you received. You must make sure that they, too, receive
|
|
36
|
+
or can get the source code. And you must show them these terms so they
|
|
37
|
+
know their rights.
|
|
38
|
+
|
|
39
|
+
Developers that use the GNU GPL protect your rights with two steps:
|
|
40
|
+
(1) assert copyright on the software, and (2) offer you this License
|
|
41
|
+
giving you legal permission to copy, distribute and/or modify it.
|
|
42
|
+
|
|
43
|
+
For the developers' and authors' protection, the GPL clearly explains
|
|
44
|
+
that there is no warranty for this free software. For both users' and
|
|
45
|
+
authors' sake, the GPL requires that modified versions be marked as
|
|
46
|
+
changed, so that their problems will not be attributed erroneously to
|
|
47
|
+
authors of previous versions.
|
|
48
|
+
|
|
49
|
+
Some devices are designed to deny users access to install or run
|
|
50
|
+
modified versions of the software inside them, although the manufacturer
|
|
51
|
+
can do so. This is fundamentally incompatible with the aim of
|
|
52
|
+
protecting users' freedom to change the software. The systematic
|
|
53
|
+
pattern of such abuse occurs in the area of products for individuals to
|
|
54
|
+
use, which is precisely where it is most unacceptable. Therefore, we
|
|
55
|
+
have designed this version of the GPL to prohibit the practice for those
|
|
56
|
+
products. If such problems arise substantially in other domains, we
|
|
57
|
+
stand ready to extend this provision to those domains in future versions
|
|
58
|
+
of the GPL, as needed to protect the freedom of users.
|
|
59
|
+
|
|
60
|
+
Finally, every program is threatened constantly by software patents.
|
|
61
|
+
States should not allow patents to restrict development and use of
|
|
62
|
+
software on general-purpose computers, but in those that do, we wish to
|
|
63
|
+
avoid the special danger that patents applied to a free program could
|
|
64
|
+
make it effectively proprietary. To prevent this, the GPL assures that
|
|
65
|
+
patents cannot be used to render the program non-free.
|
|
66
|
+
The precise terms and conditions for copying, distribution and
|
|
67
|
+
modification follow.
|
|
68
|
+
|
|
69
|
+
TERMS AND CONDITIONS
|
|
70
|
+
|
|
71
|
+
0. Definitions.
|
|
72
|
+
|
|
73
|
+
"This License" refers to version 3 of the GNU General Public License.
|
|
74
|
+
|
|
75
|
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
76
|
+
works, such as semiconductor masks.
|
|
77
|
+
|
|
78
|
+
"The Program" refers to any copyrightable work licensed under this
|
|
79
|
+
License. Each licensee is addressed as "you". "Licensees" and
|
|
80
|
+
"recipients" may be individuals or organizations.
|
|
81
|
+
|
|
82
|
+
To "modify" a work means to copy from or adapt all or part of the work
|
|
83
|
+
in a fashion requiring copyright permission, other than the making of an
|
|
84
|
+
exact copy. The resulting work is called a "modified version" of the
|
|
85
|
+
earlier work or a work "based on" the earlier work.
|
|
86
|
+
|
|
87
|
+
A "covered work" means either the unmodified Program or a work based
|
|
88
|
+
on the Program.
|
|
89
|
+
|
|
90
|
+
To "propagate" a work means to do anything with it that, without
|
|
91
|
+
permission, would make you directly or secondarily liable for
|
|
92
|
+
infringement under applicable copyright law, except executing it on a
|
|
93
|
+
computer or modifying a private copy. Propagation includes copying,
|
|
94
|
+
distribution (with or without modification), making available to the
|
|
95
|
+
public, and in some countries other activities as well.
|
|
96
|
+
|
|
97
|
+
To "convey" a work means any kind of propagation that enables other
|
|
98
|
+
parties to make or receive copies. Mere interaction with a user through
|
|
99
|
+
a computer network, with no transfer of a copy, is not conveying.
|
|
100
|
+
An interactive user interface displays "Appropriate Legal Notices"
|
|
101
|
+
to the extent that it includes a convenient and prominently visible
|
|
102
|
+
feature that (1) displays an appropriate copyright notice, and (2)
|
|
103
|
+
tells the user that there is no warranty for the work (except to the
|
|
104
|
+
extent that warranties are provided), that licensees may convey the
|
|
105
|
+
work under this License, and how to view a copy of this License. If
|
|
106
|
+
the interface presents a list of user commands or options, such as a
|
|
107
|
+
menu, a prominent item in the list meets this criterion.
|
|
108
|
+
|
|
109
|
+
1. Source Code.
|
|
110
|
+
|
|
111
|
+
The "source code" for a work means the preferred form of the work
|
|
112
|
+
for making modifications to it. "Object code" means any non-source
|
|
113
|
+
form of a work.
|
|
114
|
+
|
|
115
|
+
A "Standard Interface" means an interface that either is an official
|
|
116
|
+
standard defined by a recognized standards body, or, in the case of
|
|
117
|
+
interfaces specified for a particular programming language, one that
|
|
118
|
+
is widely used among developers working in that language.
|
|
119
|
+
|
|
120
|
+
The "System Libraries" of an executable work include anything, other
|
|
121
|
+
than the work as a whole, that (a) is included in the normal form of
|
|
122
|
+
packaging a Major Component, but which is not part of that Major
|
|
123
|
+
Component, and (b) serves only to enable use of the work with that
|
|
124
|
+
Major Component, or to implement a Standard Interface for which an
|
|
125
|
+
implementation is available to the public in source code form. A
|
|
126
|
+
"Major Component", in this context, means a major essential component
|
|
127
|
+
(kernel, window system, and so on) of the specific operating system
|
|
128
|
+
(if any) on which the executable work runs, or a compiler used to
|
|
129
|
+
produce the work, or an object code interpreter used to run it.
|
|
130
|
+
|
|
131
|
+
[... rest of the GPL-3.0 license text ...]
|
|
132
|
+
|
|
133
|
+
END OF TERMS AND CONDITIONS
|
|
134
|
+
|
|
135
|
+
How to Apply These Terms to Your New Programs
|
|
136
|
+
|
|
137
|
+
If you develop a new program, and you want it to be of the greatest
|
|
138
|
+
possible use to the public, the best way to achieve this is to make it
|
|
139
|
+
free software which everyone can redistribute and change under these terms.
|
|
140
|
+
|
|
141
|
+
To do so, attach the following notices to the program. It is safest
|
|
142
|
+
to attach them to the start of each source file to most effectively
|
|
143
|
+
state the exclusion of warranty; and each file should have at least
|
|
144
|
+
the "copyright" line and a pointer to where the full notice is found.
|
|
145
|
+
|
|
146
|
+
n8n-nodes-blockfrost - Custom n8n node for interacting with the Cardano blockchain via the Blockfrost API
|
|
147
|
+
Copyright (C) 2025 Amit Bevinakatti
|
|
148
|
+
|
|
149
|
+
This program is free software: you can redistribute it and/or modify
|
|
150
|
+
it under the terms of the GNU General Public License as published by
|
|
151
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
152
|
+
(at your option) any later version.
|
|
153
|
+
|
|
154
|
+
This program is distributed in the hope that it will be useful,
|
|
155
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
156
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
157
|
+
GNU General Public License for more details.
|
|
158
|
+
|
|
159
|
+
You should have received a copy of the GNU General Public License
|
|
160
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
package/README.md
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
## Screenshots
|
|
2
|
+
|
|
3
|
+
### Blockfrost Credential Selection
|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
### Blockfrost Credential Configuration
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
### Blockfrost Node Selection in Workflow
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
### Blockfrost Node Configuration Details
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
## Demo Video
|
|
16
|
+
|
|
17
|
+
[](https://youtu.be/fVEHHZigBes)
|
|
18
|
+
# n8n-nodes-blockfrost
|
|
19
|
+
|
|
20
|
+
This is a custom n8n node for interacting with the [Cardano blockchain](https://cardano.org) via the [Blockfrost API](https://blockfrost.io).
|
|
21
|
+
|
|
22
|
+
## Features
|
|
23
|
+
|
|
24
|
+
**🎯 Comprehensive Cardano Blockchain Integration**
|
|
25
|
+
- **75+ endpoints** covering all major Cardano operations
|
|
26
|
+
- **Complete API coverage** following Blockfrost OpenAPI v0.1.78
|
|
27
|
+
|
|
28
|
+
**📊 Available Categories:**
|
|
29
|
+
- **Health & Metrics** - API status and usage monitoring
|
|
30
|
+
- **Accounts** - Stake account information, rewards, history, delegations
|
|
31
|
+
- **Addresses** - Address details, UTXOs, transactions
|
|
32
|
+
- **Assets** - Native tokens, NFTs, asset history and transactions
|
|
33
|
+
- **Blocks** - Block information, transactions, addresses affected
|
|
34
|
+
- **Epochs** - Epoch details, stake distribution, protocol parameters
|
|
35
|
+
- **Governance** - DReps, proposals, votes, governance metadata
|
|
36
|
+
- **Ledger** - Blockchain genesis information
|
|
37
|
+
- **Mempool** - Current pending transactions
|
|
38
|
+
- **Metadata** - Transaction metadata in JSON and CBOR formats
|
|
39
|
+
- **Network** - Network statistics and era information
|
|
40
|
+
- **Pools** - Stake pool data, delegators, performance, votes
|
|
41
|
+
- **Scripts** - Smart contracts, Plutus scripts, redeemers, datums
|
|
42
|
+
- **Transactions** - Full transaction details, UTXOs, certificates, submission
|
|
43
|
+
- **Utilities** - Address derivation, transaction evaluation
|
|
44
|
+
|
|
45
|
+
**🔧 Advanced Features:**
|
|
46
|
+
- Work with NFTs and native tokens
|
|
47
|
+
- Submit transactions to the blockchain
|
|
48
|
+
- Query smart contract data and redeemers
|
|
49
|
+
- Access governance information (DReps, proposals)
|
|
50
|
+
- Monitor stake pool performance and delegations
|
|
51
|
+
- Evaluate transaction execution costs
|
|
52
|
+
- Support for all Cardano networks (mainnet, preprod, preview)
|
|
53
|
+
|
|
54
|
+
## Installation
|
|
55
|
+
|
|
56
|
+
### Option 1: Community Node (via npm)
|
|
57
|
+
|
|
58
|
+
1. Open your n8n instance
|
|
59
|
+
2. Go to **Settings** > **Community Nodes**
|
|
60
|
+
3. Click **Install**
|
|
61
|
+
4. Enter `n8n-nodes-blockfrost` and click **Install**
|
|
62
|
+
|
|
63
|
+
### Option 2: Manual Installation
|
|
64
|
+
|
|
65
|
+
1. Navigate to your n8n custom directory: `~/.n8n/custom/`
|
|
66
|
+
2. Clone this repository: `git clone https://github.com/bevanamit/n8n-nodes-blockfrost.git`
|
|
67
|
+
3. Install dependencies: `cd n8n-nodes-blockfrost && npm install`
|
|
68
|
+
4. Build the project: `npm run build`
|
|
69
|
+
5. Restart n8n
|
|
70
|
+
|
|
71
|
+
### Option 3: Fail-Safe Installation (if npm install does not work as expected)
|
|
72
|
+
|
|
73
|
+
If running `npm install n8n-nodes-blockfrost` in your `~/.n8n/custom/` directory does not install the package correctly, try the following steps:
|
|
74
|
+
|
|
75
|
+
1. Open a terminal and navigate to your n8n custom directory:
|
|
76
|
+
```
|
|
77
|
+
cd ~/.n8n/custom
|
|
78
|
+
```
|
|
79
|
+
2. Initialize a package.json if it does not exist:
|
|
80
|
+
```
|
|
81
|
+
npm init -y
|
|
82
|
+
```
|
|
83
|
+
3. Install the package:
|
|
84
|
+
```
|
|
85
|
+
npm install n8n-nodes-blockfrost
|
|
86
|
+
```
|
|
87
|
+
4. Restart n8n completely (stop and start the process).
|
|
88
|
+
|
|
89
|
+
This ensures the package and its dependencies are installed correctly and n8n can load the custom node.
|
|
90
|
+
|
|
91
|
+
## Prerequisites
|
|
92
|
+
|
|
93
|
+
- [n8n](https://n8n.io/) (version 0.209.0 or newer)
|
|
94
|
+
- A [Blockfrost](https://blockfrost.io) account and project API key
|
|
95
|
+
|
|
96
|
+
## Credentials
|
|
97
|
+
|
|
98
|
+
To use this node, you need to set up Blockfrost API credentials:
|
|
99
|
+
|
|
100
|
+
1. Sign up for a free account on [Blockfrost.io](https://blockfrost.io)
|
|
101
|
+
2. Create a project and get your API key
|
|
102
|
+
3. In n8n, create a new credential of type **Blockfrost API**
|
|
103
|
+
4. Enter your **Project ID** (API key)
|
|
104
|
+
5. Select the appropriate **Network** (mainnet, preprod, preview)
|
|
105
|
+
|
|
106
|
+
## Usage
|
|
107
|
+
|
|
108
|
+
1. Add the **Blockfrost** node to your workflow
|
|
109
|
+
2. Select a **Category** (e.g., Accounts, Addresses, Assets, etc.)
|
|
110
|
+
3. Choose an **Operation** specific to that category
|
|
111
|
+
4. Fill in the required parameters
|
|
112
|
+
5. Connect the node to other nodes in your workflow
|
|
113
|
+
|
|
114
|
+
## Example Workflows
|
|
115
|
+
|
|
116
|
+
### 1. Monitor Cardano Address Balance
|
|
117
|
+
|
|
118
|
+
Create a workflow that periodically checks a Cardano address balance and sends notifications when changes occur.
|
|
119
|
+
|
|
120
|
+
### 2. Track NFT Ownership
|
|
121
|
+
|
|
122
|
+
Monitor ownership changes of specific NFTs on the Cardano blockchain.
|
|
123
|
+
|
|
124
|
+
### 3. Analyze Transaction History
|
|
125
|
+
|
|
126
|
+
Pull transaction data for analysis or reporting purposes.
|
|
127
|
+
|
|
128
|
+
## Development
|
|
129
|
+
|
|
130
|
+
If you want to contribute to this node:
|
|
131
|
+
|
|
132
|
+
1. Clone the repository
|
|
133
|
+
2. Install dependencies: `npm install`
|
|
134
|
+
3. Build the code: `npm run build`
|
|
135
|
+
4. Link to your local n8n: `npm link`
|
|
136
|
+
5. In your n8n installation directory: `npm link n8n-nodes-blockfrost`
|
|
137
|
+
|
|
138
|
+
## Blockfrost Account Setup
|
|
139
|
+
|
|
140
|
+
To use this node, you'll need a Blockfrost account and Project ID. Follow these steps to set one up:
|
|
141
|
+
|
|
142
|
+
1. **Create an Account**:
|
|
143
|
+
- Visit [blockfrost.io](https://blockfrost.io/)
|
|
144
|
+
- Click the "Sign Up" button
|
|
145
|
+
- Complete the registration form
|
|
146
|
+
|
|
147
|
+
2. **Create a Project**:
|
|
148
|
+
- After signing in, navigate to the Dashboard
|
|
149
|
+
- Click "Create Project"
|
|
150
|
+
- Enter a project name (e.g., "n8n Integration")
|
|
151
|
+
- Select the network:
|
|
152
|
+
- **Cardano Mainnet**: For production use
|
|
153
|
+
- **Cardano Preprod**: For testing on the preprod testnet
|
|
154
|
+
- **Cardano Preview**: For testing on the preview testnet
|
|
155
|
+
|
|
156
|
+
3. **Get Your Project ID**:
|
|
157
|
+
- After creating your project, you'll be shown your Project ID
|
|
158
|
+
- This ID will look something like `mainnet1a2b3c4d5e6f7g8h9i0j`
|
|
159
|
+
- Copy this ID to use in your n8n Blockfrost node credentials
|
|
160
|
+
|
|
161
|
+
4. **Free Tier Information**:
|
|
162
|
+
- Blockfrost offers a free tier with 50,000 requests per day
|
|
163
|
+
- This is sufficient for many use cases and development
|
|
164
|
+
- Paid plans are available if you need higher limits
|
|
165
|
+
|
|
166
|
+
5. **Security Note**:
|
|
167
|
+
- Treat your Project ID as a secret key
|
|
168
|
+
- Don't commit it to public repositories
|
|
169
|
+
- Consider using n8n's credential encryption feature
|
|
170
|
+
|
|
171
|
+
## License
|
|
172
|
+
|
|
173
|
+
This project is licensed under the [GNU General Public License v3.0](LICENSE) - see the [LICENSE](LICENSE) file for details.
|
|
174
|
+
|
|
175
|
+
This is free software, and you are welcome to redistribute it under certain conditions.
|
|
176
|
+
## Support & Donations
|
|
177
|
+
|
|
178
|
+
I am not Catalyst funded. Any support you provide is greatly appreciated!
|
|
179
|
+
|
|
180
|
+
**Cardano (ADA) donation address:**
|
|
181
|
+
|
|
182
|
+
`addr1qyxypmc96e3pska6ch2ucq4uv5d7uz6nhpgcne4ea4hgmemv40lpm3wmc3wqk5arjpgzrccm0m9k72puaqzwsgrj47asch66sp`
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,cAAc,MAAM,oCAAoC,CAAC;AAChE,OAAO,qBAAqB,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EACL,cAAc,IAAI,UAAU,EAC5B,qBAAqB,GACtB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BlockfrostCredentials = exports.Blockfrost = void 0;
|
|
7
|
+
const Blockfrost_node_1 = __importDefault(require("./nodes/Blockfrost/Blockfrost.node"));
|
|
8
|
+
exports.Blockfrost = Blockfrost_node_1.default;
|
|
9
|
+
const Blockfrost_credentials_1 = __importDefault(require("./nodes/Blockfrost/Blockfrost.credentials"));
|
|
10
|
+
exports.BlockfrostCredentials = Blockfrost_credentials_1.default;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAIA,yFAAgE;AAI5C,qBAJb,yBAAc,CAIS;AAH9B,uGAA8E;AAI5E,gCAJK,gCAAqB,CAIL"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ICredentialType } from 'n8n-workflow';
|
|
2
|
+
export declare class Blockfrost implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: "file:blockfrost-credential.svg";
|
|
6
|
+
properties: ({
|
|
7
|
+
displayName: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: "string";
|
|
10
|
+
required: boolean;
|
|
11
|
+
default: string;
|
|
12
|
+
description: string;
|
|
13
|
+
options?: never;
|
|
14
|
+
} | {
|
|
15
|
+
displayName: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: "options";
|
|
18
|
+
options: {
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
default: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
description: string;
|
|
25
|
+
})[];
|
|
26
|
+
}
|
|
27
|
+
export default Blockfrost;
|
|
28
|
+
//# sourceMappingURL=Blockfrost.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockfrost.credentials.d.ts","sourceRoot":"","sources":["../../../src/nodes/Blockfrost/Blockfrost.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,UAAW,YAAW,eAAe;IAChD,IAAI,SAAmB;IACvB,WAAW,SAAoB;IAC/B,IAAI,EAAG,gCAAgC,CAAU;IACjD,UAAU;;;;;;;;;;;;;;;;;;;SAsBR;CACH;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Blockfrost = void 0;
|
|
4
|
+
class Blockfrost {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'blockfrostApi';
|
|
7
|
+
this.displayName = 'Blockfrost API';
|
|
8
|
+
this.icon = 'file:blockfrost-credential.svg';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Project ID',
|
|
12
|
+
name: 'projectId',
|
|
13
|
+
type: 'string',
|
|
14
|
+
required: true,
|
|
15
|
+
default: '',
|
|
16
|
+
description: 'Your Blockfrost Project ID from https://blockfrost.io',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Network',
|
|
20
|
+
name: 'network',
|
|
21
|
+
type: 'options',
|
|
22
|
+
options: [
|
|
23
|
+
{ name: 'Mainnet', value: 'mainnet' },
|
|
24
|
+
{ name: 'Preprod', value: 'preprod' },
|
|
25
|
+
{ name: 'Preview', value: 'preview' },
|
|
26
|
+
],
|
|
27
|
+
default: 'mainnet',
|
|
28
|
+
required: true,
|
|
29
|
+
description: 'The Cardano network to connect to',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Blockfrost = Blockfrost;
|
|
35
|
+
exports.default = Blockfrost;
|
|
36
|
+
//# sourceMappingURL=Blockfrost.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockfrost.credentials.js","sourceRoot":"","sources":["../../../src/nodes/Blockfrost/Blockfrost.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IAAvB;QACE,SAAI,GAAG,eAAe,CAAC;QACvB,gBAAW,GAAG,gBAAgB,CAAC;QAC/B,SAAI,GAAG,gCAAyC,CAAC;QACjD,eAAU,GAAG;YACX;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAiB;gBACvB,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uDAAuD;aACrE;YACD;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAkB;gBACxB,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACtC;gBACD,OAAO,EAAE,SAAS;gBAClB,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mCAAmC;aACjD;SACF,CAAC;IACJ,CAAC;CAAA;AA3BD,gCA2BC;AAED,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class Blockfrost implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|
|
6
|
+
export default Blockfrost;
|
|
7
|
+
//# sourceMappingURL=Blockfrost.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockfrost.node.d.ts","sourceRoot":"","sources":["../../../src/nodes/Blockfrost/Blockfrost.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAItB,qBAAa,UAAW,YAAW,SAAS;IAC1C,WAAW,EAAE,oBAAoB,CAs7B/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAq/BxE;AAED,eAAe,UAAU,CAAC"}
|