public object ToJson() => new { removed = Removed, logIndex = LogIndex?.ToJson(), transactionIndex = TransactionIndex?.ToJson(), transactionHash = TransactionHash?.ToJson(), blockHash = BlockHash?.ToJson(), blockNumber = BlockNumber?.ToJson(), address = Address?.ToJson(), data = Data?.ToJson(), topics = Topics?.Select(t => t.ToJson()).ToArray() };
public object ToJson() { return(new { transactionHash = TransactionHash?.ToJson(), transactionIndex = TransactionIndex?.ToJson(), blockHash = BlockHash?.ToJson(), blockNumber = BlockNumber?.ToJson(), cumulativeGasUsed = CumulativeGasUsed?.ToJson(), gasUsed = GasUsed?.ToJson(), contractAddress = ContractAddress?.ToJson(), logs = Logs?.Select(x => x.ToJson()).ToArray(), logsBloom = LogsBloom?.ToJson(), root = Root?.ToJson(), status = Status?.ToJson() }); }
public object ToJson() { return(new { hash = Hash.ToJson(), nonce = Nonce.ToJson(), blockHash = BlockHash.ToJson(), blockNumber = BlockNumber.ToJson(), transactionIndex = TransactionIndex.ToJson(), from = From.ToJson(), to = To.ToJson(), value = Value.ToJson(), gasPrice = GasPrice.ToJson(), gas = Gas.ToJson(), input = Data.ToJson(), }); }