public IActionResult GetBlockByHash(long blockIndex, string transactions = null)
        {
            Types.QueryBlock ret = handler.GetBlock(blockIndex, !string.IsNullOrEmpty(transactions));

            if (ret == null)
            {
                return(new NotFoundResult());
            }

            return(new OkObjectResult(ret));
        }
        public IActionResult GetBlock(string transactions = null)
        {
            Types.QueryBlock ret = handler.GetLastBlock(!string.IsNullOrEmpty(transactions));

            if (ret == null)
            {
                return(new NotFoundResult());
            }

            return(new OkObjectResult(ret));
        }