ddanielcruzz / btckit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

btckit

btckit is a standardized, extensible way to interact with Bitcoin wallets using JSON-RPC 2.0

Getting started

Install the types package:

yarn add -D @btckit/types
npm install -D @btckit/types

Importing the types package declares the btc global on your environment's global object.

import '@btckit/types';

if (!window.btc) console.warn('No btckit-compatible wallets detected');

// Strongly-typed response value
const addresses = window.btc.request('getAddresses');

About

License:MIT License


Languages

Language:TypeScript 96.0%Language:JavaScript 2.2%Language:Shell 1.8%