web333dapper

0.1.1 • Public • Published

web333dapper

This package provides a set of tools for smart contract interactions and blockchain communication.

Installation

npm install web333dapper

### Usage

```javascript
const Web333Dapper = require('web333dapper');

const dapper = new Web333Dapper('https://rinkeby.infura.io/v3/YOUR_INFURA_API_KEY', 'YOUR_PRIVATE_KEY');

// Deploy a simple ERC20 token contract
const contractAddress = await dapper.deployContract();
console.log(`Contract deployed at: ${contractAddress}`);

// Transfer tokens
const transactionHash = await dapper.transferTokens('senderAddress', 'recipientAddress', 100);
console.log(`Transaction hash: ${transactionHash}`);

// Get ETH balance
const ethBalance = await dapper.getEthBalance('0x1234567890123456789012345678901234567890');
console.log(`ETH balance: ${ethBalance} ETH`);

Package Sidebar

Install

npm i web333dapper

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

3.22 kB

Total Files

3

Last publish

Collaborators

  • bangkeras