@proflujo/web3-rbx
v1.0.0
Published
Client side wrapper for Rubix RPC
Downloads
1
Readme
WebRbx
Client side wrapper for Rubix RPC.
How to Use
Install package:
npm install web3-rbx
.Import in your code:
// Import module const RbxContract = require('web3-rbx'); // Initialize Contract class const contract = RbxContract('RPC_ENDPOINT', 'ACCOUNT_ADDRESS', 'SOLIDITY_CONTRACT_CODE');
To Deploy:
const txnReceipt = await contract.deploy([/* constructor arguments if any */]);
To Call contract method:
const result = await contract.call('CONTRACT_ADDRESS', 'CONTRACT_METHOD', [/* method arguments if any */]);