gecko/lib/query.dart

56 lines
1.3 KiB
Dart
Raw Normal View History

const String getHistory = r'''
2020-12-21 22:34:14 +01:00
query ($pubkey: String!, $number: Int!, $cursor: String) {
2020-12-21 03:59:25 +01:00
txsHistoryBc(
pubkeyOrScript: $pubkey
2020-12-21 22:34:14 +01:00
pagination: { pageSize: $number, ord: DESC, cursor: $cursor }
2020-12-21 03:59:25 +01:00
) {
both {
pageInfo {
hasPreviousPage
hasNextPage
2020-12-21 21:57:26 +01:00
startCursor
endCursor
2020-12-21 03:59:25 +01:00
}
edges {
direction
node {
currency
issuers
outputs
comment
writtenTime
}
}
}
}
txsHistoryMp(pubkey: $pubkey) {
receiving {
currency
issuers
comment
outputs
writtenTime
}
sending {
currency
issuers
comment
outputs
writtenTime
}
}
currentUd {
amount
base
}
}
''';
const String getxBalance = r'''
query ($pubkey: String!) {
balance(script: "$pubkey") {
amount
base
}
''';