elrond-sdk-erdpy
elrond-sdk-erdpy copied to clipboard
Added suport for contract queries using abi file
The same arguments as for contract calls have been added. The args are --abi
and --arguments-file
. Keep in mind the args should be placed inside a list
like such:
[
5,
{
{ "bech32": "erd1..." }
}
]
When performing queries without the abi file the response looks like this:
[
{
"function": "getSum",
"returnCode": "ok",
"returnMessage": "",
"returnDataParts": [
"0e"
]
}
]
But when using the abi file the response is parsed, and it looks like this:
[
14
]