{"id":18709133,"url":"https://github.com/jojoee/raritygems","last_synced_at":"2025-10-06T13:32:02.810Z","repository":{"id":57460057,"uuid":"406367096","full_name":"jojoee/raritygems","owner":"jojoee","description":"Provably Rare Gem Rarity gems API","archived":false,"fork":false,"pushed_at":"2021-09-20T16:51:52.000Z","size":71,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T02:43:02.058Z","etag":null,"topics":["gem","nft","provably-rare-gem","rarity","web3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jojoee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-14T12:56:21.000Z","updated_at":"2023-08-03T06:38:23.000Z","dependencies_parsed_at":"2022-08-28T13:52:05.811Z","dependency_job_id":null,"html_url":"https://github.com/jojoee/raritygems","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jojoee/raritygems","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fraritygems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fraritygems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fraritygems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fraritygems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/raritygems/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fraritygems/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267827503,"owners_count":24150350,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["gem","nft","provably-rare-gem","rarity","web3"],"created_at":"2024-11-07T12:26:27.923Z","updated_at":"2025-10-06T13:31:57.741Z","avatar_url":"https://github.com/jojoee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raritygems\n\n[![CI and CD](https://github.com/jojoee/raritygems/actions/workflows/continuous-integration.yml/badge.svg?branch=master)](https://github.com/jojoee/raritygems/actions/workflows/continuous-integration.yml)\n[![PyPI version fury.io](https://badge.fury.io/py/raritygems.svg)](https://pypi.python.org/pypi/raritygems/)\n[![codecov](https://codecov.io/gh/jojoee/raritygems/branch/master/graph/badge.svg)](https://codecov.io/gh/jojoee/raritygems)\n\n[Provably Rare Gem Raritygems](https://gems.alphafinance.io/#/rarity) API, currently focused on mining.\n\n## Run on Google Colab\n\n```bash\n# 1. Install packages\n# !pip install --force-reinstall jsonschema==3.2.0\n!python --version\n!python -m pip --version\n!pip install web3==5.23.0\n!pip install raritygems==0.5.0\n\n# 2. Download \"raritygems_salt_finder\" and give permission to execute\n!wget --no-check-certificate 'https://docs.google.com/uc?export=download\u0026id=10K-ZTxj14_BrY_ZxupvOkGXYl2Eo9mEq' -O raritygems_salt_finder\n!chmod 755 raritygems_salt_finder\n```\n\n```python\n# 3. Run with Python\nfrom raritygems import raritygems\n\ndavid = raritygems.Miner(\n    user_address=\"0xxxxx\",\n    gem_kind=0,  # 0 = Turquoise, 1 = Pearl, ...\n    salt_finder_path=\"/content/raritygems_salt_finder\",\n    private_key=\"\",  # if \"\" is provided then it will only find a salt then exit\n    line_token=\"\",  # if \"\" is provided then it will not notify you via LINE\n)\ndavid.mine()\n```\n\nnote\n- If you got \"jsonschema\" error then click \"Runtime \u003e Restart and run all\".\n- \"raritygems_salt_finder\" is built by golang code that can be found here https://github.com/jojoee/raritygems/blob/master/main.go\n- You can check more about gem kind [here](https://github.com/jojoee/raritygems/blob/master/raritygems/helper/config.py)\n\n## How it works?\n\nIt basically finds a \"salt\" and sign a transaction for you. The program will do the following\n\n1. Get the information that needed for mining: `user_nonce` and `gem_difficulty`\n2. Use [raritygems_salt_finder](https://github.com/jojoee/raritygems#raritygems_salt_finder) to find a salt\n3. Sign a transaction to claim a gem\n4. Go back to step 1.\n\n## raritygems_salt_finder\n\nAt first, I start with Python and try to optimize it but I realize Go is must faster.\nSo, I write this \"raritygems_salt_finder\" part with Go language instead, and this is command I used to built it.\n\n```\n# to build \"raritygems_salt_finder\"\ngo build -o raritygems_salt_finder main.go\ngo build -o raritygems_salt_finder-0.5.0 main.go\n\n# to build \"raritygems_salt_finder\" for Google Colab\nGOOS=linux GOARCH=amd64 go build -o raritygems_salt_finder_linux main.go\nGOOS=linux GOARCH=amd64 go build -o raritygems_salt_finder_linux-0.5.0 main.go\n```\n\n## Feature\n\n- [ ] mining: auto update `gem_difficulty`\n- [ ] lint: setup linting: flask8\n- [x] ci-cd: pypi: publish to pypi\n- [x] ci-cd: CI \u0026 CD with GitHub Actions\n- [x] ci-cd: integrate semantic release\n- [ ] test: writing automated test\n- [ ] perf: performance evaluation\n- [ ] info: display your current balance\n- [ ] info: display your gems\n- [ ] info: estimate how many times you can mine (before your have no gas left)\n- [ ] gas: optimize gas price\n- [ ] parallel: make it support parallel / multi-threading\n- [ ] gpu: create GPU support version\n- [ ] noti: refactor notification message\n- [ ] noti: add more channels e.g. Facebook Messenger, email\n- [x] web3: auto claim gems\n- [ ] network: support Ethereum chain\n- [ ] network: support Fantom network\n- [ ] info: bot nickname\n- [ ] salt_finder: auto load by default when it is not provided\n\n## Project setup \u0026 CMD\n\nTODO\n\n```\nconda create --name raritygems python=3.7.11\nconda activate raritygems\npip uninstall raritygems -y \u0026\u0026 pip install .\ngo run main.go \\\n    -user-nonce=1234 \\\n    -user-address=0x28bc92e7b7e77d348fd262fb8e29da129308fbd3 \\\n    -chain-id=250 \\\n    -gem-difficulty=535996 \\\n    -gem-address=0x342EbF0A5ceC4404CcFF73a40f9c30288Fc72611 \\\n    -gem-entropy=0x000080440000047163a56455ac4bc6b1f1b88efadf17db76e5c52c0ca594fd9b \\\n    -gem-kind=0 \\\n    -salt=41543544848 \\\n    -n=800000 \\\n    -debug=true\n```\n\n## Other projects\n- [Provably-Rare-Gem-Miner](https://github.com/yoyoismee/Provably-Rare-Gem-Miner)\n- [ramen](https://github.com/dmptrluke/ramen)\n- [GemMiner-Go](https://github.com/TkzcM/GemMiner-Go)\n- [go-gem-miner](https://github.com/sorawit/go-gem-miner)\n\n## Ref\n- [Provably Rare Gem Raritygems](https://gems.alphafinance.io/#/rarity)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fraritygems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fraritygems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fraritygems/lists"}