- ๐ It has all the features you need while building a dApp on Aleo!
- ๐ฐ๏ธ A standardized way to develop something great!
- ๐ธ Written in TypeScript to offer a safer experience!
The library just started to be developed, so it's not complete yet.
import { Connection } from 'aleo'
// Create a new Connection object
const connection = new Connection('http://0.0.0.0:4180')
// Get the latest block
const latestBlock = await connection.getLatestBlock()
// Get the genesis block
const genesisBlock = await connection.getBlock(0)
// Get the hash of the latest block
const latestHash = await connection.getLatestHash()
// Get the height of the latest block
const latestHeight = await connection.getLatestHeight()
// Get the transaction with given TX ID
const transaction = await connection.getTransaction('at1r9wercd6fsjm58klkqt8jrug55w4sgpj6tmcg0myk5n3nh5h5cyq589zfu')
// Get all the transactions on the genesis block
const transactions = await connection.getTransactions(0)
You can install Aleo.js
with your favorite package manager.
npm install aleo
yarn add aleo
pnpm install aleo
You need Node.JS and Git installed.
Clone the repository.
git clone https://github.com/BerzanXYZ/aleo.js.git
Install the dependencies.
yarn install
๐ Your development environment is ready!
If you find any bug, please create a pull request.
Made with โค๏ธ by Berzan