Closed ckeshava closed 1 month ago
Does the account have a bunch of other objects? Is there a marker included?
Sometimes if an account has a bunch of objects, the first page doesn't have any of that type.
Thanks for the reply. I had made a mistake whilst specifying the account
value. This RPC appears to be working fine, as far as Verifiable Credentials
are concerned.
The documentation needs to be updated to state that "All ledger objects are supported inside the type
filter of the account_objects RPC." (After a brief perusal of the code, I don't see any reason to the contrary).
Summary
The
account_objects
request accepts atype
input parameter. Here are the reference docs. This is a request for incorporating additional ledger objects as inputs to this parameter. The documentation mentions only a few of the ledger objects. Ledger Objects likeDID
are not included on that list.Motivation
While this is not blocking critical functionality, it helps in obtaining relevant ledger objects faster. This parameter is especially helpful for quick visual inspection.
Solution
When a non-supported
type
is specified, the command fails silently. For instance, usingtype: "credential"
returns an empty array of account_objects, despite the said account holding appropriatecredential
ledger objects. This was tested against a custom feature branch.This lambda function handles the type filter and it looks correct, upon first glance. I'll need to dig deeper to understand the issue, or perhaps I'm specifying the
type
input incorrectly.