{"id":19710910,"url":"https://github.com/monadicus/mentat","last_synced_at":"2025-08-02T01:04:26.042Z","repository":{"id":38812870,"uuid":"460934630","full_name":"monadicus/mentat","owner":"monadicus","description":"A Rust-based implementation of the Coinbase Rosetta SDK","archived":false,"fork":false,"pushed_at":"2023-03-07T23:58:25.000Z","size":13389,"stargazers_count":6,"open_issues_count":46,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T18:52:00.202Z","etag":null,"topics":["blockchain","coinbase","rosetta","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/monadicus.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}},"created_at":"2022-02-18T16:55:56.000Z","updated_at":"2023-01-10T18:12:12.000Z","dependencies_parsed_at":"2023-02-12T19:31:10.933Z","dependency_job_id":null,"html_url":"https://github.com/monadicus/mentat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Fmentat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Fmentat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Fmentat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monadicus%2Fmentat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monadicus","download_url":"https://codeload.github.com/monadicus/mentat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251549230,"owners_count":21607370,"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":["blockchain","coinbase","rosetta","rust"],"created_at":"2024-11-11T22:08:49.234Z","updated_at":"2025-04-29T17:31:27.341Z","avatar_url":"https://github.com/monadicus.png","language":"Rust","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.rosetta-api.org\"\u003e\n    \u003cimg width=\"90%\" alt=\"Rosetta\" src=\"https://www.rosetta-api.org/img/rosetta_header.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n   Mentat\n\u003c/h3\u003e\n\n# Overview\n\n`Mentat` is a zero dependency framework that makes implementing and calling the Rosetta API for a myriad of Blockchains easier.\nIt is written in Rust for high performance, and genercism such that it could be used for any Blockchain.\n\n# Features\n\n- Server.\n  - Default Not Implemented Routes\n  - Logging.\n  - Default support for Offline and Online mode.\n  - Easily run your Blockchain node with proper logging.\n- Client.\n\n- Keys(Different signature schemes are supported).\n  - Aleo/Snarkos\n- Easy To Containerize.\n\n# System Requirements\n\n`Mentat` itself is lightweight and easy to integrate anywhere.\nHowever, please refer to each Blockchain implementation using `Mentat` to see more requirements.\n\n# Usage\n\nAs specified in the [Rosetta API Principles](https://www.rosetta-api.org/docs/automated_deployment.html),\nall Rosetta implementations must be deployable via Docker and support running via either an\n[`online` or `offline` mode](https://www.rosetta-api.org/docs/node_deployment.html#multiple-modes).\n\n**YOU MUST INSTALL DOCKER FOR THE FOLLOWING INSTRUCTIONS TO WORK. YOU CAN DOWNLOAD\nDOCKER [HERE](https://www.docker.com/get-started).**\n\n## Install\n\nRunning the following commands will create a Docker image called `rosetta-snaroks:latest`.\n\nChange `rosetta-snarkos` with any other Mentat supported Blockchain.\n\n### From GitHub\n\nTo build the Docker image from the latest release, run:\n\n```text\ndocker build -t mentat-rosetta-snarkos:latest https://github.com/monadicus/mentat.git --build-arg SERVICE=rosetta-snarkos\n```\n\nReplace `rosetta-snarkos` with whatever service we offer.\n\n### From Source\n\nAfter cloning this repository, and changing directory to a service run:\n\n```text\nmake build-local\n```\n\n#### Run\n\nRunning the following commands will start a Docker container in\n[detached mode](https://docs.docker.com/engine/reference/run/#detached--d) with\na data directory at `\u003cworking directory\u003e/service-data` and the Rosetta API accessible\nat port `8080`.\n\n##### Configuration Environment Variables\n\nMAY VARY BETWEEN IMPLEMENTATIONS OF ROSETTA USING MENTAT.\n\n- `MODE` (optional) - Determines if Rosetta can make outbound connections. Options: `ONLINE` or `OFFLINE` (which defaults to `ONLINE`).\n- `NETWORK` (optional) - Service network to launch and/or communicate with. Options: `MAINNET` or `TESTNET` (which defaults to `MAINNET`).\n- `PORT` (required) - Which port to use for the Rosetta service.\n\n##### Mainnet:Online\n\n```text\ndocker run -d --rm --ulimit \"nofile=100000:100000\" -v \"$(pwd)/snarkos-data:/data\" -e \"MODE=ONLINE\" -e \"NETWORK=MAINNET\" -e \"PORT=8080\" -p 8080:8080 -p 30303:30303 rosetta-snarkos:latest\n```\n\n_If you cloned the repository, you can run `make run-mainnet-online`._\n\n##### Mainnet:Online (Remote)\n\n```text\ndocker run -d --rm --ulimit \"nofile=100000:100000\" -e \"MODE=ONLINE\" -e \"NETWORK=MAINNET\" -e \"PORT=8080\" -p 8080:8080 -p 30303:30303 rosetta-snarkos:latest\n```\n\n_If you cloned the repository, you can run `make run-mainnet-remote`._\n\n##### Mainnet:Offline\n\n```text\ndocker run -d --rm -e \"MODE=OFFLINE\" -e \"NETWORK=MAINNET\" -e \"PORT=8081\" -p 8081:8081 rosetta-snarkos:latest\n```\n\n_If you cloned the repository, you can run `make run-mainnet-offline`._\n\n##### Testnet:Online\n\n```text\ndocker run -d --rm --ulimit \"nofile=100000:100000\" -v \"$(pwd)/snarkos-data:/data\" -e \"MODE=ONLINE\" -e \"NETWORK=TESTNET\" -e \"PORT=8080\" -p 8080:8080 -p 30303:30303 rosetta-snarkos:latest\n```\n\n_If you cloned the repository, you can run `make run-testnet-online`._\n\n##### Testnet:Online (Remote)\n\n```text\ndocker run -d --rm --ulimit \"nofile=100000:100000\" -e \"MODE=ONLINE\" -e \"NETWORK=TESTNET\" -e \"PORT=8080\" -p 8080:8080 -p 30303:30303 rosetta-snarkos:latest\n```\n\n_If you cloned the repository, you can run `make run-testnet-remote`._\n\n##### Testnet:Offline\n\n```text\ndocker run -d --rm -e \"MODE=OFFLINE\" -e \"NETWORK=TESTNET\" -e \"PORT=8081\" -p 8081:8081 rosetta-snarkos:latest\n```\n\n_If you cloned the repository, you can run `make run-testnet-offline`._\n\n# Testing\n\nTODO @MACS-J1149\n\n# Issues\n\nInterested in helping fix issues in this repository? You can find to-dos in the [Issues](https://github.com/monadicus/mentat/issues) section.\n\n# Development\n\n- `cargo +nightly fmt --check --all` To check the formatting of the source code and all rosetta implementations.\n- `cargo clippy --all` To lint  the formatting of the source code and all rosetta implementations.\n- `make build-local SERVICE=rosetta-snarkos BRANCH=main` To build the local docker image. The arguments are optional and default to shown values.\n\n# License\n\nThis project is available open source under the terms of the MIT License.\n\n© 2022 Monadicus\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonadicus%2Fmentat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonadicus%2Fmentat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonadicus%2Fmentat/lists"}