Welcome to the repository containing code examples for the JavaScript/TypeScript SDK of the MultiversX blockchain. This collection of examples demonstrates various SDK features and capabilities to help developers effectively integrate and utilize MultiversX in their projects.
This repository is structured to include multiple demonstrations gradually. Each example is organized into its 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
To run the examples, ensure you have Node.js installed on your system. You can download Node.js from nodejs.org.
More examples will be added progressively. Each part/example is associated with a separate git tag. As new examples are added, each tag will include the latest work and retain earlier examples, organized into individual files with descriptive names. This structure allows users to easily understand and trace the development of each example and 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 set up required tools and helpers and perform basic transactions 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 transferring 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 deploying 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 creating 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 (the development network of MultiversX), ensuring it is safe to expose the wallet credentials. The devnet is designed for testing and development and does not involve real assets.
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, please feel free to open an issue or submit a pull request.
If you need further assistance or have inquiries, feel free to contact us through X (@theJulianIo) or by submitting an issue in this repository.