nautls / ergo-graphql

Ergo Platform GraphQL server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `used` field into addresses resolver

capt-nemo429 opened this issue · comments

Currently we have a way to check is an address is used by selecting transactionsCount field, if it is > 0 then the address is used, but I think we can verify this with a less resource spending query.

If used field is selected the resolver should look at node_outputs and return true if at least one box is owned by a given address.