@chainlink/blockcypher
v0.0.3
Published
Chainlink adapter to query BTC address balance from blockcypher.com.
Downloads
14
Maintainers
Readme
Chainlink External Adapters to query BTC address balance from blockcypher.com
Configuration
The adapter takes the following environment variables:
API_KEY
: Optional blockcypher.com API key to use
Input Params
endpoint
: Optional endpoint param, defaults tobalance
Balance endpoint
dataPath
: Optional path where to find the addresses array, defaults toresult
confirmations
: Optional confirmations param, defaults to6
Address object:
address
: Address to querycoin
: Optional currency to query, defaults tobtc
chain
: Optional chain to query, defaults tomainnet
{
"id": "1",
"data": {
"addresses": [
{
"address": "3D8DJLwUXFfZvE8yJRu729MZ8uLy25SuLz",
"coin": "btc"
},
{
"address": "3EyjZ6CtEZEKyc719NZMyWaJpJG5jsVJL1",
"coin": "btc"
},
{
"address": "38bzm6nhQMFJe71jJw1U7CbgNrVNpkonZF",
"coin": "btc"
},
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"coin": "btc"
},
{
"address": "3FFgKaYkEf1M73QtzuY9DGqC7VeM2sAQhT",
"coin": "btc"
},
{
"address": "3KTeq879YjzhqkAXzZmdapJAVC6qz5qEth",
"coin": "btc"
},
{
"address": "35ULMyVnFoYaPaMxwHTRmaGdABpAThM4QR",
"coin": "btc"
}
],
"dataPath": "addresses",
"confirmations": 3
}
}
Output
{
"jobRunID": "1",
"data": {
"result": [
{
"address": "3D8DJLwUXFfZvE8yJRu729MZ8uLy25SuLz",
"coin": "btc",
"chain": "mainnet",
"balance": 44900000000
},
{
"address": "3EyjZ6CtEZEKyc719NZMyWaJpJG5jsVJL1",
"coin": "btc",
"chain": "mainnet",
"balance": 9899463044
},
{
"address": "38bzm6nhQMFJe71jJw1U7CbgNrVNpkonZF",
"coin": "btc",
"chain": "mainnet",
"balance": 307499838499
},
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"coin": "btc",
"chain": "mainnet",
"balance": 904070305884
},
{
"address": "3FFgKaYkEf1M73QtzuY9DGqC7VeM2sAQhT",
"coin": "btc",
"chain": "mainnet",
"balance": 80000
},
{
"address": "3KTeq879YjzhqkAXzZmdapJAVC6qz5qEth",
"coin": "btc",
"chain": "mainnet",
"balance": 264148085712
},
{
"address": "35ULMyVnFoYaPaMxwHTRmaGdABpAThM4QR",
"coin": "btc",
"chain": "mainnet",
"balance": 2601100000
}
]
},
"result": [
{
"address": "3D8DJLwUXFfZvE8yJRu729MZ8uLy25SuLz",
"coin": "btc",
"chain": "mainnet",
"balance": 44900000000
},
{
"address": "3EyjZ6CtEZEKyc719NZMyWaJpJG5jsVJL1",
"coin": "btc",
"chain": "mainnet",
"balance": 9899463044
},
{
"address": "38bzm6nhQMFJe71jJw1U7CbgNrVNpkonZF",
"coin": "btc",
"chain": "mainnet",
"balance": 307499838499
},
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"coin": "btc",
"chain": "mainnet",
"balance": 904070305884
},
{
"address": "3FFgKaYkEf1M73QtzuY9DGqC7VeM2sAQhT",
"coin": "btc",
"chain": "mainnet",
"balance": 80000
},
{
"address": "3KTeq879YjzhqkAXzZmdapJAVC6qz5qEth",
"coin": "btc",
"chain": "mainnet",
"balance": 264148085712
},
{
"address": "35ULMyVnFoYaPaMxwHTRmaGdABpAThM4QR",
"coin": "btc",
"chain": "mainnet",
"balance": 2601100000
}
],
"statusCode": 200
}