User Guide

Synapse-Blockchain User Guide

Synapse-Blockchain adds new Storm commands and Optic actions to allow you to ingest crypto currency transaction details using the Blockchain API.

NOTE: This power-up is considered beta and may still be subject to change.

Getting Started

The Blockchain API allows rate-limited free access without an API key.

Support for specifying an API key is currently blocked awaiting an API key from blockchain.com.

Check with your Admin to enable permissions and you should be ready to go!

Examples

Setting your personal API key

Support for specifying an API key is currently blocked awaiting an API key from blockchain.com.

Ingest transactions for a BTC address

Load the transactions for a bitcoin address:

> [ crypto:currency:address=(btc, bc1qwgnjray05ujhvufc2dkedxn6v0sgaz7e05p4mv) ] | blockchain.transactions --yield
crypto:currency:transaction=a9e7f631300a3f7b2c96a45c98b280a3
        .created = 2024/12/20 17:52:14.796
        :block = btc/654552
        :block:coin = btc
        :block:offset = 654552
        :fee = 0.00032774
        :hash = d507a3669fa93cd5fb7fbc3a007554a526ba0d2308490a628f5417b439b31edb
        :time = 2020/10/28 12:41:58.000
crypto:currency:transaction=8e481ca2be4e12a1c49c9b3929cb3c5e
        .created = 2024/12/20 17:52:14.856
        :block = btc/650640
        :block:coin = btc
        :block:offset = 650640
        :fee = 0.00055637
        :hash = 4c51d136237a76be0b1fffdcbd73df005e7d9b3dfc2cb4e352e0cc9d5a9c1571
        :time = 2020/09/30 10:52:02.000

Once the transactions are loaded, you can query to see who payments have been made to:

> crypto:payment:input:address=(btc, bc1qwgnjray05ujhvufc2dkedxn6v0sgaz7e05p4mv) -> crypto:currency:transaction -> crypto:payment:output -> crypto:currency:address
crypto:currency:address=btc/bc1qr8ac6yehq8pzxs2a9hu0xd3dukj7h0m3uxftt6
        .created = 2024/12/20 17:52:14.838
        :coin = btc
        :iden = bc1qr8ac6yehq8pzxs2a9hu0xd3dukj7h0m3uxftt6
crypto:currency:address=btc/34GXrpofefaHaB1H3qWmmYWLwCRv76t9Rn
        .created = 2024/12/20 17:52:14.828
        :coin = btc
        :iden = 34GXrpofefaHaB1H3qWmmYWLwCRv76t9Rn

Use of meta:source nodes

Synapse-Blockchain uses a meta:source node and -(seen)> light weight edges to track nodes observed from the Blockchain API.

> meta:source=198b9373e19bd70d7124f5baef03c616
meta:source=198b9373e19bd70d7124f5baef03c616
        .created = 2024/12/20 17:52:14.787
        :name = blockchain api