Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

12
13

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.

ビットコインプログラミング超入門編

Last updated at Posted at 2016-05-02

勉強がてらに手を動かしてみたので、それのレポジトリの公開・

いちようP2PKHの部分とビットコインのトランズアクションがどうなっているかわかるようになってます。

【準備編】

【testnetにアドレスを作ってみる】

  • 実行と押す (Windowsユーザーの方は、createKeys()の後に、 Console.ReadLine();という行を追加してください)

【testnetさっき作ったパブリックアドレスにtestnetからコインを送ってみる】

【トランズアクションを生成】

  • mMyWifにさっき作ったwallet import formatを入れる
  • mMyBitcoinAddress にさっき作ったアドレスを入れる
  • https://tbtc.blockr.io/address/info/{自分のビットコインアドレス} にして、自分の前のトランズアクションを確認する
  • mainの中のfunctionをPayToPublicKeyHash”{直前に確認したトランズアクション}”)
  • Value = Money.Coins (0.0003m)の部分を自分が送りたいアドレスに変える
    - 実行ボタンを押す

【トランズアクションをAPIを利用してブロードキャスト】

正しくブロードキャストできれば成功。出来ない場合は、何かおかしい部分あり。

*注意点
https://live.blockcypher.com/btc-testnet/pushtx/
こちら側でブロードキャストすると、なんでおかしいかちゃんと教えてくれるので、ブロードキャストに失敗しまくったら、こっちでやってみる。

以上!

12
13
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
12
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?