Build Decentralized Applications
Leverage the power of Cardano's blockchain to create secure and scalable dApps. CardanoWeb3js library offers seamless integration and comprehensive tools for developers
CardanoWeb3js is a versatile TypeScript library designed for seamless integration with the Cardano blockchain
import { CardanoWeb3, utils } from "cardano-web3-js"
const web3 = new CardanoWeb3()
const mnemonic = utils.keys.mnemonicGenerate()
const account = web3.account.fromMnemonic(mnemonic)
const state = await account.getState()
console.log("Mnemonic:", mnemonic)
console.log("Account Address:", account.__config.paymentAddress)
console.log("Account State:", state)
CardanoWeb3js is a versatile TypeScript library designed for seamless integration with the Cardano blockchain. It supports both Node.js and browser environments, streamlining transaction creation, smart contract deployment, and data exploration. Ideal for developers, this toolkit simplifies Cardano cryptographic operations and API interactions.
This library is a set of abstractions over various opensource libraries and SDKs that are required to work with the Cardano blockchain: CML by dcSpark, MSL by Emurgo, UPLC by Aiken, Plutus Data by Spacebudz, and other.
Browser (Bundler) | Nodejs | Web |
---|---|---|
✅ | ✅ | ✅ |
Outputs JS that is suitable for interoperation with a Bundler like Webpack | Outputs JS that uses CommonJS modules and ESM modules to run in NodeJS environments of various versions | Outputs JS that can be natively imported as an ES module in a browser. Works with Serverless environs such as Cloudflare Workers |
CardanoWeb3js is under active development: architectures, methods, and approaches can change rapidly, so you can get actively involved by visiting our repository.