Skip to content

repux/repux-web3-api

Repository files navigation

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