Merge pull request #13 from limpbrains/header

ADD: add blockchainBlock_header
This commit is contained in:
Overtorment 2023-07-29 16:14:03 +00:00 committed by GitHub
commit 47acb51149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);
}