{"id":17725412,"url":"https://github.com/bifrost-technologies/solnet.pumpfun","last_synced_at":"2026-02-12T16:03:53.062Z","repository":{"id":258766946,"uuid":"875652324","full_name":"Bifrost-Technologies/Solnet.Pumpfun","owner":"Bifrost-Technologies","description":" C# SDK \u0026 Client for Pump.fun on Solana","archived":false,"fork":false,"pushed_at":"2024-10-21T22:56:39.000Z","size":14,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-30T12:04:50.466Z","etag":null,"topics":["bot","csharp","pump-fun","solana","solnet","trading"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bifrost-Technologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T14:46:49.000Z","updated_at":"2025-04-16T11:22:25.000Z","dependencies_parsed_at":"2024-10-25T20:09:21.260Z","dependency_job_id":"6baa1343-8585-45ef-9c6e-281cd99bc99b","html_url":"https://github.com/Bifrost-Technologies/Solnet.Pumpfun","commit_stats":null,"previous_names":["bifrost-technologies/solnet.pumpfun"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bifrost-Technologies/Solnet.Pumpfun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bifrost-Technologies%2FSolnet.Pumpfun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bifrost-Technologies%2FSolnet.Pumpfun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bifrost-Technologies%2FSolnet.Pumpfun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bifrost-Technologies%2FSolnet.Pumpfun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bifrost-Technologies","download_url":"https://codeload.github.com/Bifrost-Technologies/Solnet.Pumpfun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bifrost-Technologies%2FSolnet.Pumpfun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29371446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","csharp","pump-fun","solana","solnet","trading"],"created_at":"2024-10-25T16:04:24.242Z","updated_at":"2026-02-12T16:03:53.025Z","avatar_url":"https://github.com/Bifrost-Technologies.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solnet.Pumpfun\n  C# SDK \u0026 Client for Pump.fun on Solana\n\n#### Dependencies - Use NET8 tag on nuget to find latest versions of solnet\n- NET8.0\n- Solnet.RPC\n- Solnet.Wallet\n- Solnet.Programs\n\n\nHow to use the library to perform a 10 second buy/sell\n```\nusing Solnet.Programs;\nusing Solnet.Pumpfun;\nusing Solnet.Rpc;\nusing Solnet.Wallet;\n\n\nAccount _trader = Account.FromSecretKey(\"ENTER SECRET KEY HERE\");\nIRpcClient connection = ClientFactory.GetClient(\"RPC LINK HERE\");\nPumpfunClient pumpFun = new PumpfunClient(connection, _trader);\n\n//Buy the token.  Token Address  -  Sol Amount - Slippage Percent  \nawait pumpFun.Buy(\"CA/MINT ADDRESS HERE\", 0.001m, 10);\n\nawait Task.Delay(10000);\n\nPublicKey associatedUser = AssociatedTokenAccountProgram.DeriveAssociatedTokenAccount(_trader, new PublicKey(\"CA/MINT ADDRESS HERE\"));\nvar tokenbalance = await connection.GetTokenAccountBalanceAsync(associatedUser);\n\nawait Task.Delay(1000);\n\nawait pumpFun.Sell(\"CA/MINT ADDRESS HERE\", tokenbalance.Result.Value.AmountDecimal);\n```\n\nQuickstart AI logic template\n```\nusing Solnet.Programs;\nusing Solnet.Pumpfun;\nusing Solnet.Rpc;\nusing Solnet.Wallet;\n\n\nAccount _trader = Account.FromSecretKey(\"ENTER SECRET KEY HERE\");\nIRpcClient connection = ClientFactory.GetClient(\"RPC LINK HERE\");\nPumpfunClient pumpFun = new PumpfunClient(connection, _trader);\n\nbool living = true;\nwhile (living)\n{\n\n    //THINK \n    //Add logic here to determine what you should buy next then execute the code below to have your bot trade the tokens\n    //if (foundGoodToken)\n    //{\n\n        //DO\n        try\n        {\n            //Swap the token.  Token Address  -  Sol Amount  \n            await PerformTenSecondTrade(\"TOKEN ADDRESS\", 0.001m, pumpFun, _trader);\n\n        }\n        catch(Exception ex)\n        {\n            Console.WriteLine(ex.ToString());\n        }\n        //Freeze the loop in the example. you can remove this once you add logic to determine when to buy/sell\n        await Task.Delay(1000000000);\n   //}\n}\n\nstatic async Task PerformTenSecondTrade(string tokenAddress, decimal sol_amount, PumpfunClient pumpFun, Account _trader)\n{\n    try\n    {\n        //Buy the token.  Token Address  -  Sol Amount - Slippage Percent  \n        await pumpFun.Buy(tokenAddress, 0.001m, 10);\n\n        await Task.Delay(10000);\n\n        PublicKey associatedUser = AssociatedTokenAccountProgram.DeriveAssociatedTokenAccount(_trader, new PublicKey(tokenAddress));\n        var tokenbalance = await pumpFun.RpcClient.GetTokenAccountBalanceAsync(associatedUser);\n\n        await Task.Delay(1000);\n\n        await pumpFun.Sell(tokenAddress, tokenbalance.Result.Value.AmountDecimal);\n\n    }\n    catch (Exception ex)\n    {\n        Console.WriteLine(ex.ToString());\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbifrost-technologies%2Fsolnet.pumpfun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbifrost-technologies%2Fsolnet.pumpfun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbifrost-technologies%2Fsolnet.pumpfun/lists"}