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

Implement get_project_stats API end point #9

Open
1 task
shrnkld opened this issue Sep 14, 2022 · 0 comments
Open
1 task

Implement get_project_stats API end point #9

shrnkld opened this issue Sep 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@shrnkld
Copy link
Contributor

shrnkld commented Sep 14, 2022

Important:
The data fields currently returned by this initial version of get_project_stats will change to match the definitions here: https://api.blocknet.co/#get-project-stats

Here is a sample response:

{
  "error": 0,
  "result": {
    "api_call_cost_aablock": "1.86627",
    "api_call_cost_ablock": "21.875",
    "api_call_cost_eth": "0.020989",
    "api_call_cost_sysblock": "173.773455",
    "api_call_cost_wsys": "201.573425",
    "amount_aablock": "1.86627",
    "amount_ablock": "0.0",
    "amount_eth": "0.0",
    "amount_sysblock": "0.0",
    "amount_wsys": "0.0",
    "api_key": "ng-qQKiKT2T5FGY5Ba_P9Cb3I-fj_ZC04slMbijnmeQ",
    "api_tokens": "6000000",
    "api_tokens_remaining": "6000000",
    "api_tokens_used": "0",
    "avax_address": "0x6b3757aA176F594B1bB7806Fea9A4Ec6E4fA5808",
    "eth_address": "0x22fea657760Bbae0c0b76e46ff0e7821A01BE8Ef",
    "expiry_time": "2022-08-17 19:27:21 UTC",
    "nevm_address": "0x9118e4076E1878Aaf84CbD7EcA78cE3cfa98b80C",
    "project_id": "244c7f0c-d845-44f5-af9a-c572bdd023d9",
    "project_type": "XQuery", 
    "start_time": "2022-08-17 18:27:21 UTC",
    "status": "active",
    "tier": 0
  }
}

To do:

  • implement the get_project_stats API end point to enable the dashboard to display the data returned for a specific project (via the view project info button)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants