elrond-sdk-erdpy icon indicating copy to clipboard operation
elrond-sdk-erdpy copied to clipboard

Added suport for contract queries using abi file

Open popenta opened this issue 7 months ago • 0 comments

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
]

popenta avatar Jul 11 '24 12:07 popenta