-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40d75e3
commit 44a9742
Showing
10 changed files
with
1,076 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# WebSocket Chain Metadata Fetcher | ||
|
||
This script connects to a blockchain WebSocket endpoint (e.g., Energy Web X) using the Polkadot API and fetches metadata information, including details about the `Balances` pallet and its `transfer` call. | ||
|
||
## Prerequisites | ||
|
||
- **Node.js**: You need to have Node.js installed on your system. If Node.js is not installed, you can install it using Homebrew: | ||
|
||
```bash | ||
brew install node | ||
``` | ||
|
||
## Usage | ||
|
||
1. Make the wrapper script executable: | ||
|
||
```bash | ||
chmod +x parse | ||
``` | ||
|
||
2. Run the script with the WebSocket URL as an argument: | ||
|
||
```bash | ||
./parse <url> | ||
``` | ||
|
||
### Example | ||
|
||
To fetch metadata from the Energy Web X network, run the script like this: | ||
|
||
```bash | ||
./parse wss://wnp-rpc.mainnet.energywebx.com |
Oops, something went wrong.