https://github.com/bifrost-technologies/solnet.moonshot
C# SDK for Dexscreener's Moonshot program
https://github.com/bifrost-technologies/solnet.moonshot
csharp dexscreener moonshot moonshot-bot solana solnet wen-moon-ser
Last synced: about 1 month ago
JSON representation
C# SDK for Dexscreener's Moonshot program
- Host: GitHub
- URL: https://github.com/bifrost-technologies/solnet.moonshot
- Owner: Bifrost-Technologies
- License: mit
- Created: 2024-07-05T14:07:59.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T19:20:38.000Z (7 months ago)
- Last Synced: 2025-03-26T08:47:36.493Z (about 2 months ago)
- Topics: csharp, dexscreener, moonshot, moonshot-bot, solana, solnet, wen-moon-ser
- Language: C#
- Homepage:
- Size: 20.5 KB
- Stars: 6
- Watchers: 0
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Solnet.Moonshot
Solnet.Moonshot is a C# SDK & Client for the Moonshot on-chain program.### Dependencies
- NET8
- Solnet.Rpc
- Solnet.Wallet
- Solnet.Programs#### Search for the NET8 tag on nuget to find the latest versions of Solnet
# Quick start example:
```
using Solnet.Rpc;
using Solnet.Wallet;
using PublicKey = Solnet.Wallet.PublicKey;
using Solnet.Moonshot;var rpc = ClientFactory.GetClient(Cluster.MainNet);
MoonshotClient moonshotClient = new MoonshotClient(rpc);
Account botAccount = Account.FromSecretKey("SECRET_KEY_HERE");
PublicKey tokenAddress = new PublicKey("TOKEN_ADDRESS_HERE");
TradeOrder tradeOrder = new TradeOrder()
{
Amount = 8860000000000,
CollateralAmount = 5000000,
SlippageBps = 100};
string response = await moonshotClient.SendBuyAsync(botAccount, tokenAddress, tradeOrder);
Console.WriteLine(response);
Console.ReadKey();```