Infura.io C# API which uses RestEase to generate an API interface for the Infura API.
The following jsonrpc calls are implemented:
- GET
/v1/jsonrpc/{network}/methods
- GET
/v1/jsonrpc/{network}/{method}
- POST
/v1/jsonrpc/{network}
The following ticker calls are implemented:
- GET
/v1/ticker/symbols
- GET
/v1/ticker/{symbol}
- GET
/v1/ticker/{symbol}/full
The following blacklist calls are implemented:
- GET
/v1/blacklist
- GET
/v2/blacklist
Name | NuGet |
---|---|
Infura.io-api |
The following frameworks are supported:
- net 4.5
- net 4.6
- netstandard 1.1
- netstandard 2.0
IApiFactory factory = new ApiFactory();
IInfuraApi api = factory.Create(endpoint);
var methodsResponse = await api.GetMethodsAsync(EthereumNetworkType.rinkeby);
Console.WriteLine("GetMethodsAsync = " + JsonConvert.SerializeObject(methodsResponse, Formatting.Indented));
For more examples, see ConsoleAppDemo/Program.cs.