2020-12-23 18:18:47 +01:00
|
|
|
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(
|
2021-03-19 06:33:48 +01:00
|
|
|
script: $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
|
|
|
|
}
|
|
|
|
sending {
|
|
|
|
currency
|
|
|
|
issuers
|
|
|
|
comment
|
|
|
|
outputs
|
|
|
|
}
|
|
|
|
}
|
2021-01-08 02:10:23 +01:00
|
|
|
currentUd {
|
|
|
|
amount
|
|
|
|
base
|
|
|
|
}
|
|
|
|
balance(script: $pubkey) {
|
|
|
|
amount
|
|
|
|
base
|
|
|
|
}
|
2020-12-21 03:59:25 +01:00
|
|
|
}
|
|
|
|
''';
|
2020-12-23 18:18:47 +01:00
|
|
|
|
2021-01-06 05:04:54 +01:00
|
|
|
const String getBalance = r'''
|
2020-12-23 18:18:47 +01:00
|
|
|
query ($pubkey: String!) {
|
2021-03-21 00:35:32 +01:00
|
|
|
balance(script: $pubkey) {
|
|
|
|
amount
|
|
|
|
base
|
|
|
|
}
|
|
|
|
currentUd {
|
|
|
|
amount
|
|
|
|
base
|
|
|
|
}
|
2020-12-23 18:18:47 +01:00
|
|
|
}
|
|
|
|
''';
|
2021-11-23 04:11:45 +01:00
|
|
|
|
|
|
|
const String getWallets = r'''
|
|
|
|
query ($number: Int!, $cursor: String) {
|
|
|
|
wallets(pagination: {ord: ASC, pageSize: $number, cursor: $cursor}) {
|
|
|
|
pageInfo {
|
|
|
|
hasNextPage
|
|
|
|
endCursor
|
|
|
|
}
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
script
|
|
|
|
balance {
|
|
|
|
amount
|
|
|
|
base
|
|
|
|
}
|
|
|
|
idty {
|
|
|
|
isMember
|
|
|
|
username
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
''';
|
2021-11-29 05:53:21 +01:00
|
|
|
|
|
|
|
const String getId = r'''
|
|
|
|
query ($pubkey: PubKeyGva!) {
|
|
|
|
idty(pubkey: $pubkey) {
|
|
|
|
isMember
|
|
|
|
username
|
|
|
|
}
|
|
|
|
}
|
|
|
|
''';
|