0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ビットコインエクスプローラー(ウォレットコマンド:fetch-header)

Posted at

ビットコインエクスプローラー(ウォレットコマンド:fetch-header)

原文(https://github.com/libbitcoin/libbitcoin-explorer/wiki/)

bx fetch header

指定したhashまたは、heightからブロックヘッダを取得する。
heightは、両方指定された場合、無視される。

Usage: bx fetch-header [-h] [--config value] [--format value] [--hash
value] [--height value]

情報:指定したhashまたは、heightからブロックヘッダを取得する。heightは、両方指定された場合、無視される。
libbitcoin serverと接続する必要がある。

Options (named):

-c [--config]        コンフィギュレーションファイルを指定        
-h [--help]          コマンドの説明を表示
-f [--format]        The output format. Options are 'info', 'json', and  
                     'xml', defaults to 'info'. 
                     アウトプットのフォーマットを指定。オプションは、'info','json',と’xml'。
                     デフォルトは、'info'           
-s [--hash]          Base16ハッシュ
-t [--height]        ブロックの高さ

このコマンドは、設定をサポートをしている。

Example 1

ブロックHeight 0

bx fetch-header
header
{
    bits 486604799
    hash 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
    merkle_tree_hash 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
    nonce 2083236893
    previous_block_hash 0000000000000000000000000000000000000000000000000000000000000000
    time_stamp 1231006505
    version 1
}

Example 2

ブロックHeight 1

header
{
    bits 486604799
    hash 00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048
    merkle_tree_hash 0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098
    nonce 2573394689
    previous_block_hash 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
    time_stamp 1231469665
    version 1
}

Example 3

ハッシュ ジェネシスブロック

header
{
    bits 486604799
    hash 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
    merkle_tree_hash 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
    nonce 2083236893
    previous_block_hash 0000000000000000000000000000000000000000000000000000000000000000
    time_stamp 1231006505
    version 1
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?