{"id":26644953,"url":"https://github.com/bear102/solcoin","last_synced_at":"2026-06-20T08:31:22.170Z","repository":{"id":284069057,"uuid":"953718527","full_name":"bear102/solcoin","owner":"bear102","description":"A package for Solana token transactions","archived":false,"fork":false,"pushed_at":"2025-06-21T17:56:25.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T05:36:56.637Z","etag":null,"topics":["crypto","crypto-bot","pumpdotfun","python","solana"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bear102.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,"zenodo":null}},"created_at":"2025-03-24T00:49:27.000Z","updated_at":"2025-06-21T17:56:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"523a1b9d-9f94-48f9-b371-7304ba982bc2","html_url":"https://github.com/bear102/solcoin","commit_stats":null,"previous_names":["bear102/solcoin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bear102/solcoin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bear102%2Fsolcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bear102%2Fsolcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bear102%2Fsolcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bear102%2Fsolcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bear102","download_url":"https://codeload.github.com/bear102/solcoin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bear102%2Fsolcoin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34563535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["crypto","crypto-bot","pumpdotfun","python","solana"],"created_at":"2025-03-24T21:21:04.380Z","updated_at":"2026-06-20T08:31:22.159Z","avatar_url":"https://github.com/bear102.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/bear102/solcoin/blob/ad33e6a76674d24d95fd4a864a7afa15ee58127c/img/solcoin.png\" alt=\"Python Tennis Library\" width=\"450\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/bear102/solcoin\"\u003e\u003cimg src=\"https://img.shields.io/badge/GitHub-bear102-%2312100E.svg?style=flat\u0026logo=github\" alt=\"GitHub\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/python-blue\" alt=\"Python\"\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nSolcoin is a python package with many different solana token transaction\n\u003cbr\u003e\n**Full Docs**: https://solcoin.gitbook.io/docs\n\n## Features\n***Main***\n* Buy Tokens\n* Sell Tokens\n* Create Tokens\n* Transfer SOL\n* close accounts\n* WebSocket RPC Listeners\n\nOther\n* find token bonding curve from mint\n* find token prices from bonding curve\n* create pumpfun transaction data\n\n## Quickstart\n```python\npip install solcoin\n```\n\u003e More explanation at https://solcoin.gitbook.io/docs/pumpfun-tokens\n\n### Buy Tokens\n```python\n\nfrom solders.pubkey import Pubkey\nfrom solana.rpc.api import Client\nfrom solders.keypair import Keypair\n​\nimport solcoin.buy_tokens as buy\n​\nPUBLIC_KEY = \"your_account_pubkey_string\" # ex:G3tmXiWmgnhhjb4N12YK7QgmaqtRaCRaL6i4nx2ueKwr\nTOKEN_MINT = \"token_mint_string\" # ex:6oDn2PDvjtKYoWVp9cNNe1WCepjS8VQzhBRS8qmXpump\nmint_pubkey = Pubkey.from_string(TOKEN_MINT)\nclient = Client(\"your_RPC_url\") # ex:https://api.mainnet-beta.solana.com\n​\ntokensOrSolAmount = .1 # how many tokens or sol you want to purchase\ntokensOrSol = 'sol' # either 'token' or 'sol', whichever unit you want to buy in\nSLIPPAGE_PERCENT = 20\nPRIORITY_FEE = .000001 \n​\nprivate_key_base58 = \"private_key_base58_string\" # your base58 private key string\npayer_keypair = Keypair.from_base58_string(private_key_base58)\n​\n​\nsig, status = buy.purchase_token(mint_pubkey, client, tokensOrSolAmount, tokensOrSol, SLIPPAGE_PERCENT, PUBLIC_KEY, payer_keypair, PRIORITY_FEE, allow_analytics=True)\n​\nprint(sig) # prints the signature of the transaction\nprint(status) # prints the current status of the transaction\n```\n\n### Sell Tokens\n```python\nfrom solders.pubkey import Pubkey\nfrom solana.rpc.api import Client\nfrom solders.keypair import Keypair\n\nimport solcoin.sell_tokens as sell\n\nPUBLIC_KEY = \"your_account_pubkey_string\" # ex:G3tmXiWmgnhhjb4N12YK7QgmaqtRaCRaL6i4nx2ueKwr\nTOKEN_MINT = \"token_mint_string\" # ex:6oDn2PDvjtKYoWVp9cNNe1WCepjS8VQzhBRS8qmXpump\nmint_pubkey = Pubkey.from_string(TOKEN_MINT)\nclient = Client(\"your_RPC_url\") # ex:https://api.mainnet-beta.solana.com\n\ntokensOrSolAmount = 100 # how many tokens or sol or percent of coins you own you want to purchase\ntokensOrSol = 'percent' # either 'token' or 'sol' or 'percent, whichever unit you want to buy in\nSLIPPAGE_PERCENT = 20\nPRIORITY_FEE = .000001 \n\nprivate_key_base58 = \"private_key_base58_string\" # your base58 private key string\npayer_keypair = Keypair.from_base58_string(private_key_base58)\n\n\nsig, status = sell.sell_token(mint_pubkey, client, tokensOrSolAmount, tokensOrSol, SLIPPAGE_PERCENT, PUBLIC_KEY, payer_keypair, PRIORITY_FEE, allow_analytics=True)\n\n\nprint(sig) # prints the signature of the transaction\nprint(status) # prints the current status of the transaction\n```\n### Create Tokens\n```python\nfrom solana.rpc.api import Client\nfrom solders.keypair import Keypair\nfrom solders.keypair import Keypair\n​\nimport solcoin.create_tokens as create\n​\nPUBLIC_KEY = \"your_account_pubkey_string\" # ex:G3tmXiWmgnhhjb4N12YK7QgmaqtRaCRaL6i4nx2ueKwr\nSLIPPAGE_PERCENT = 20\nPRIORITY_FEE = .00001\ntokensOrSolAmount = .1 # how much you want to buy (initial dev buy)\ntokensOrSol = 'sol' # 'token' or 'sol'\nclient = Client(\"your_RPC_url\") # ex:https://api.mainnet-beta.solana.com\n​\n# generates a random mint keypair\nmint_keypair = Keypair()\nmint_pubkey = mint_keypair.pubkey()\n# the token mint's pubkey\nprint(mint_pubkey)\n​\nprivate_key_base58 = \"private_key_base58_string\" # your base58 private key string\npayer_keypair = Keypair.from_base58_string(private_key_base58)\n​\n# metadata about your new token\nform_data = {\n    'name': \"token name\",\n    'symbol': \"tokenSymbol\",\n    'description': \"description of token\",\n    'twitter': 'https://google.com',\n    'telegram': 'https://google.com',\n    'website': 'https://google.com',\n    'showName': 'true'\n}\nphotopath = r\"path\\to\\cover\\photo\\example.png\"\n​\nsig, status = create.create_token(mint_pubkey, client, tokensOrSolAmount, tokensOrSol, SLIPPAGE_PERCENT, PUBLIC_KEY, payer_keypair, PRIORITY_FEE, form_data, photopath, mint_keypair, allow_analytics=True)\n​\nprint(sig)\nprint(status)\n```\n## Fees\n0 fees\n[Fee Table](https://app.gitbook.com/o/8xxOO6VLhA1jpAKdlogo/s/TdmaylEM2A8iOQ6ExecB/~/changes/4/info/fees)\n\n## Security\n- Private keys **never leave your computer** unlike a lot of the competition\n\n- All transactions created, signed, and sent locally\n\n- Fully open source and transparent code at https://github.com/bear102/solcoin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbear102%2Fsolcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbear102%2Fsolcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbear102%2Fsolcoin/lists"}