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

Package Sidebar

Install

npm i bitgo-bitcoin-wallet

Weekly Downloads

2

Version

0.3.1

License

MIT

Last publish

Collaborators

  • olalonde