Version: 0.13.0

InMemoryBitcoinWallet

Simple Bitcoin wallet based on bcoin.

Hierarchy

  • InMemoryBitcoinWallet

Implements

Index

Methods

Methods

broadcastTransaction

broadcastTransaction(transactionHex: string, network: string): Promise‹string›

Implementation of BitcoinWallet

Defined in bitcoin_wallet.ts:149

Parameters:

NameType
transactionHexstring
networkstring

Returns: Promise‹string›


getAddress

getAddress(): Promise‹string›

Implementation of BitcoinWallet

Defined in bitcoin_wallet.ts:123

Returns: Promise‹string›


getBalance

getBalance(): Promise‹number›

Implementation of BitcoinWallet

Defined in bitcoin_wallet.ts:116

Returns: Promise‹number›


getFee

getFee(): string

Implementation of BitcoinWallet

Defined in bitcoin_wallet.ts:162

Returns: string


sendToAddress

sendToAddress(address: string, satoshis: number, network: string): Promise‹string›

Implementation of BitcoinWallet

Defined in bitcoin_wallet.ts:128

Parameters:

NameType
addressstring
satoshisnumber
networkstring

Returns: Promise‹string›


Static newInstance

newInstance(network: string, peerUri: string, hdKey: string): Promise‹InMemoryBitcoinWallet

Defined in bitcoin_wallet.ts:31

Parameters:

NameType
networkstring
peerUristring
hdKeystring

Returns: Promise‹InMemoryBitcoinWallet