Elven.js is a compact, browser-friendly JavaScript library specifically
designed to interact with the MultiversX blockchain and its smart contracts. As a simplified wrapper for the
sdk-js, a set of Typescript/Javascript libraries, Elven.js is tailored for ease of use, requiring no build
steps and offering direct usage from a CDN.
The primary functionality of Elven.js includes user authentication using various auth providers like the
MultiversX browser extension, xPortal Mobile app, and MultiversX Web Wallet, with future support for the
Ledger Nano hardware wallet. This allows users to easily integrate authentication processes into their
front-end applications. Additionally, Elven.js facilitates various blockchain interactions, such as sending
native $EGLD tokens and ESDT tokens, making transactions, and interacting with custom smart contracts. It
also offers the capability to query smart contracts, with plans to include a utility for decoding returned
data.
The library, being a straightforward browser-based JavaScript script, can be conveniently copied from the
repository for local use or imported directly from the CDN. Elven.js selectively imports only the crucial
parts of the sdk-js libraries, focusing on elements essential for browser usage. While internally using
Typescript, it ultimately presents itself as a standard minified JavaScript file, making it suitable for
static websites and various frameworks like React, SolidJS, or Vue.
Due to its adaptable nature, Elven.js is an ideal tool for a range of widget-like implementations, from
WordPress or Shopify plugins to simple donation widgets for static hobby websites. It is particularly useful
for front-end frameworks that lack native support for the MultiversX blockchain, as it can be installed as a
dependency and imported for use.
In summary, Elven.js stands out for its simplicity, ease of integration, and wide-ranging compatibility,
making it a valuable resource for developers looking to incorporate MultiversX blockchain functionalities
into their web applications​.
www.elvenjs.com
GitHub
Twitter