-
Notifications
You must be signed in to change notification settings - Fork 101
Description
To enable FPI, GetAccountProofs was introduced. This endpoint returns a proof of the account's existence, alongside state headers: AccountHeader, StorageHeader and AccountCode. There is an implicit limitation to this workflow: StorageHeader only contains the top-level storage slot items (eg, for storage maps, only the root is returned, without any actual map information), so any transaction that attempts to get data related to a foreign account's storage map would fail.
A mechanism should be provided to allow querying for a specific item/key, in a way that enables FPI with procedures that look into any item, not just top-level values. I'm not sure if we would prefer to retrieve individual storage slots, or if it could be made more granular in order to request specific values of storage maps.
As a side note, if a workaround is needed with more urgency, maybe we could (in the client) get the full account object with the GetAccountDetails endpoint for now to work around this limitation.