I've been able to decode the inputs to a contract function transaction given the ABI as follows:
var myFunction = contract.GetFunction("MyFunction"); var myFunctionTxn = await contract.Eth.Transactions.GetTransactionByHash .SendRequestAsync(myTxnHash); var inputs = myFunction.DecodeInput(myFunctionTxn.Input);
However, now I would like to do the same (i.e. retrieve a transaction hash and then decode the constructor inputs) for the constructor itself. I've looked at the
ContractABI.Functions - I can see both the Constructor and the Functions, but the types are not compatable.
Also, I can see the types of the inputs from this, but unfortunately not the values:
var ctor = contract.ContractBuilder.ContractABI.Constructor;
Is there an equivalent for
DecodeInput for constructors?
From here, it looks like this must be possible