{"id":18243175,"url":"https://github.com/prdsrm/pumpdotfun-go-sdk","last_synced_at":"2025-04-11T15:32:40.744Z","repository":{"id":261148840,"uuid":"883420506","full_name":"prdsrm/pumpdotfun-go-sdk","owner":"prdsrm","description":"Pump.fun Golang SDK, create, buy/sell tokens on pump.fun in Go.","archived":false,"fork":false,"pushed_at":"2024-12-01T00:44:11.000Z","size":45,"stargazers_count":11,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T01:25:28.048Z","etag":null,"topics":["pump-fun","solana"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prdsrm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T23:49:23.000Z","updated_at":"2024-12-01T00:44:15.000Z","dependencies_parsed_at":"2024-11-05T00:31:17.387Z","dependency_job_id":"89553ecd-3e77-49c0-b43f-3ad3d2d6e55c","html_url":"https://github.com/prdsrm/pumpdotfun-go-sdk","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"2f6340a8043b8d43e1a2e0b28a86a918785de9d8"},"previous_names":["prdsrm/pumpdotfun-go-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdsrm%2Fpumpdotfun-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdsrm%2Fpumpdotfun-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdsrm%2Fpumpdotfun-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdsrm%2Fpumpdotfun-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prdsrm","download_url":"https://codeload.github.com/prdsrm/pumpdotfun-go-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230806967,"owners_count":18283000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["pump-fun","solana"],"created_at":"2024-11-05T08:03:33.718Z","updated_at":"2024-12-22T08:15:05.722Z","avatar_url":"https://github.com/prdsrm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pump.fun Go SDK\n\n[![Go](https://img.shields.io/badge/Go-%2300ADD8.svg?\u0026logo=go\u0026logoColor=white)](#)\n\nA SDK allowing you to create, buy and sell pump.fun tokens in Golang.\n\n## Installation\n\n```bash\ngo get github.com/prdsrm/pumpdotfun-go-sdk\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"log\"\n    \t\"os\"\n\t\"context\"\n\n\t// General solana packages.\n\t\"github.com/gagliardetto/solana-go\"\n\t\"github.com/gagliardetto/solana-go/rpc\"\n\t\"github.com/gagliardetto/solana-go/rpc/ws\"\n\n\t// Pump.fun Go SDK.\n\tpumpdotfunsdk \"github.com/prdsrm/pumpdotfun-go-sdk\"\n)\n\ntype Client struct {\n\tRpcClient *rpc.Client\n\tWsClient  *ws.Client\n}\n\nfunc getClient(rpcUrl string, wsUrl string) *Client {\n\trpcClient := rpc.New(rpcUrl)\n\twsClient, err := ws.Connect(context.Background(), wsUrl)\n\tif err != nil {\n\t\tlog.Fatalln(\"ws connection error: \", err)\n\t}\n\treturn \u0026Client{RpcClient: rpcClient, WsClient: wsClient}\n}\n\nfunc main() {\n\tprivateKey, err := solana.PrivateKeyFromBase58(os.Getenv(\"PRIVATE_KEY\"))\n\tif err != nil {\n\t\tlog.Fatalln(\"please set PRIVATE_KEY environment variable:\", privateKey)\n\t}\n\trpcURL := rpc.MainNetBeta_RPC\n\twsURL := rpc.MainNetBeta_WS\n\tc := getClient(rpcURL, wsURL)\n\tmint := solana.NewWallet()\n\t_, err = pumpdotfunsdk.CreateToken(\n\t\tc.RpcClient,\n\t\tc.WsClient,\n\t\tprivateKey,\n\t\tmint,\n\t\t\"TEST\", // symbol\n\t\t\"TEST\", // name\n\t\t\"https://example.com\", // metadata uri\n\t\t100000000, // buy 0.1 SOL\n\t\t200, // 2% slippage\n\t)\n\tif err != nil {\n\t\tlog.Fatalln(\"can't create token:\", err)\n\t}\n}\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\nBSD-3-Clause license, because FreeBSD is the best OS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprdsrm%2Fpumpdotfun-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprdsrm%2Fpumpdotfun-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprdsrm%2Fpumpdotfun-go-sdk/lists"}