/bs-web3

Web3 bindings in Reason

Primary LanguageOCamlMIT LicenseMIT

bs-web3

Web3 bindings for BuckleScript in Reason.

npm license Travis David David Coveralls github

This package is currently under development, and not suited for production.

Installation

Install bs-web3 using npm:

npm install bs-web3

Alternatively, using yarn:

yarn add bs-web3

Then add bs-web3 as a dependency to bsconfig.json

{
  ...
  "bs-dependencies": ["bs-web3"]
}

Usage

This package implements the majority of functionality provided by Web3. Here's a basic example.

Js.log(Web3.version);
Js.log(Web3.Utils.randomHex(32));

For more examples see the example/ folder.