forked from forbole/big-dipper-2.0-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.graphql
61 lines (61 loc) · 1.76 KB
/
account.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
query Account($address: String, $utc: timestamp) {
stakingParams: staking_params(limit: 1) {
params
}
account(where: {address: {_eq: $address}}) {
address
accountBalances: account_balances(limit: 1, order_by: {height: desc}) {
coins
}
delegations {
amount
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
}
validatorCommissions: validator_commissions(limit: 1, order_by: {height: desc}) {
commission
}
validatorStatuses: validator_statuses (limit: 1, order_by: {height: desc}) {
status
jailed
}
validatorSigningInfos: validator_signing_infos(order_by: {height: desc}, limit: 1) {
tombstoned
}
}
}
unbonding: unbonding_delegations(where: {completion_timestamp: {_gt: $utc}}) {
amount
completionTimestamp: completion_timestamp
validator {
validatorCommissions: validator_commissions(limit: 1, order_by: {height: desc}) {
commission
}
validatorInfo: validator_info {
operatorAddress: operator_address
}
}
}
redelegations(where: {completion_time: {_gt: $utc}}) {
amount
completionTime: completion_time
from: src_validator_address
to: dst_validator_address
}
delegationRewards: delegation_rewards {
amount
withdrawAddress: withdraw_address
validator {
validatorInfo: validator_info {
operatorAddress: operator_address
}
}
}
}
validator: validator(limit: 1, where: {validator_info: {self_delegate_address: {_eq: $address}}}) {
commission: validator_commission_amounts(limit: 1, order_by: {height: desc}) {
amount
}
}
}