0
1

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.

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

Posted at

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

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

bx tx encode

Base16トランザクションをデコードする。

Encode an unsigned transaction as Base16.

未署名トランザクションをBase16でエンコードする。

bx tx-encode --help
Usage: bx tx-encode [-h] [--config VALUE] [--input VALUE] [--lock_time   
VALUE] [--output VALUE] [--script_version VALUE] [--version VALUE]       

情報:未署名トランザクションをBase16でエンコードする。

オプション (named):

-c [--config]        コンフィギュレーションファイルを指定        
-h [--help]          コマンドの説明を表示    
-i [--input]         TXHASH:INDEX:SEQUENCEフォーマットで、トランザクションのinputを指定する。
                     TXHASHは、BASE16を指定(transaction hash)。
                     インデックスは、32ビット。シーケンスは、任意の32ビットのインプットシーケンス、デフォルトは最大値。 
-l [--lock_time]     トランザクションロックタイムを指定。
                     
-o [--output]        TARGET:SATOSHI:SEEDでエンコードされた、トランザクションアウトプットのセット。
                     TARGETは、アドレス(stealthやpay-to-script-hashを含む)、または、Base16スクリプト。
                     SATOSHIは、64bitの消費量を指定。
                     SEEDは、stealthアウトプットのために必要とされ、他には使われない。
                     同じシードは、複数アウトプットではつかわれない。

-s [--script_version] pay-to-script-hashアドレスのバージョン。デフォルトは5。
                      アウトプットのアドレスを識別するために使われる。

-v [--version]       .トランザクションのバージョン、デフォルトは1.

Example 1

1インプット、アドレスアウトプット

bx tx-encode -i 97e06e49dfdd26c5a904670971ccf4c7fe7d9da53cb379bf9b442fc9427080b3:0 -o 1966U1pjj15tLxPXZ19U48c99EJDkdXeqb:45000
0100000001b3807042c92f449bbf79b33ca59d7dfec7f4cc71096704a9c526dddf496ee0970000000000ffffffff01c8af0000000000001976a91458b7a60f11a904feef35a639b6048de8dd4d9f1c88ac00000000
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?