bitgo-bitcoin-wallet

0.3.1 • Public • Published

bitgo-bitcoin-wallet

Build Status

Implementation of abstract-bitcoin-wallet for BitGo.

Install

npm install --save bitgo-bitcoin-wallet bitgo

Usage

import bitgoWallet from 'bitgo-bitcoin-wallet';
import { BitGo } from 'bitgo';

const bitgo = new BitGo({
  accessToken: 'your bitgo access token',
  env: 'test',
});

const wallet = bitgoWallet({
  bitgo,
  walletId: 'your bitgo wallet id',
  passphrase: 'your bitgo passphrase',
});

wallet.createAddress().then((addrInfo) => {
  console.log(addrInfo);
});

// See abstract-bitcoin-wallet for docs

Test

Create a .env file in the project root with the following values:

BITGO_ENV=test
BITGO_TOKEN="your bitgo token"
BITGO_WALLET="your bitgo wallet id"
BITGO_PASSPHRASE="your bitgo passphrase"
npm test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.11latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.11
0.3.00
0.2.60
0.2.50
0.2.30
0.2.20
0.2.12
0.2.00
0.1.01
0.0.10

Package Sidebar

Install

npm i bitgo-bitcoin-wallet

Weekly Downloads

4

Version

0.3.1

License

MIT

Last publish

Collaborators

  • olalonde