cardano-community / cardanosharp-koios

6 stars 6 forks source link

GetBlockList always returns null #16

Closed markmihalyi closed 1 year ago

markmihalyi commented 2 years ago

Describe the bug I'm trying to call the GetBlockList function, but Content is null all the time.

To Reproduce

IBlockClient blockClient = RestService.For<IBlockClient>("https://api.koios.rest/api/v0");
ApiResponse<Block[]> blockList = await blockClient.GetBlockList();
Console.WriteLine(blockList.Content == null); // returns True
safestak-keith commented 1 year ago

Fixed with https://github.com/cardano-community/cardanosharp-koios/pull/19 and new package released at https://www.nuget.org/packages/CardanoSharp.Koios.Client/1.0.8