コード例 #1
0
        public async Task ShouldGetBlockWithTransactionsByHash()
        {
            var web3  = new Web3Rsk(rskUrl);
            var block = await web3.RskEth.GetBlockWithTransactionsByHash.SendRequestAsync("0x6cd513001e2d9c79847c797712407b9215e0fc74a4f0b368a42b3bc1a831bb57");

            Assert.Equal(59240000, block.GetMinimumGasPriceAsBigInteger());
        }
コード例 #2
0
        public async Task ShouldGetBlockWithTransactionsByNumber()
        {
            var web3  = new Web3Rsk(rskUrl);
            var block = await web3.RskEth.GetBlockWithTransactionsByNumber.SendRequestAsync(new HexBigInteger("0x143828"));

            Assert.Equal(59240000, block.GetMinimumGasPriceAsBigInteger());
        }