Bitcoin query
Returns the latest 100 inputs and outputs on Bitcoin, where input address is 1Kd6zL…3swA or 3LCGsS…HFqh and output address is 1Kd6zL…3swA or 3LCGsS…HFqh: block height, timestamp time, transaction hash, transaction index, value and annotation.
What it returns
- block height
- timestamp time
- transaction hash
- transaction index
- value
- annotation
Filters
- input address is 1Kd6zL…3swA or 3LCGsS…HFqh
- output address is 1Kd6zL…3swA or 3LCGsS…HFqh
The query
query ($network: BitcoinNetwork!, $address: [String!], $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
bitcoin(network: $network) {
inputs(
date: {since: $from, till: $till}
inputAddress: {in: $address}
options: {desc: "block.height", limit: $limit, offset: $offset}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
transaction {
hash
index
}
value
inputAddress {
annotation
}
}
outputs(
date: {since: $from, till: $till}
outputAddress: {in: $address}
options: {desc: "block.height", limit: $limit, offset: $offset}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
transaction {
hash
index
}
value
outputAddress {
annotation
}
}
}
}
Variables
{
"limit": 100,
"offset": 0,
"address": [
"1Kd6zLb9iAjcrgq8HzWnoWNVLYYWjp3swA",
"3LCGsSmfr24demGvriN4e3ft8wEcDuHFqh"
],
"network": "bitcoin",
"dateFormat": "%Y-%m"
}
Similar queries
- Bitcoin balance using input outputs · Bitcoin · inputs
- bitcoin balance api · Bitcoin · inputs
- Details of Bitcoin Transaction · Bitcoin · Transactions
- Bitcoin — Balance of an address at a past date · Bitcoin · outputs
- 13_TxDetails_a6793e35 · Bitcoin · inputs