New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cryptafriq/crypto-wallet-sdk-nodejs

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cryptafriq/crypto-wallet-sdk-nodejs

A secure and easy-to-use cryptocurrency NodeJs SDK for Binance Smart Chain network transactions and wallet management

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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:

  • Cryto Wallet 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"
    }
]

Keywords

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc