OpenScan GraphQL API

Endpoint: POST /api/v1/graphql

Example Queries:

# Get latest block
query {
  blocks(limit: 1) {
    number
    hash
    timestamp
    txCount
  }
}

# Get transaction
query {
  transaction(hash: "0x...") {
    hash
    from
    to
    value
    status
  }
}

# Get address info
query {
  address(hash: "0x...") {
    balance
    txCount
    isContract
  }
}

# Network stats
query {
  networkStats {
    latestBlock
    totalTransactions
    tps
  }
}