Skip to content

Commit 534a833

Browse files
committed
2 parents 071c985 + d5053e7 commit 534a833

File tree

4 files changed

+456
-126
lines changed

4 files changed

+456
-126
lines changed

docs/Examples/Zcash/address-api.md

Lines changed: 299 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,299 @@
1+
---
2+
title: "Zcash API - Address Analysis, Transactions, Balance, Stats"
3+
4+
description: "Get Zcash address details, transaction history, balance, stats, inbound and outbound transactions using Zcash GraphQL API. Analyze Zcash blockchain addresses with real-time data."
5+
---
6+
7+
# Zcash API - Address Analysis, Transactions, Balance, Stats
8+
9+
Get comprehensive Zcash address details, transaction history, balance, statistics, and analyze inbound/outbound transactions using our Zcash GraphQL API. Access real-time and historical Zcash blockchain data for any address.
10+
11+
The below GraphQL APIs are examples of data points you can get with Bitquery for Zcash addresses.
12+
13+
If you have any question on other data points reach out to [support](https://t.me/Bloxy_info).
14+
15+
:::note
16+
17+
To query data via GraphQL **outside the Bitquery IDE**, you need to generate an API access token.
18+
19+
Follow the steps here to create one: [How to generate Bitquery API token ➤](https://docs.bitquery.io/docs/authorisation/how-to-generate/)
20+
21+
:::
22+
23+
<head>
24+
25+
<title>Zcash API - Address Analysis, Transactions, Balance, Stats</title>
26+
27+
<meta
28+
name="title"
29+
content="Zcash API - Address Analysis, Transactions, Balance, Stats"
30+
/>
31+
32+
<meta
33+
name="description"
34+
content="Get Zcash address details, transaction history, balance, stats, inbound and outbound transactions using Zcash GraphQL API. Analyze Zcash blockchain addresses with real-time data."
35+
/>
36+
37+
<meta
38+
name="keywords"
39+
content="Zcash API,Zcash address API,Zcash blockchain API,Zcash transaction API,Zcash address analysis,Zcash balance API,Zcash address stats,Zcash GraphQL API,Zcash address query,Zcash transaction history,Zcash address explorer,Zcash blockchain data,Zcash address balance,Zcash UTXO API,Zcash address transactions,blockchain API,crypto API,blockchain data,UTXO blockchain,Zcash"
40+
/>
41+
42+
<meta name="robots" content="index, follow" />
43+
44+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
45+
46+
<meta name="language" content="English" />
47+
48+
<meta property="og:type" content="website" />
49+
50+
<meta
51+
property="og:title"
52+
content="Zcash API - Address Analysis, Transactions, Balance, Stats"
53+
/>
54+
55+
<meta
56+
property="og:description"
57+
content="Get Zcash address details, transaction history, balance, stats, inbound and outbound transactions using Zcash GraphQL API."
58+
/>
59+
60+
<meta property="twitter:card" content="summary_large_image" />
61+
62+
<meta
63+
property="twitter:title"
64+
content="Zcash API - Address Analysis, Transactions, Balance, Stats"
65+
/>
66+
67+
<meta
68+
property="twitter:description"
69+
content="Get Zcash address details, transaction history, balance, stats, inbound and outbound transactions using Zcash GraphQL API."
70+
/>
71+
72+
</head>
73+
74+
---
75+
76+
### Table of Contents
77+
78+
- [Get Address Details Using Address Stats ➤](#get-address-details-using-address-stats)
79+
- [Balance of an Address using Inputs and Outputs ➤](#balance-of-an-address-using-inputs-and-outputs)
80+
- [Inbound Transaction Details ➤](#inbound-transaction-details)
81+
- [Outbound Transaction Details ➤](#outbound-transaction-details)
82+
- [ZCash Find Trace of an Address ➤](#zcash-find-trace-of-an-address)
83+
84+
---
85+
86+
## Get Address Details Using Address Stats
87+
88+
Get comprehensive statistics for any Zcash address including balance, transaction counts, first and last activity timestamps, and unique sender/receiver counts.
89+
90+
[Try Zcash Address Stats Query ➤](https://ide.bitquery.io/Address-Stats-for-Zcash)
91+
92+
<details>
93+
<summary>Click to expand GraphQL query</summary>
94+
95+
```graphql
96+
query MyQuery {
97+
bitcoin(network: zcash) {
98+
addressStats(address: { is: "t1UYsZVJkLPeMjxEtACvSxfWuNmddpWfxzs" }) {
99+
address {
100+
address
101+
balance(in: USD)
102+
firstActive {
103+
time
104+
}
105+
lastActive {
106+
time
107+
}
108+
outboundTransactions
109+
uniqueDaysWithTransfers
110+
uniqueReceivers
111+
uniqueSenders
112+
inboundTransactions
113+
}
114+
}
115+
}
116+
}
117+
```
118+
119+
</details>
120+
121+
## Balance of an Address using Inputs and Outputs
122+
123+
Calculate the balance of a Zcash address by aggregating all inputs and outputs. This query returns the total value received (inputs) and sent (outputs) for an address, along with transaction counts and date ranges.
124+
125+
[Try Zcash Address Balance Query ➤](https://ide.bitquery.io/Zcash-balance-of-an-address)
126+
127+
<details>
128+
<summary>Click to expand GraphQL query</summary>
129+
130+
```graphql
131+
{
132+
bitcoin(network: zcash) {
133+
inputs(
134+
date: { since: null, till: null }
135+
inputAddress: { is: "t1UYsZVJkLPeMjxEtACvSxfWuNmddpWfxzs" }
136+
) {
137+
count
138+
value
139+
value_usd: value(in: USD)
140+
min_date: minimum(of: date)
141+
max_date: maximum(of: date)
142+
}
143+
outputs(
144+
date: { since: null, till: null }
145+
outputAddress: { is: "t1UYsZVJkLPeMjxEtACvSxfWuNmddpWfxzs" }
146+
) {
147+
count
148+
value
149+
value_usd: value(in: USD)
150+
min_date: minimum(of: date)
151+
max_date: maximum(of: date)
152+
}
153+
}
154+
}
155+
```
156+
157+
</details>
158+
159+
## Inbound Transaction Details
160+
161+
Get a list of all inbound transactions for a Zcash address, including transaction hashes, timestamps, input/output values, and fees. This query returns transactions where the specified address is the receiver.
162+
163+
[Try Zcash Inbound Transactions Query ➤](https://ide.bitquery.io/Inbound-Transactions-Zcash)
164+
165+
<details>
166+
<summary>Click to expand GraphQL query</summary>
167+
168+
```graphql
169+
query MyQuery {
170+
bitcoin(network: zcash) {
171+
transactions(
172+
outputAddress: { is: "t1UYsZVJkLPeMjxEtACvSxfWuNmddpWfxzs" }
173+
options: { limit: 100 }
174+
) {
175+
block {
176+
timestamp {
177+
time
178+
}
179+
}
180+
feeValue
181+
hash
182+
index
183+
outputValue
184+
inputValue
185+
}
186+
}
187+
}
188+
```
189+
190+
</details>
191+
192+
## Outbound Transaction Details
193+
194+
Get a list of all outbound transactions for a Zcash address, including transaction hashes, timestamps, input/output values, and fees. This query returns transactions where the specified address is the sender.
195+
196+
[Try Zcash Outbound Transactions Query ➤](https://ide.bitquery.io/Outbound-Transactions-Zcash)
197+
198+
<details>
199+
<summary>Click to expand GraphQL query</summary>
200+
201+
```graphql
202+
query MyQuery {
203+
bitcoin(network: zcash) {
204+
transactions(
205+
inputAddress: { is: "t1UYsZVJkLPeMjxEtACvSxfWuNmddpWfxzs" }
206+
options: { limit: 100 }
207+
) {
208+
block {
209+
timestamp {
210+
time
211+
}
212+
}
213+
feeValue
214+
hash
215+
index
216+
outputValue
217+
inputValue
218+
}
219+
}
220+
}
221+
```
222+
223+
</details>
224+
225+
226+
## ZCash Find Trace of an Address
227+
228+
Trace the flow of funds for a Zcash address by following the coinpath. This query tracks inbound transactions to a specific address, showing the sender and receiver addresses, transaction details, block information, and the depth of the money flow path. Useful for investigating fund movements and understanding transaction relationships.
229+
230+
[Try Zcash Address Trace Query ➤](https://ide.bitquery.io/ZCash-Find-Trace-of-an-Address)
231+
232+
<details>
233+
<summary>Click to expand GraphQL query</summary>
234+
235+
```graphql
236+
query MyQuery {
237+
bitcoin(network: zcash) {
238+
coinpath(
239+
options: {limit: 10, desc: "block.height", direction: inbound}
240+
sender: {is: "t1QYB8sG7UEf74EZRPMo5KwXEiMUD7uCzhu"}
241+
depth: {lteq: 2}
242+
) {
243+
amount
244+
currency {
245+
name
246+
decimals
247+
}
248+
receiver {
249+
address
250+
type
251+
}
252+
sender {
253+
address
254+
type
255+
}
256+
transaction {
257+
hash
258+
index
259+
valueOut
260+
valueIn
261+
}
262+
block {
263+
timestamp {
264+
time
265+
}
266+
height
267+
}
268+
depth
269+
transactions {
270+
amount
271+
txHash
272+
}
273+
}
274+
}
275+
}
276+
```
277+
278+
</details>
279+
280+
---
281+
282+
:::tip
283+
284+
**Analyzing Multiple Addresses?**
285+
286+
You can query multiple addresses at once by using `{in: ["address1", "address2", "address3"]}` instead of `{is: "address"}` in the address filter.
287+
288+
:::
289+
290+
:::tip
291+
292+
**Need More Zcash Data?**
293+
294+
Check out our other Zcash examples:
295+
296+
- [UTXO Input/Output API ➤](https://docs.bitquery.io/docs/Examples/Transactions/input-output-api/)
297+
- [Transaction API ➤](https://docs.bitquery.io/docs/Examples/Transactions/transaction-api/)
298+
299+
:::

0 commit comments

Comments
 (0)