Open peterargue opened 1 year ago
As I have already done related work for https://github.com/onflow/flow-go/issues/4564, I am assigning this to myself :pray:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This will be addressed by https://github.com/onflow/flow-go/issues/5999
Problem Definition
https://github.com/onflow/flow-go/issues/4564 adds support for a new Account keys endpoint to the REST API. To keep the APIs consistent, add endpoints to support the same queries to the gRPC API.
Proposed Solution
Add
GetAccountKeyAtLatestBlock
andGetAccountKeyAtBlockHeight
which take the following arguments:bytes address
uint32 key_index
uint64 block_height
(only forGetAccountKeyAtBlockHeight
)entities.Metadata metadata
and return the
entities.AccountKey
for the key belonging to that provide address atkey_index
.Definition of Done