1.2.0 • Published 3 years ago

callweb3js v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

callweb3-js

This package is using web3 and web3 has been initialized just use common function from this package.

Installation (NPM)

npm i --save callweb3js

How it works..

There are two functions that has been used in this package.

(1) - init();

/* Function: InIt() @param {} _infura // Curreant Provider - Set Network // Mainnet, rinkeby @param {} _contractAddress // Contract Address that has to be init @param {} _mainContractABI // Main Contract ABI JSON FILE @param {} _tokenContractAddress // Token contract if any @param {} _tokenContractABI // Token contract ABI file (JSON) if any @returns Initialized Web3 */

(2) - callContract;

/* Function: callContract @param {} contractType // ERC or CONTRACT @param {} name // Function name in ABI @param {} params // ALways be in Array "0x00", "100", .... @param {} privateKey // User Wallet Private Key @param {} callType // CALL or SEND @returns Transaction Reciept or Error */

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago