GitHub - Betoken/betoken-js: JavaScript API for building bots & apps on Betoken

1 min read Original article ↗

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

BetokenJS

Javascript API for interacting with the Betoken fund.

Getting Started

1. Install via npm

npm install --save betoken-js

2. Import BetokenJS

const BetokenAPI = require('betoken-js');

3. Initialize BetokenJS with your web3 provider & Ethereum private key

const web3Provider = 'wss://mainnet.infura.io/ws/v3/...';
const privateKey = '0xdeadbeef';
const betoken = await BetokenAPI(web3Provider, privateKey);

Documentation

See BetokenJS Docs