Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farukterzioglu/btc-scraper
Bitcoin blockchain scraper
https://github.com/farukterzioglu/btc-scraper
bitcoin blockchain go golang
Last synced: 9 days ago
JSON representation
Bitcoin blockchain scraper
- Host: GitHub
- URL: https://github.com/farukterzioglu/btc-scraper
- Owner: farukterzioglu
- Created: 2019-07-01T20:59:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-02T08:11:57.000Z (over 5 years ago)
- Last Synced: 2023-03-21T14:09:40.998Z (over 1 year ago)
- Topics: bitcoin, blockchain, go, golang
- Language: Go
- Homepage:
- Size: 11.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Related article (tr) : [Bitcoin İle Konuşan Uygulamalar](https://link.medium.com/pUHIIt0poY)
Follow the instruction from : [Bitcoin'i Kodlamak (Coding Bitcoin, Turkish)](https://medium.com/@farukterzioglu/bitcoini-kodlamak-1-golang-ile-5e7833c0dc19) (or from [setup_notes.md](setup_notes.md))
Copy rpc.cert
`sudo cp ~/.btcd/rpc.cert /`
Send rpc request
`curl --cacert /rpc.cert --user myuser:SomeDecentp4ssw0rd --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' https://127.0.0.1:18556/`
Result;
`{"result":{"version":120000,"protocolversion":70002,"blocks":1,"timeoffset":0,"connections":0,"proxy":"","difficulty":1,"testnet":false,"relayfee":0.00001,"errors":""},"error":null,"id":"curltest"}`(For other requests, check -> [rpc.http](rpc.http))
### Resources
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)
https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs
https://github.com/btcsuite/btcd/blob/master/docs/json_rpc_api.md#ExampleGetBlockCount