Rippled only supports the types check, escrow, offer, payment_channel, signer_list and state for filtering out account objects by type. We need to introduce a filter type for "HookState" objects to avoid having to featch-all and client side filteration.
We can omit the 'type' filter in the request to get all account objects and apply the filter at client side.
Motivation
If a client application needs to get just the Hook State objects it has to multiple requests to fetch all results pages containing lot of objects of all types and then perform the Hook State filter at client side. This is bad for client performance and user experience.
Solution
Rippled can support 'hook_state' type filter so it only returns HookState objects.
Summary
Rippled only supports the types
check
,escrow
,offer
,payment_channel
,signer_list
andstate
for filtering out account objects by type. We need to introduce a filter type for "HookState" objects to avoid having to featch-all and client side filteration.The above throws:
Workaround
We can omit the 'type' filter in the request to get all account objects and apply the filter at client side.
Motivation
If a client application needs to get just the Hook State objects it has to multiple requests to fetch all results pages containing lot of objects of all types and then perform the Hook State filter at client side. This is bad for client performance and user experience.
Solution
Rippled can support 'hook_state' type filter so it only returns HookState objects.