This library helps developers using RepuX protocol. It supports communication with RepuX smart contracts deployed on Ethereum blockchain using Ethereum JavaScript API.
npm install @repux/repux-web3-api
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 is available here
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing