** The query will trigger a 'getMintedPerAddressTotal' with currently logged in user's
address using
the
Elven Tools Smart Contract.
*** The signing message example will sign the: '
Elven Family is awesome!' message.
You can
check the source code of this page and how to use it.
ElvenJS (demo)
All transactions will take place on the devent! Check how to use it on the testnet and mainnet
in the docs.
For testing the browser extension locally you will need SSL (https) for the localhost. Check the README
file.
For styling elements like QR code container and Wallet Connect pairings check demo styles. Each element
should have a class name.
Authenticate, sign and send transactions and messages on the MultiversX blockchain in the browser. No need for
bundlers, frameworks, etc. Just attach the script source, and you are ready to go. You can incorporate it into
your preferred CMS framework like WordPress or an e-commerce system. Plus, it will also work on a standard static
HTML website.
For now, xPortal mobile app, Web Wallet and MultiversX browser extension are supported. Check GitHub for more
info!
The primary purpose of this tool is to have a lite script for browser usage where you can authenticate and
sign/send transactions on the MultiversX blockchain and do this without any additional build steps.
The purpose is to simplify the usage for primary use cases and open the doors for many frontend tools and
approaches.
The demo here presents the full path of initialization, logging in, and sending a
transaction.
It is a script for browsers that incorporates ES6 modules. If you need fully functional
JavaScript/Typescript SDK (also in Nodejs), please use sdk-js, an official Typescript MultiversX SDK.
Soon there will be more docs and examples!
Check the source code of this page to get the complete code. All is static. The main script is
minified. But you can see the code in the repository
Demo transactions/queries description (devnet):
EGLD transaction:
- simple EGLD transfer on the devnet chain
- it will go to a predefined wallet
- the value will be 0,001 EGLD
- after the transaction is finished below, you will find the transaction hash
ESDT transaction:
- simple ESDT transfer on the devnet chain
- it will go to a predefined wallet
- it will be 1 BUILDO-22c0a5 token
- after the transaction is finished below, you will find the transaction hash
Mint transaction:
- Smart Contract call on the devnet chain
- it will call predefined smart contract (Elven Tools Smart Contract) and mint NFT
- after the transaction is finished below, you will find the transaction hash
Sign a message
- Signing a hardcoded message
- After signing you will see the message onece again and signature for it
Query the smart contract:
- Smart Contract query. The Elven Tools smart contract has the 'getMintedPerAddressTotal' function
- It will query using a predefined address and return the value
- There is a custom logic for results decoding. In the future there will be tools for that
- after the transaction is finished below, you will get the result of the query
Other demos:
- StackBlitz vanilla html demo
- StackBlitz Solid.js demo
- StackBlitz React demo
- StackBlitz Vue demo