Skip to content

A Node.js module consuming the bincry-interact package for interacting with Binance API and Ethereum smart contracts.

Notifications You must be signed in to change notification settings

ambma/bincry-interact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Node.js module consuming the bincry-interact package for interacting with Binance API and Ethereum smart contracts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published