Giter Site home page Giter Site logo

beptools-docs's Introduction

description
A quick tutorial on a Binance Chain powered WebApp.

Getting Started

Overview

In this tutorial we will go over installing the SDK, adding a wallet, reading the wallet balance and then sending a transaction.

Code snippets will be posted along the way, and we will use the beptools.org codebase as a working example that you can compile.

BEPTools Code Example

To get started, clone the BEPTools codebase in a new local directory on your machine:

$ git clone https://gitlab.com/canyacoin/binancechain/beptools.git

{% hint style="info" %} React is a great way to launch slick, responsive web apps. We will take a look at how BEPTools is built and from there you can build your own. You can learn more about it here:

https://reactjs.org/docs/create-a-new-react-app.html

We will also use YARN for package management:

https://yarnpkg.com/lang/en/ {% endhint %}

Once you have cloned, you can enter the directory and start the web app using yarn:

cd beptools
yarn install
yarn start

The webapp should launch to your localhost

{% hint style="info" %} The web-app also uses Ant-design, a popular React UI framework.

https://ant.design/ {% endhint %}

Quick Links

You can skip ahead to the following parts.

Add the Javascript SDK to your app and create a single binance.js file to manage all of our binance chain related functions:

{% page-ref page="connecting.md" %}

Add the Keystore wallet option, reading the address and save it in state.:

{% page-ref page="connect-to-wallet.md" %}

Read the wallet balances to create a web-viewable wallet:

{% page-ref page="reading-the-wallet.md" %}

Create and send a Binance Chain transaction:

{% page-ref page="sending-a-transaction.md" %}

beptools-docs's People

Contributors

jpthor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.