Sign inSign up

igtm/bitcoin

By igtm

Updated about 9 years ago

bitcoin playground

Image
0

5.7K

igtm/bitcoin repository overview

以下サンプルコマンド

Docker立ち上げ

docker run -d --name bitcoin igtm/bitcoin /sbin/init docker exec -it bitcoin /bin/bash

(-regtest はローカル環境で擬似ビットコインのブロックチェーンを試せるオプション)
nohup bitcoind -regtest -deamon &
bitcoin-cli -regtest generate 101 (ブロック作成。マイニング)
bitcoin-cli -regtest getblockcount (ブロック数確認)
bitcoin-cli -regtest getnewaddress <username>
bitcoin-cli -regtest getbalance <username> (残高確認)
bitcoin-cli -regtest sendtoaddress <アカウントのhash> <送りたいbitcoin数量>  (トランザクション。この時点ではまだ未確定)
bitcoin-cli -regtest listunspent (確定トランザクション表示)
bitcoin-cli -regtest listunspent 0 (未確定トランザクション込みで表示)
bitcoin-cli -regtest generate 1 (マイニング => トランザクションが確定する )
info

Tag summary

Content type

Image

Digest

Size

1.1 GB

Last updated

about 9 years ago

docker pull igtm/bitcoin