LoginSignup
5
3

More than 5 years have passed since last update.

testnetでのビットコインの入手

Posted at

新しいアドレスの生成

$ bitcoin-cli getnewaddress
mgPHsFbpCoc7Y5pWCSwM7CFW4bQJpTbWvw

アドレスにアカウントを設定

$ bitcoin-cli setaccount mgPHsFbpCoc7Y5pWCSwM7CFW4bQJpTbWvw takahero
$ bitcoin-cli listaccounts
{
  "": 0.00000000,
  "takahero": 0.00000000
}

ワレット残高

$ bitcoin-cli getbalance
0.00000000

testnetでのビットコインの入手

1.png

b

  • ワレット残高確認
$ bitcoin-cli getbalance
1.30000000

自分宛てのUTXOを確認

$ bitcoin-cli listunspent
[
  {
    "txid": "d38ea103ce6fdbffcb100a6a21f23c2d390583beb74fba47118f5eda980ee176",
    "vout": 0,
    "address": "mgPHsFbpCoc7Y5pWCSwM7CFW4bQJpTbWvw",
    "account": "takahero",
    "scriptPubKey": "76a914098522e4533f105a7939686145346f71bd35fefe88ac",
    "amount": 1.30000000,
    "confirmations": 1,
    "spendable": true,
    "solvable": true,
    "safe": true
  }
]

トランザクション内容の確認

$ bitcoin-cli gettransaction d38ea103ce6fdbffcb100a6a21f23c2d390583beb74fba47118f5eda980ee176
{
  "amount": 1.30000000,
  "confirmations": 1,
  "blockhash": "000000000000002d64410852498b7caf40741bc6c16f707bf58046f5a49e0e14",
  "blockindex": 2,
  "blocktime": 1507443519,
  "txid": "d38ea103ce6fdbffcb100a6a21f23c2d390583beb74fba47118f5eda980ee176",
  "walletconflicts": [
  ],
  "time": 1507442414,
  "timereceived": 1507442414,
  "bip125-replaceable": "no",
  "details": [
    {
      "account": "takahero",
      "address": "mgPHsFbpCoc7Y5pWCSwM7CFW4bQJpTbWvw",
      "category": "receive",
      "amount": 1.30000000,
      "label": "takahero",
      "vout": 0
    }
  ],
  "hex": "01000000000101ab7d7d8d0c2451878305ec42085f3d56a62f71024b7f0f409184b5b4bd65108401000000171600149688486ab5df5c63b85f7ebd6d8c5e81ab619493ffffffff0280a4bf07000000001976a914098522e4533f105a7939686145346f71bd35fefe88ac22dac9742e00000017a914aec2000bf609a6d6fcebbe04b7d80dcbe31b770e8702483045022100f7e5f21c3d034c4999563e1569e0f5b8d90c2ec8c594511faa6d49ee562d36c402202b7dd64a11d8ce1ef1c6e6e71e5454be5c78cd7edec3813562b9ea6b15d7abe80121039e20fca831296eef092467d61fe17a80d17320c6e35162e1515945b88131f72100000000"
}
5
3
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
5
3