arda-org / xSuite

🛠️ Init, Build, Test, Deploy MultiversX smart contracts in seconds. The full suite for efficiently developing high-quality contracts.
https://xsuite.dev
MIT License
13 stars 4 forks source link

Fetch only one value with Proxy #186

Closed lcswillems closed 3 months ago

lcswillems commented 3 months ago

If an account has a huge state, I might want to fetch only one value, i.e. to use /address/[address]/key/[key].

Right now, there is no method dedicated to this with Proxy.

Let's add a method Proxy.getAccountValue(address: string, key: string): string that returns the hex value associated to the key.

Let's also implement the endpoint /address/[address]/key/[key] in the light simulnet and add tests both for the light simulnet and the full simulnet.