UPDATED: Sorry for Inconvenience, I have updated all my question and accept my apology , being naive user.
I have encoded getter functions of my contract i.e. 0x27e235e30000000000000000000000000000000000000000000000000000000000000000...............
. In this encoded function, there may be one, two or three arguments lets say address, string, uint. Such function may return one/two values i.e. uint/string. Now I want to call that encoded function and get its return values. which then i print them on console and also save into my array. I am trying following code, which is printing receipt of my transaction, as expected. But I want to print/save return values (returned by contract function).
try {
await web3.eth.sendTransaction(
{from:account1,
to:myContAddr,
data: myFunc
}).then(function(res){
console.log("Normal Getter", res);
myResult.push(res);
});
} catch (error) {
console.log(" Normal Getters: ERROR !");
}
Should I have to decode such encoded function to extract arguments and methodID separately, and then call it ???
Note: A list of such encoded function is provided to me and also i have ABIs.