bincry-interact

0.1.3 • Public • Published

BincryInteract

BincryInteract is a Node.js package designed for advanced interactions with Binance's API and the Ethereum blockchain, enabling users to fetch account information, balances, and interact with smart contracts.

Installation

To install BincryInteract, run the following command in your project directory:

npm install bincry-interact

Usage

const BincryInteract = require('bincry-interact');

// Initialize with your API keys and Ethereum node URL
const bincry = new BincryInteract('yourBinanceApiKey', 'yourBinanceApiSecret', 'yourEthereumNodeUrl');

// Fetch Binance account info
bincry.getBinanceAccountInfo().then(info => console.log(info)).catch(err => console.error(err));

// Get Ethereum balance
bincry.getEthBalance('0x...').then(balance => console.log(balance)).catch(err => console.error(err));

// Interact with a smart contract
bincry.interactWithSmartContract('0x...', 'yourPrivateKey', 'functionName', ['arg1', 'arg2'])
  .then(receipt => console.log(receipt))
  .catch(err => console.error(err));

Important Notes

Ensure your API keys and private keys are securely stored and never hard-coded directly into your applications

The package assumes familiarity with Ethereum smart contracts

Package Sidebar

Install

npm i bincry-interact

Weekly Downloads

7

Version

0.1.3

License

MIT

Unpacked Size

5.08 kB

Total Files

3

Last publish

Collaborators

  • ambma