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.
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.
To begin exploring the available examples, clone this repository and navigate to the specific section you are interested in:
git clone https://github.com/xdevguild/multiversx-js-sdk-examples.git
cd multiversx-js-sdk-examples
Ensure you have Node.js installed on your system to run the examples. You can download Node.js from nodejs.org.
Currently, the repository hosts three examples. 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:
git checkout <tag_name>
- 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
- Video: Intro to MultiversX blockchain interactions with JavaScript SDK
- Tag:
token-transfers
- Description: This example demonstrates how to transfer tokens using the MultiversX JavaScript SDK on the devnet.
- Article: Transfer tokens using MultiversX JavaScript SDK
- Video: Transfer tokens using MultiversX JavaScript SDK
- Tag:
smart-contract-deployment
- Description: This example demonstrates how to deploy a smart contract using the MultiversX JavaScript SDK on the devnet.
- Article: Mastering smart contract deployment with MultiversX JavaScript SDK
- Video: Mastering smart contract deployment with MultiversX JavaScript SDK
- Tag:
smart-contract-interactions
- Description: This example demonstrates how to interact with a smart contract using the MultiversX JavaScript SDK on the devnet.
- Article: Step-by-step guide to MultiversX smart contract interactions with JavaScript SDK
- Video: Step-by-step guide to MultiversX smart contract interactions with JavaScript SDK
- Tag:
create-nft
- Description: This example demonstrates how to create an NFT using the MultiversX JavaScript SDK on the devnet.
- Article: Creating NFTs with MultiversX Blockchain Using JavaScript SDK
- Video: Creating NFTs with MultiversX Blockchain Using JavaScript SDK
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.
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.
Contributions are welcome! If you have suggestions, improvements, or additional examples, feel free to open an issue or submit a pull request.
For further assistance or inquiries, feel free to reach out through X (@theJulianIo) or by submitting an issue in this repository.