An SDK to interact with BitClout APIs
WARNING: Project is under heavy development, expect breakage until this warning is removed.
yarn add bitclout-sdk
or
npm install --save bitclout-sdk
See full usage in code docs: documentation
import { Bitclout } from "bitclout-sdk";
const bitclout = new BitClout({ baseUrl: "https://bitclout.com/api" });
const fetchProfile = async (publicKey: string) => {
const profile = await bitclout.getSingleProfile({
publicKey,
});
};
import { identity } from "bitclout-sdk";
const login = async () => {
const response = await identity.login({ accessLevel: 2 });
const publicKey = response.publicKeyAdded;
return publickey;
};
A sample app can be found in /example
Runing example code project:
yarn example
Navigate to http://localhost:3000
Navigate to http://localhost:3000/login
Install dependencies:
Depends on node.js
& yarn
yarn install
Build output:
yarn build
MIT