Skip to content

team-proflujo/web3-rbx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web3Rbx

Client side wrapper for Rubix RPC.

How to Use

  1. Install package: npm install web3-rbx.

  2. Import in your code:

    // Import module
    const RbxContract = require('web3-rbx');
    
    // Initialize Contract class
    const contract = RbxContract('RPC_ENDPOINT', 'ACCOUNT_ADDRESS', 'SOLIDITY_CONTRACT_CODE');
  3. To Deploy:

    const txnReceipt = await contract.deploy([/* constructor arguments if any */]);
  4. To Call contract method:

    const result = await contract.call('CONTRACT_ADDRESS', 'CONTRACT_METHOD', [/* method arguments if any */]);

About

Client side wrapper for Rubix RPC.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors