This is a C# SDK for the Blockstream Satellite API.
Install vis nuget Install-Package Satellite.NET
.
To use Mainnet:
SatelliteApi api = new SatelliteApi();
To use Testnet:
SatelliteApi api = new SatelliteApi(true);
To use your own custom API:
SatelliteApi api = new SatelliteApi("http://localhost:....");
Call the desired method, for example
IEnumerable<OrderModel> orders = await api.GetSentOrdersAsync();
Task<InvoiceModel> BumpBidAsync(string orderId, string authToken, int bidIncrease);
Task<bool> CancelOrderAsync(string orderId, string authToken);
Task<InvoiceModel> CreateOrderAsync(int bid, string filePath, string message);
Task<OrderModel> GetOrderAsync(string orderId, string authToken);
Task<IEnumerable<OrderModel>> GetPendingOrdersAsync(DateTime? before = null);
Task<IEnumerable<OrderModel>> GetQueuedOrdersAsync(int? limit = null);
Task<IEnumerable<OrderModel>> GetSentOrdersAsync(DateTime? before = null);
Task<InfoModel> GetInfoAsync();
Task<Stream> RetrieveMessageAsync(int messageNum);
void ReceiveTransmissionsMessages(Action<EventSourceMessageEventArgs> onReceive, Action<DisconnectEventArgs> onDisconnection);
A Cli using all the functionality above is provided here.
- Tests
- Web interface