Bitcoin and Lightning Network on Raspberry Pi by Harris Brakmić

Bitcoin and Lightning Network on Raspberry Pi by Harris Brakmić

Author:Harris Brakmić
Language: eng
Format: epub
ISBN: 9781484255223
Publisher: Apress


Our last step will be to send our transaction by using the command sendrawtransaction :bitcoin-cli -regtest sendrawtransaction $MY_SIGNED_RAW_TX

We will get a transaction ID back:dda761617c08b443ef652be64485b1741e128fe63b79d689186f0e974ef0b1be

This means that our transaction now got included in the node’s memory pool, often abbreviated as mempool. And it will probably be included in the one of the upcoming blocks. This of course depends on the fee we are willing to pay and how many older transactions are already waiting for inclusion. As we are working in regtest mode, this is not an issue for us, but in mainnet it could very quickly become one if we aren’t careful enough.

Now we can use gettransaction to check data it’s referring to:bitcoin-cli -regtest gettransaction \

dda761617c08b443ef652be64485b1741e128fe63b79d689186f0e974ef0b1be



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.