Skip to content

olalonde/bitgo-bitcoin-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Implementation of abstract-bitcoin-wallet for BitGo

Resources

License

Stars

Watchers

Forks

Packages

No packages published