graphql
Erigon GraphQL Interface: EIP-1767 Ethereum Node Data API
Enabling GraphQL
./erigon --graphqlEndpoints
Endpoint
Purpose
Schema Reference
Example Query
Last updated
Was this helpful?
Erigon GraphQL Interface: EIP-1767 Ethereum Node Data API
./erigon --graphqlLast updated
Was this helpful?
Was this helpful?
{
block(number: 21000000) {
hash
number
timestamp
transactions {
hash
from { address }
to { address }
value
}
}
}curl -X POST http://localhost:8545/graphql \
-H "Content-Type: application/json" \
-d '{"query": "{ block(number: 21000000) { hash number } }"}'