linter: cover docs/examples
This commit is contained in:
parent
d601b6a303
commit
ff6570fa45
@ -10,3 +10,4 @@ lib/
|
|||||||
migrate/
|
migrate/
|
||||||
scripts/
|
scripts/
|
||||||
test/
|
test/
|
||||||
|
docs/examples
|
||||||
|
|||||||
@ -96,7 +96,7 @@ async function callNodeApi() {
|
|||||||
await walletClient.open();
|
await walletClient.open();
|
||||||
|
|
||||||
// subscribe to events from all wallets
|
// subscribe to events from all wallets
|
||||||
walletClient.all()
|
walletClient.all();
|
||||||
|
|
||||||
// Fund default account.
|
// Fund default account.
|
||||||
// API call: walletClient.createAddress('test', 'default')
|
// API call: walletClient.createAddress('test', 'default')
|
||||||
|
|||||||
@ -7,7 +7,7 @@ const assert = require('assert');
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const master = bcoin.hd.generate();
|
const master = bcoin.hd.generate();
|
||||||
const key = master.derivePath("m/44'/0'/0'/0/0");
|
const key = master.derivePath('m/44\'/0\'/0\'/0/0');
|
||||||
const keyring = new bcoin.wallet.WalletKey(key.privateKey);
|
const keyring = new bcoin.wallet.WalletKey(key.privateKey);
|
||||||
const cb = new bcoin.MTX();
|
const cb = new bcoin.MTX();
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ const walletdb = new bcoin.wallet.WalletDB({
|
|||||||
|
|
||||||
wallet.on('tx', (tx) => {
|
wallet.on('tx', (tx) => {
|
||||||
console.log('Received transaciton:\n', tx);
|
console.log('Received transaciton:\n', tx);
|
||||||
})
|
});
|
||||||
|
|
||||||
await walletdb.addTX(tx);
|
await walletdb.addTX(tx);
|
||||||
})().catch((err) => {
|
})().catch((err) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user