public async void ShouldReturnBlockHeader() { var getBlock = new NeoGetBlock(Client); var blockByIndex = await getBlock.SendRequestAsync(Settings.GetBlockHash()); Assert.NotNull(blockByIndex); }
public NeoApiBlockService(IClient client) : base(client) { GetBestBlockHash = new NeoGetBestBlockHash(client); GetBlock = new NeoGetBlock(client); GetBlockSerialized = new NeoGetBlockSerialized(client); GetBlockCount = new NeoGetBlockCount(client); GetBlockHash = new NeoGetBlockHash(client); }
public override async Task <Block> ExecuteAsync(IClient client) { var block = new NeoGetBlock(client); return(await block.SendRequestAsync(1)); }