-
Notifications
You must be signed in to change notification settings - Fork 1
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
d2d7727
commit 548ad5d
Showing
2 changed files
with
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Julian Ćwirko | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -1,9 +1,52 @@ | ||
### Intro to MultiversX blockchain interactions with JavaScript SDK | ||
# MultiversX JavaScript SDK Examples | ||
|
||
The repository for the article: [Intro to MultiversX blockchain interactions with JavaScript SDK](https://www.julian.io/articles/multiversx-js-sdk-intro.html) | ||
Welcome to the repository containing code examples for the JavaScript SDK of the MultiversX blockchain. This collection of examples demonstrates various features and capabilities of the SDK to help developers effectively integrate and utilize MultiversX in their projects. | ||
|
||
Run: | ||
- `npm install` | ||
- `node transaction.js` | ||
## Overview | ||
|
||
Video: https://youtu.be/Fxxdly9QYHw | ||
This repository is structured to gradually include multiple demonstrations. Each example is organized into its own section and will be tagged accordingly to facilitate easy navigation and version control. | ||
|
||
## Getting Started | ||
|
||
To begin exploring the available examples, clone this repository and navigate to the specific section you are interested in: | ||
|
||
```bash | ||
git clone https://github.com/xdevguild/multiversx-js-sdk-examples.git | ||
cd multiversx-js-sdk-examples | ||
``` | ||
|
||
### Prerequisites | ||
|
||
Ensure you have Node.js installed on your system to run the examples. You can download Node.js from [nodejs.org](https://nodejs.org/). | ||
|
||
## Current Examples | ||
|
||
Currently, the repository hosts a single example. More examples will be added progressively. Each part/example is associated with a separate git tag. As new examples are added, each tag will not only include the new work but will also retain earlier examples, which are organized into separate files with descriptive names. This structure allows users to easily understand and trace the development of each example, as well as access previous versions cleanly and efficiently. | ||
To check out a specific tag, use: | ||
|
||
```bash | ||
git checkout <tag_name> | ||
``` | ||
|
||
### Example 1: Setup and basic transaction | ||
|
||
- **Tag**: `setup-and-transaction` | ||
- **Description**: This example demonstrates how to setup required tools and helpers and perform basic transaction using the MultiversX JavaScript SDK on the devnet. | ||
- **Article**: [Intro to MultiversX blockchain interactions with JavaScript SDK](https://www.julian.io/articles/multiversx-js-sdk-intro.html) | ||
- **Video**: [Intro to MultiversX blockchain interactions with JavaScript SDK](https://www.youtube.com/watch?v=Fxxdly9QYHw) | ||
|
||
## Security and Wallet Information | ||
|
||
The examples use a demo wallet with a hardcoded password. All interactions occur on the **devnet** (development network of MultiversX), ensuring that it is safe to expose the wallet credentials. The devnet is designed for testing and development, involving no real assets. Don't do this on the mainnet. | ||
|
||
## Disclaimer | ||
|
||
These examples are provided "as is" without any warranty. They are intended for educational and development purposes only. By using these examples on the mainnet, you acknowledge that you do so at your own risk. | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! If you have suggestions, improvements, or additional examples, feel free to open an issue or submit a pull request. | ||
|
||
## Contact | ||
|
||
For further assistance or inquiries, feel free to reach out through X ([@theJulianIo](http://x.com/theJulianIo)) or by submitting an issue in this repository. |