protected Transaction CreateContractMethodCallTx(string hexData, VMType vmType) { return(CreateContractMethodCallTx(ByteString.CopyFrom(CryptoUtils.HexStringToBytes(hexData)), vmType)); }
private async Task <byte[]> StaticCallAsyncByteArray(string callInput) { return(await this.client.QueryAsync <byte[]>(this.Address, CryptoUtils.HexStringToBytes(callInput), this.Caller, VMType.Evm)); }
/// <summary> /// Decodes event data into event DTO. /// </summary> /// <typeparam name="T"></typeparam> /// <returns>Decoded event DTO.</returns> /// <see href="https://nethereum.readthedocs.io/en/latest/contracts/calling-transactions-events/"/> public T DecodeEventDto <T>() where T : new() { EventTopicDecoder eventTopicDecoder = new EventTopicDecoder(); return(eventTopicDecoder.DecodeTopics <T>(this.Topics, CryptoUtils.BytesToHexString(this.Data))); }