can I broadcast a Transaction to the Bitcoin network if I use this plugin
Closed this issue · 4 comments
can I broadcast a Transaction to the Bitcoin network if I use this plugin
@YunhuiLiu140502, Unfortunately, this is not possible, this is an offline library that does not link the bitcoind node. If you wanna broadcast your raw hex transaction, you have to install your own bitcoind node, or using UI like https://www.blockstream.info/tx/push (or https://en.bitcoin.it/wiki/Transaction_broadcasting), or finding a third party service which providing public broadcast API like https://www.blockcypher.com/quickstart/. Just Sign Up and generate a secret token to call their API
if I have a bitcoind node,How do you use it in flutter.
@YunhuiLiu140502 , You can use https://pub.dev/packages/dio package to call sendrawtransaction
JSON RPC API to your own node
https://bitcoin.org/en/developer-reference#sendrawtransaction
@longhoangwkm Ok. Thank you for your answer. Thank you very much