Skip to content

secure-vote/purescript-web3

 
 

Repository files navigation

purescript-web3

Latest release purescript-web3 on Pursuit Build status

Purescript bindings for Web3

purescript-web3 is a faithful porting of hs-web3 to purescript. At the moment it implements most of the eth endpoints of the web3 api, which means it is suitable for sendind transactions, querying blockchain state and metatdata, and monitoring events.

Using purescript-web3-generator it is also possible to generate a library from a set of smart contract abis which is capable of templating transactions and event filters/watchers. The README has instructions for getting started.

We do not yet have a build tool similar to truffle, but if you are looking for a template of how to use truffle and write your tests using purescript, check out out the purescript-web3-tests

To see an example project using all of the purescript-web3 tools and with thermite/react ui, check out purescript-web3-example.

Prerequisites

purescript-web3 is using psc-package to manage dependencies. Follow the instructions to install psc-package before building the project.

Build Instructions

> npm install
> psc-package build
> pulp test

Documentation

Module documentation is published on Pursuit.

Resources

About

a purescript library for the web3 api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PureScript 96.3%
  • JavaScript 3.7%