bitshares / bitshares/bitshares-core

GraphQL plugin

Open
#1,827 4 comments 0 reactions 0 assignees View on GitHub
2a Discussion Needed
Dominant language
C++
Stars
1.2k
Forks
660
Avg merge
8h 17m
Merged PRs (30d)
26

Description

What you think about implement GraphQL plugin to bitshares-core?

GraphQL allow make requests for data you need.
For example, if I need get orders and balances of account.
I call:
```
get_full_accounts(['scientistnik'], false)
```
I get:
```
[ 'account',
'statistics',
'registrar_name',
'referrer_name',
'lifetime_referrer_name',
'votes',
'cashback_balance',
'balances',
'vesting_balances',
'limit_orders',
'call_orders',
'settle_orders',
'proposals',
'assets',
'withdraws',
'htlcs']
```
But, I need only `balances` and `limit_orders`.
In GraphQL:
```
{
account(name='scientistnik') {
balances {
asset_id
amount
}
limit_orders {
for_sale
sell_price
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, or entry points are named. Start by reviewing the bitshares-core plugin architecture and the GraphQL account query examples in the issue; done means a defined plugin can return only requested account fields such as balances and limit_orders.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, graphql
Domain
api, blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.