GraphQL
Introduction
BlockPI SUI GraphQL API
// Request
curl --location --request POST 'https://sui.blockpi.network/v1/graphql/<YOUR_API_KEY>'
--header 'Content-Type: application/json'
--data-raw '{
"query": "query {
checkpoint1: checkpoint {
networkTotalTransactions
}
checkpoint2: checkpoint {
networkTotalTransactions
}
checkpoint3: checkpoint {
networkTotalTransactions
}
checkpoint4: checkpoint {
networkTotalTransactions
}
checkpoint5: checkpoint {
networkTotalTransactions
}
}",
"variables": {}
}'
// Result
{
"data": {
"checkpoint1": {
"networkTotalTransactions": 1234567890
},
"checkpoint2": {
"networkTotalTransactions": 1234567890
},
"checkpoint3": {
"networkTotalTransactions": 1234567890
},
"checkpoint4": {
"networkTotalTransactions": 1234567890
},
"checkpoint5": {
"networkTotalTransactions": 1234567890
}
}
}Last updated
Was this helpful?