Solnet is Solana's .NET integration library, a number of packages that implement features to interact with Solana from .Net applications.
Solnet.Serum is a package within the same Solnet. namespace that implements a Client for Serum, this project is in a
separate repository so it is contained, as the goal for Solnet was to be a core SDK.
- Decoding of Serum data structures:
MarketOpenOrdersAccountSlabs, which are used for order book data stored underOrderBookSideandOrderBookwhich holds both sidesEventQueue(Eventdata, used to process and filter forTradeEvents)
SerumPrograminstructions implemented:NewOrderV3CancelOrderV2CancelOrderByClientIdV2SettleFundsConsumeEventsInitOpenOrdersCloseOpenOrdersPrune
SerumClientclass which allows to:- Get these structures and decode them only by having their address
- Subscribing to these accounts in real time, getting notifications with their decoded structures
MarketManagerclass which has:- Various overloads of
NewOrder,NewOrders,CancelOrderandCancelAllOrders, these:- craft a transaction or several transactions, in the case where they interact with several orders
- request a signature using the defined delegate method
- submit the transaction to the cluster
- and subscribe to the confirmation of the signature, notifying the user when it happens
- if the transaction is subject to a custom error defined by the Serum Program here, it is parsed into the appropriate
SerumProgramErrorenum value
- Various overloads of
- Factory patterns for both
ISerumClientandIMarketManager
- net 6.0
- Solnet.Rpc v6.0.13
- Solnet.Wallet v6.0.13
- Solnet.Programs v6.0.13
The Solnet.Serum.Examples project features some examples on how to use both the IMarketManager and the ISerumClient, these examples include:
- Streaming market data directly into user-friendly values using the
IMarketManagerinterface - Submitting new orders and cancelling existing ones
We encourage everyone to contribute, submit issues, PRs, discuss. Every kind of help is welcome.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details