@cryptafriq/crypto-wallet-sdk-nodejs
v0.1.3
Published
A secure and easy-to-use cryptocurrency NodeJs SDK for Binance Smart Chain network transactions and wallet management
Downloads
244
Readme
Crypto Wallet SDK
🔐 A secure and easy-to-use cryptocurrency NodeJs SDK for Binance Smart Chain network transactions and wallet management
Features
- Seamless NodeJs application integration
- Industry-leading encryption for safe crypto transactions
- Full BEP20 token compatibility on Binance Smart Chain
- Straightforward authentication using API keys
Installation
Using npm
npm install @cryptafriq/crypto-wallet-sdk-nodejs
Using yarn
yarn add @cryptafriq/crypto-wallet-sdk-nodejs
Usage
Javascript
const CryptoWallet = require('@cryptafriq/crypto-wallet-sdk-nodejs');
Typescript
import { CryptoWallet } from '@cryptafriq/crypto-wallet-sdk-nodejs';
Methods
The following methods are available with this SDK:
Generate Wallet Address
//Generate BSC wallet address
const cryptoWalletSDK= new CryptoWalletSDK("your api key")
const address = await cryptoWalletSDK.Wallet.address();
Response
{
"address": "0x1b0700d3524089a77e93a66ba8262393234ecdbc",
"alt_address": "tbnb1rvrsp56jgzy6wl5n5e46sf3rjv35andu6kzacn",
"network": "AAST/BEP20",
"block_confirmation": 15
}
Generate Wallet Balance
//Generate BSC wallet address
const cryptoWalletSDK= new CryptoWalletSDK("your api key")
const balance = await cryptoWalletSDK.Profile.balance();
Response
{
"pendingBalance": "0 AAST",
"confirmedBalance": "0 AAST",
"total": "0 AAST"
}
Generate Transaction
//Generate BSC wallet address
const cryptoWalletSDK= new CryptoWalletSDK("your api key")
const history = await cryptoWalletSDK.Wallet.history();
Response
[
{
"amount": "1 AAST",
"wei_amount": "100000 AAST",
"block_number": "10",
"from": "0x12f9bb12ae6142926b42132a18ad9567313ec0bc",
"hash": "hash",
"parent_hash": "parent_hash"
},
{
"amount": "1 AAST",
"wei_amount": "100000 AAST",
"block_number": "10",
"from": "0x12f9bb12ae6142926b42132a18ad9567313ec0bc",
"hash": "hash",
"parent_hash": "parent_hash"
},
{
"amount": "1 AAST",
"wei_amount": "100000 AAST",
"block_number": "10",
"from": "0x12f9bb12ae6142926b42132a18ad9567313ec0bc",
"hash": "hash",
"parent_hash": "parent_hash"
}
]