Merge pull request #13 from limpbrains/header
ADD: add blockchainBlock_header
This commit is contained in:
commit
47acb51149
3
index.js
3
index.js
@ -134,6 +134,9 @@ class ElectrumClient extends Client {
|
||||
blockchainScripthash_subscribe(scripthash) {
|
||||
return this.request('blockchain.scripthash.subscribe', [scripthash]);
|
||||
}
|
||||
blockchainBlock_header(height) {
|
||||
return this.request('blockchain.block.header', [height]);
|
||||
}
|
||||
blockchainBlock_headers(start_height, count) {
|
||||
return this.request('blockchain.block.headeres', [start_height, count]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user