All Projects → binance-chain → Javascript Sdk

binance-chain / Javascript Sdk

Licence: apache-2.0
Javascript SDK to communicate with Binance Chain.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Javascript Sdk

Parse Sdk Android
The Android SDK for the Parse Platform
Stars: ✭ 1,806 (+1096.03%)
Mutual labels:  sdk
Jitsi Meet Sdk Samples
Jitsi Meet SDK examples (Android and iOS)
Stars: ✭ 150 (-0.66%)
Mutual labels:  sdk
Aliyun Ons
☁️ SDK of Node.js for Aliyun ONS. 🚀
Stars: ✭ 151 (+0%)
Mutual labels:  sdk
Lazy
Kule Lazy4 / CSS Framework
Stars: ✭ 147 (-2.65%)
Mutual labels:  frontend
Coloquent
Javascript/Typescript library mapping objects and their interrelations to JSON API, with a clean, fluent ActiveRecord-like (e.g. similar to Laravel's Eloquent) syntax for creating, retrieving, updating and deleting model objects.
Stars: ✭ 149 (-1.32%)
Mutual labels:  frontend
Cos Nodejs Sdk V5
腾讯云 COS Nodejs SDK(XML API)
Stars: ✭ 149 (-1.32%)
Mutual labels:  sdk
Auth0.swift
Swift toolkit for Auth0 API
Stars: ✭ 146 (-3.31%)
Mutual labels:  sdk
Niui
Lightweight, feature-rich, accessible front-end library
Stars: ✭ 152 (+0.66%)
Mutual labels:  frontend
Appsflyer React Native Plugin
AppsFlyer plugin for React Native
Stars: ✭ 149 (-1.32%)
Mutual labels:  sdk
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (+1108.61%)
Mutual labels:  frontend
Kunafa
Easy to use, high level framework in Kotlin for front-end web-development
Stars: ✭ 148 (-1.99%)
Mutual labels:  frontend
Dialogflow Ruby Client
Ruby SDK for Dialogflow
Stars: ✭ 148 (-1.99%)
Mutual labels:  sdk
Cloudstack Ui
Modern UI for Apache Cloudstack User Self Service Portal
Stars: ✭ 150 (-0.66%)
Mutual labels:  frontend
Kittik
Create slides in TypeScript and present them in the terminal using ASCII only!
Stars: ✭ 147 (-2.65%)
Mutual labels:  sdk
Material Dashboard
Material Frontend Preset For Laravel Framework 8.x and Up
Stars: ✭ 152 (+0.66%)
Mutual labels:  frontend
Blog
一般不会写 API 类文章,努力写有营养的文章,喜欢请点 star
Stars: ✭ 146 (-3.31%)
Mutual labels:  frontend
Nightly.js
A zero dependency javascript library that enables the night mode in your website easily
Stars: ✭ 150 (-0.66%)
Mutual labels:  frontend
Openweatherplus Android
An open source weather APP for Android. 天气普拉斯Android版,自带天气数据的开源天气APP。
Stars: ✭ 153 (+1.32%)
Mutual labels:  sdk
Angular2 Flask
Simple angular2 app with python-flask backend ( Learning Angular2 )
Stars: ✭ 152 (+0.66%)
Mutual labels:  frontend
Wechatpay Apache Httpclient
微信支付 APIv3 Apache HttpClient装饰器(decorator)
Stars: ✭ 147 (-2.65%)
Mutual labels:  sdk

The Binance Chain JavaScript SDK allows browsers and Node.js clients to interact with Binance Chain. It includes the following core components.

  • crypto - core cryptographic functions.
  • amino - amino (protobuf-like) encoding and decoding of transactions.
  • client - implementations of Binance Chain transaction types, such as for transfers and trading.
  • accounts - management of "accounts" and wallets, including seed and encrypted mnemonic generation.
  • ledger - Ledger Nano S/X support via HID, U2F and Web BLE (Bluetooth).
  • rpc - Node RPC client.
  • transaction - Transaction Class, build and sign.

You can find more detailed documentation and examples in our Documentation pages.

Installation

If you do not need Ledger support with Node.js:

$ npm i @binance-chain/javascript-sdk --no-optional
# Or:
$ yarn add @binance-chain/javascript-sdk --no-optional

If you need Ledger support with Node.js:

$ npm i @binance-chain/javascript-sdk
# Or:
$ yarn add @binance-chain/javascript-sdk

Prerequisites

  • Windows users: Please install windows-build-tools first.

  • Mac users: Make sure XCode Command Line Tools are installed: xcode-select --install.

  • Linux users: Note that Ubuntu Xenial and newer distributions are recommended, especially when using Travis or other CI systems. You may need some dev packages to be installed on your system for USB support. On Debian-based distributions (like Ubuntu) you should install them with this command:

    $ sudo apt-get install libudev-dev libusb-dev usbutils
    

Use with Webpack

We often see Webpack builds failing with the SDK due to the usb dependency, but adding this to your Webpack config should fix that:

module.exports = {
  plugins: [new webpack.IgnorePlugin(/^usb$/)],
}

Testing

All new code changes should be covered with unit tests. You can run the tests with the following command:

$ yarn test

Tests for the Ledger hardware wallet integration have their own suite that runs in both node and in the browser:

$ yarn test:ledger
$ yarn test📒browser

Contributing

Contributions to the Binance Chain JavaScript SDK are welcome. Please ensure that you have tested the changes with a local client and have added unit test coverage for your code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].