Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chain-prometheus-exporter: Expand to monitor number of transactions #233

Open
Thahara opened this issue Nov 5, 2024 — with Linear · 0 comments
Open

Chain-prometheus-exporter: Expand to monitor number of transactions #233

Thahara opened this issue Nov 5, 2024 — with Linear · 0 comments
Labels
[Type] Change Request Some visible functionality should be change.

Comments

Copy link
Contributor

Thahara commented Nov 5, 2024

The service currently monitors the account balance for a list of account, we would like for it to also monitor the number of transactions theses accounts have made.

Not sure if this data is easily available from chain, but one option is to fetch it from the CCDScan api via GraphQL query:

query {
  accountByAddress(
    accountAddress: "4MwARWeXdMs3YZ5MPPn2561ceani6AJAVTNPtwS6tceaG2qatK"
  ) {
    transactionCount
  }
}

Which returns:

{
  "data": {
    "accountByAddress": {
      "transactionCount": 68834832
    }
  }
}
@Thahara Thahara added the [Type] Change Request Some visible functionality should be change. label Nov 5, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Change Request Some visible functionality should be change.
Projects
None yet
Development

No branches or pull requests

1 participant