Git Product home page Git Product logo

aleo.js's Introduction

Aleo.js

Aleo JavaScript API

  • ๐Ÿš€ 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.


Build Aleo dApps, easily.

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)

Documentation, as you type.


Installation

You can install Aleo.js with your favorite package manager.

NPM

npm install aleo

Yarn

yarn add aleo

PNPM

pnpm install aleo

Development

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!


Bugs

If you find any bug, please create a pull request.


Made with โค๏ธ by Berzan

aleo.js's People

Contributors

berzanorg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.