Blockchain.com Wallet API
A Node.js wrapper around Blockchain.com's Service-My-Wallet API. Written in TypeScript to provide you with all that autocomplete niceness.
Prerequisites
- A running instance of Service-My-Wallet.
- Some features are limited to users with a Blockchain.com API key.
- See Service-My-Wallet for more info.
Installation
npm i blockchain-wallet-ts
Usage
Import and initialize the Blockchain API.
;
Create a wallet.
;
Returns an instance of BlockchainWallet
.
Fetch wallet addresses
;
Returns an array of accounts attached to your wallet.
Check balance
;
Returns the overall balance of your wallet.
Create a payment
Wallet.pay
Send Bitcoin to multiple recipients
Wallet.payMany
License
This repository is licensed under the ISC license.
Copyright (c) 2019, Jørgen Vatle.