-
Notifications
You must be signed in to change notification settings - Fork 9
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
(graphql) add sorter and filter for Smart Contract list #675
Comments
|
example: query {
smart_contracts(
input: { sorter: [{ sort_type: DESC, sort_value: EX_TX_COUNT }] }
) {
entries {
name
account_id
account {
eth_address
transaction_count
}
}
metadata {
total_count
after
before
}
}
}
{
"data": {
"smart_contracts": {
"entries": [
{
"account": {
"eth_address": "0x2503a1a79a443f3961ee96a8c5ec513638129614",
"transaction_count": 33
},
"account_id": "6841",
"name": "EIP20"
}
],
"metadata": {
"after": null,
"before": null,
"total_count": 1
}
}
}
} |
add new |
restful api use rpc to fetch ckb balance for responses , so doesn’t implement balance sorter for graphql query |
|
Not used in front-end yet |
I check the source database table, the new record was exist now, |
No description provided.
The text was updated successfully, but these errors were encountered: