yarn add @arkecosystem/core-graphql
You can play with the data using the GraphQL Playground, or programmatically posting querys directly to the endpoint. By default the endpoint is http://0.0.0.0:4005/graphql
, but can be changed in your configuration.
Get first blocks
{
blocks(orderBy: {field: "height", direction: ASC}) {
id,
payloadHash,
height,
numberOfTransactions
}
}
Get the list of transactions from a specific block
{
block(id: "13114381566690093367") {
timestamp,
generatorPublicKey,
transactions {
id,
type,
amount
}
}
}
Get the recipient info of each transaction
{
block(id: "13114381566690093367") {
generatorPublicKey,
transactions {
id,
recipient {
address,
balance
}
}
}
}
If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.