Esempio n. 1
0
        public ResultWrapper <UInt256?> eth_getBlockTransactionCountByHash(Keccak blockHash)
        {
            SearchResult <Block> searchResult = _blockchainBridge.SearchForBlock(new BlockParameter(blockHash));

            if (searchResult.IsError)
            {
                return(ResultWrapper <UInt256?> .Fail(searchResult));
            }

            return(ResultWrapper <UInt256?> .Success((UInt256)searchResult.Object.Transactions.Length));
        }