Babylon will have a new RPC to query big map value according to this link http://tezos.gitlab.io/babylonnet/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr
I tried using it with a new contract. I deployed this contract https://babylonnet.tzscan.io/KT1DT9YwHdSbZuVuZDjd1SMUcfXm57R5bE9v
If I understood correctly, the id of my big map should be 22
Knowing that my big map got initialized with a key tz1bwsEWCwSEXdRvnJxvegQZKeX5dj6oKEys
What is the correct way to get the value using either the cli or rpc?
I have tried:
tezos get element tz1bwsEWCwSEXdRvnJxvegQZKeX5dj6oKEys of big map 22
http://babylonnet-node.tzscan.io/chains/main/blocks/head/context/big_maps/22/tz1bwsEWCwSEXdRvnJxvegQZKeX5dj6oKEys
Both do not work. If I understand correctly, I will probably need to encode my key. I am unsure about what the required encoding is and can't seem to find an example that works.