Queries BTC address balance from blockcypher.com
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | API_KEY | blockcypher.com API key to use | string |
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | balance | balance |
balance
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | addresses | Array of objects with address information as defined below | array | |||||
confirmations | Confirmations parameter | number | 6 |
|||||
dataPath | Path where to find the addresses array | string | result |
Address objects within addresses
have the following properties:
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | address | Address to query | string | ||
chain | Chain to query (Ethereum testnet is Rinkeby) | string | mainnet , testnet |
mainnet |
|
coin | Currency to query | string | Ex. bch , btc , btsv , eth , ltc , zec |
btc |
Request:
{
"id": "1",
"data": {
"endpoint": "balance",
"dataPath": "addresses",
"addresses": [
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"coin": "btc"
}
]
},
"debug": {
"cacheKey": "MHxB7oFt1/IGrY026AfawQ3I9ok="
},
"rateLimitMaxAge": 20000
}
Response:
{
"jobRunID": "1",
"statusCode": 200,
"data": {
"responses": [
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"total_received": 2111956338035,
"total_sent": 2111956337488,
"balance": 547,
"unconfirmed_balance": 0,
"final_balance": 547,
"n_tx": 19,
"unconfirmed_n_tx": 0,
"final_n_tx": 19,
"txrefs": [
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"tx_hash": "37fcec0a27e2a8fc52a34fb2768b2b5b7218452d1e7a099bb0f67c7e87056564",
"tx_input_n": 0,
"tx_output_n": 0,
"value": 649142878298,
"ref_balance": 547,
"confirmations": 0,
"double_spend": false
}
],
"tx_url": "https://api.blockcypher.com/v1/btc/main/txs/"
}
],
"result": [
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"coin": "btc",
"chain": "mainnet",
"balance": "547"
}
]
},
"result": [
{
"address": "3ANaBZ6odMrzdg9xifgRNxAUFUxnReesws",
"coin": "btc",
"chain": "mainnet",
"balance": "547"
}
]
}
MIT License