PREREQUISITES:
- NodeJS 14+
- npm / yarn (see package.json)
Massa-web3 is a TypeScript library that enables you to communicate with the Massa blockchain. It offers an interface to retrieve data directly from the blockchain, interact with smart contracts, acquire and monitor events, and perform additional actions.
Massa-web3
could be used as a library for frameworks or as a stand-alone bundled js file which can be easily loaded into the browser.
npm install @massalabs/massa-web3
If you want to use massa-web3
in the browser directly, you can add the following script to your html file:
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@massalabs/massa-web3@x.x.x/bundle.js"
></script>
whereby the x.x.x is one of the available released versions under Massa-web3's releases page:
In your code, once the script is fully loaded, just use window.massa
to access all massa-web3
exports.
<script>console.log("Massa Web3 ", window.massa);</script>
- Read the
Massa-web3 documentation
to learn how to use Massa-web3. -
TypeDoc API
is available for all exported classes, interfaces and methods. - dApp examples with associated frontend can be found at massa-sc-examples repository.
We welcome contributions from the community!
If you would like to contribute to massa-web3
, please read the CONTRIBUTING file.
massa-web3
is released under the MIT License.
massa-web3
is developed with love by MassaLabs and powered by a variety of open-source projects.