Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@secux/app-bnb

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@secux/app-bnb

SecuX Hardware Wallet BNB API

  • 2.0.0-rc1
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by200%
Maintainers
2
Weekly downloads
 
Created
Source

@secux/app-bnb

SecuX Hardware Wallet BNB API

Usage

import { SecuxBNB } from "@secux/app-bnb";

First, create instance of ITransport

  • Web Usb
  • Web Bluetooth
  • React Native Bluetooth

Examples

  1. Get address of bip44 path
const address = await SecuxBNB.getAddress(device, "m/44'/714'/0'/0/0");
  1. Sign transaction
const { raw_tx, signature } = await SecuxBNB.signTransaction(
    device, 
    path, 
    {
        to: "bnb1rcxjc3a6va0ldwzerx2t58g3sz6ss6x7cglwyc",
        amount: 1e18
    },
    {
        chainId: "Binance-Chain-Tigris",
        accountNumber: 0,
        sequence: 0,
        memo: ""
    }
);

API doc

SecuxBNB

BNB package for SecuX device

Kind: global class


SecuxBNB.getAddress(trans, path)string

Get BNB address derived by given BIP32 path

Kind: static method of SecuxBNB
Returns: string - address

ParamTypeDescription
transITransport
pathstringBIP32


SecuxBNB.signTransaction(trans, path, content, [option])object

Create transaction and Sign

Kind: static method of SecuxBNB
Returns: object - signed
string - signed.raw_tx
Buffer - signed.signature

ParamTypeDescription
transITransport
pathstringBIP32
contenttxDetailtransaction content
[option]txOption

Keywords

FAQs

Package last updated on 08 Nov 2021

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