1.6.0 • Published 6 years ago

@repux/repux-web3-api v1.6.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

RepuX Web3 API

This library helps developers using RepuX protocol. It supports communication with RepuX smart contracts deployed on Ethereum blockchain using Ethereum JavaScript API.

Quickstart

Installation

npm install @repux/repux-web3-api

Usage

import { RepuxWeb3Api } from '@repux/repux-web3-api';

const repuxWeb3Api = new RepuxWeb3Api(window.web3, {
    REGISTRY_CONTRACT_ADDRESS: '0x41acd34d987e3fe854b7a8f3cb101e809ba31c76',
    DEMOTOKEN_CONTRACT_ADDRESS: '0xfa19d4e302336d61b895ea3b26bf4864bdd1d8ab'
});

const balance = await repuxWeb3Api.getBalance();

console.log(balance);

API Reference

API Reference is available here

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing