Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jreyesr/steampipe-plugin-blockchain
A Steampipe plugin to interface with the Blockchain.com API
https://github.com/jreyesr/steampipe-plugin-blockchain
bitcoin sql steampipe
Last synced: about 1 month ago
JSON representation
A Steampipe plugin to interface with the Blockchain.com API
- Host: GitHub
- URL: https://github.com/jreyesr/steampipe-plugin-blockchain
- Owner: jreyesr
- License: apache-2.0
- Created: 2023-02-24T23:55:01.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T02:33:27.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T23:24:55.614Z (3 months ago)
- Topics: bitcoin, sql, steampipe
- Language: Go
- Homepage: https://jreyesr.github.io/posts/steampipe-part-dos-bitcoin/
- Size: 71.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Steampipe plugin for BTC.com
This is a [Steampipe](https://steampipe.io) plugin that interfaces with the [BTC.com](https://btc.com) API and returns information about Bitcoin wallets and their transactions.
## Configuration
No configuration is required to use this plugin. Copy the `config/blockchain.spc` file to the Steampipe `config` directory.
## Usage
> **NOTE:** This examples use the wallet `1MusKqjbk497v4Jf1bkgSpKb4aUhjzfoqA`. This wallet was found on the [Bitcoin Abuse Database](https://www.bitcoinabuse.com), so it may be involved in shady operations! Indeed, it's reported multiple times as a "cryptocurrency giveaway scam".
Further muddying the waters, the reports themselves look like Platinum A+ Certified Spam (TM) too, advertising "bitcoin recovery services", soooo...
In other words, treat this wallet address with caution. It may be completely innocent, or it may be evil. Don't just go around sending it money because it appeared on these examples.
The report is atList details about a wallet:
```sql
select * from blockchain_wallet where address='1MusKqjbk497v4Jf1bkgSpKb4aUhjzfoqA'
```List all transactions that involve a certain account:
```sql
select * from blockchain_transaction where wallet='1MusKqjbk497v4Jf1bkgSpKb4aUhjzfoqA' order by time desc
```List details for a single transaction:
```sql
select * from blockchain_transaction where hash='c15459fc73e0d6c647cddc003beab6241475c479ed45dc7ae3743164f5cbd100'
```## Testing
Run `make`, then run `steampipe query`. Run `.inspect` inside of it to ensure that the plugin is loaded.
Alternatively, run `go build -o ~/.steampipe/plugins/hub.steampipe.io/plugins/jreyesr/blockchain@latest/steampipe-plugin-blockchain.plugin *.go`.
## Dashboard
There is a dashboard that can be used to explore Bitcoin wallets. You input a wallet address in the text combobox at the top, press Enter, and then wait until the widgets below get populated.
To show the wallet, run `cd mod` and `steampipe dashboard`, then choose the dashboard with title Single Wallet Monitor Dashboard.