@btctop/central-client

central client sdk

Usage no npm install needed!

<script type="module">
  import btctopCentralClient from 'https://cdn.skypack.dev/@btctop/central-client';
</script>

README

central-client

central client sdk

install:

npm i @btctop/central-client

usage:

const { Client } = require('@btctop/central-client');

const clientId = 'your client id';
const secretKey = 'your secret key';
const endPoint = 'root url of central service';


const client = new Client({ clientId, secretKey, endPoint });

const path = '/activity/create';
const data = { pool: 1 };
const method = 'POST';

const result = await client.call(path, data, method);
const { code, data, message } = result;