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:
Name | Type |
---|---|
transactionHex | string |
network | string |
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:
Name | Type |
---|---|
address | string |
satoshis | number |
network | string |
Returns: Promise‹string›
Static
newInstance
▸ newInstance(network
: string, peerUri
: string, hdKey
: string): Promise‹InMemoryBitcoinWallet›
Defined in bitcoin_wallet.ts:31
Parameters:
Name | Type |
---|---|
network | string |
peerUri | string |
hdKey | string |
Returns: Promise‹InMemoryBitcoinWallet›