go-substrate-rpc-client
go-substrate-rpc-client copied to clipboard
How to getKeys in a Map Storage query?
In polkadot JS i can disable an optional Map query option and get all the results, how do i do the same with this client? How can i get all the Keys and loop through them in a Map type of storage query?
In the polkadot JS api there are 2 methods on a storagemap: keys() and entries(), how do we achieve the same using this client?
@johnuopini check https://github.com/threefoldtech/substrate-client/blob/rename_bridge_burn_to_withdraw/bridge_withdraw.go#L104-L125
@johnuopini Does the answer from Dylan help? Alternatively, you could look into adjusting CreateStorageKey to support partial arguments since at this point, we error our if the number of hashes for a specific key does not match the number of provided arguments.
@johnuopini Does the answer from Dylan help? Alternatively, you could look into adjusting
CreateStorageKeyto support partial arguments since at this point, we error our if the number of hashes for a specific key does not match the number of provided arguments.
support for partial / leaving out optional arguments would be great 🙏🏽