示例#1
0
        /// <summary>
        /// Gets blocks recipts after given block height.
        /// </summary>
        /// <param name="height">The height of the block. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead.</param>
        /// <returns>IObservable&lt;Receipts&gt;</returns>
        public IObservable <Receipts> GetBlockReceipts(ulong height)
        {
            var route = $"{BasePath}/block/{height}/receipts";

            return(Observable.FromAsync(async ar => await route.GetJsonAsync <StatementsDTO>())
                   .Select(i => Receipts.FromDto(i)));
        }