public async Task <string> GetTransactionParametersAsync(IChainContext chainContext, Transaction transaction) { var address = transaction.To; IExecutive executive = null; try { executive = await _smartContractExecutiveService.GetExecutiveAsync(chainContext, address); return(executive.GetJsonStringOfParameters(transaction.MethodName, transaction.Params.ToByteArray())); } finally { if (executive != null) { await _smartContractExecutiveService.PutExecutiveAsync(chainContext, address, executive); } } }