MCPcopy Create free account
hub / github.com/bwt-dev/bwt / ChainTip

Function ChainTip

examples/wallet-tracker.js:28–30  ·  view source on GitHub ↗
(block_height, block_hash)

Source from the content-addressed store, hash-verified

26
27 const listeners = {
28 ChainTip (block_height, block_hash) {
29 console.log(`chain tip updated to ${block_height} ${block_hash}`)
30 },
31
32 async Transaction (txid, block_height) {
33 const tx = await bwt('tx', txid)

Callers 2

syncMethod · 0.85
dispatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected