Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farukterzioglu/paywithbitcoin
A sample for Bitcoin UTXO model
https://github.com/farukterzioglu/paywithbitcoin
bitcoin bitcoin-wallet blockchain utxo
Last synced: 8 days ago
JSON representation
A sample for Bitcoin UTXO model
- Host: GitHub
- URL: https://github.com/farukterzioglu/paywithbitcoin
- Owner: farukterzioglu
- Created: 2019-10-04T20:52:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-20T21:07:33.000Z (about 5 years ago)
- Last Synced: 2024-11-10T04:39:22.105Z (2 months ago)
- Topics: bitcoin, bitcoin-wallet, blockchain, utxo
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
docker run --name bitcoind -d --volume /Users/[USER_NAME]/bitcoin_data:/root/.bitcoin -p 127.0.0.1:443:18443 farukter/bitcoind:regtest
docker exec -it bitcoind bashADD=$(bitcoin-cli getnewaddress)
bitcoin-cli generatetoaddress 101 $ADD
bitcoin-cli getwalletinfo
bitcoin-cli listunspent// Run the unit test, note the txId
bitcoin-cli getrawtransaction [TXID]
// Check inputs and outputsbitcoin-cli generate 1
// Note blockhash = [BLOCKHASH]bitcoin-cli getblock [BLOCKHASH]
// Note tx hashes => [TXHASH]bitcoin-cli getrawtransaction [TXHASH] 1
```