Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
8cfc82d2
Commit
8cfc82d2
authored
4 years ago
by
Éloïs
Browse files
Options
Downloads
Plain Diff
Merge branch 'doc-gva' into dev
parents
591f3341
f8db3435
No related branches found
No related tags found
1 merge request
!1367
[doc] GVA examples
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/api/gva.md
+69
-0
69 additions, 0 deletions
doc/api/gva.md
with
69 additions
and
0 deletions
doc/api/gva.md
+
69
−
0
View file @
8cfc82d2
...
...
@@ -13,6 +13,10 @@ See the playground of a GVA node:
It is possible to send a batch of graphql requests. The size of a batch is limited to 5 requests (No limit for whitelisted ip).
This is useful when the same query is repeated multiple times, and to allow the server to execute the queries in parallel.
The playground does not support batch requests.
## Anti-spam limitations
These limitations apply only to non-whitelisted IPs:
...
...
@@ -22,3 +26,68 @@ These limitations apply only to non-whitelisted IPs:
*
For paged requests, the pageSize parameter must be between 1 and 1000.
[
graphql
]:
https://graphql.org/
## Examples
### Send a transaction
```
mutation {
tx(
rawTx: "Raw transaction..."
) {
hash
}
}
```
### Get transactions
```
query {
txsHistoryBc(script: "78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8") {
both {
pageInfo {
hasNextPage
startCursor
endCursor
}
edges {
node {
inputs
outputs
}
}
}
}
txsHistoryMp(pubkey: "78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8") {
sending {
inputs
outputs
}
receiving {
inputs
outputs
}
}
}
```
### Batch request
```
[
{"query": "{
idty(pubkey: \"D2meevcAHFTS2gQMvmRW5Hzi25jDdikk4nC4u1FkwRaU\") {
isMember
username
}
}"},
{"query": "{
idty(pubkey: \"Ds1z6Wd8hNTexBoo3LVG2oXLZN4dC9ZWxoWwnDbF1NEW\") {
isMember
username
}
}"}
]
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment