-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cmd
committed
Oct 18, 2023
1 parent
b391780
commit 0f2598a
Showing
5 changed files
with
146 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import { CoreDaemon } from '../src/index.js' | ||
|
||
const core = new CoreDaemon({ datapath: `${process.env.HOME}/.bitcoin` }) | ||
const core = new CoreDaemon({ | ||
datapath: `${process.env.HOME}/.bitcoin`, | ||
debug : true | ||
}) | ||
|
||
core.run(async (client) => { | ||
const block = await client.get_block() | ||
console.log(block) | ||
await core.run(async (client) => { | ||
const txdata1 = await client.get_tx('2c47eea8e2cea19baae3f33bd1c7ef6b760d871f6841ab88f10458ad35b9855d') | ||
console.log(txdata1) | ||
const txdata2 = await client.get_tx('46a32c829ad4f59dc68d0e7550ce2dc93bfd7141c0f41657f9418f6e320ee505') | ||
console.log(txdata2) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters