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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal Engélibert
duniter
Merge requests
!1
GVA: heads and peers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
GVA: heads and peers
atelier-gva
into
dev
Overview
0
Commits
92
Pipelines
2
Changes
141
Closed
Pascal Engélibert
requested to merge
atelier-gva
into
dev
4 years ago
Overview
0
Commits
92
Pipelines
2
Changes
141
Add GVA network queries, with heads and peers query.
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
0026bb1d
92 commits,
4 years ago
141 files
+
5893
−
1725
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
141
doc/api/gva.md
0 → 100644
+
93
−
0
View file @ 0026bb1d
Edit in single-file editor
Open in Web IDE
# GVA API
GVA is a [graphql] API.
## Schema
See the playground of a GVA node:
*
https://g1.librelois.fr/gva
*
https://duniter-g1.p2p.legal/gva
## Batch support
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:
*
The maximum number of requests per 20 seconds is 10.
*
The size of a batch is limited to 5 requests.
*
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
}
}"}
]
```
Loading