{"id":13562493,"url":"https://github.com/archway-network/cosmologger","last_synced_at":"2026-06-15T12:32:09.767Z","repository":{"id":57692572,"uuid":"453196075","full_name":"archway-network/cosmologger","owner":"archway-network","description":"Cosmologger listens to the NewBlock and TX events of a cosmos based network and logs the acquire information in a database for further usage.","archived":false,"fork":false,"pushed_at":"2022-05-25T14:54:40.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-05T07:03:22.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/archway-network.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-01-28T19:43:48.000Z","updated_at":"2022-08-15T17:02:26.000Z","dependencies_parsed_at":"2022-09-26T21:01:01.484Z","dependency_job_id":null,"html_url":"https://github.com/archway-network/cosmologger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/archway-network/cosmologger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archway-network%2Fcosmologger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archway-network%2Fcosmologger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archway-network%2Fcosmologger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archway-network%2Fcosmologger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archway-network","download_url":"https://codeload.github.com/archway-network/cosmologger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archway-network%2Fcosmologger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34363538,"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-15T02:00:07.085Z","response_time":63,"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":[],"created_at":"2024-08-01T13:01:09.195Z","updated_at":"2026-06-15T12:32:09.751Z","avatar_url":"https://github.com/archway-network.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# cosmologger\nThis is a logger tool that collects blocks and transactions as they are happening in a cosmos based network.\n\n## Install\nThe best way to install it is to do it through a bundle called [testnet-evaluator](https://github.com/archway-network/testnet-evaluator/). \n\n## Development\n\nTo have a development environment just run the following commands:\n```bash\ngit clone git@github.com:archway-network/cosmologger.git\ncd cosmologger\ndocker-compose up -d --build\n```\n\nThen enter the shell of the running dev-container:\n\n```bash\ndocker exec -it cosmologger sh\n```\n\nTo build and try:\n\n```bash\nclear \u0026\u0026 go build . \u0026\u0026 ./cosmologger\n```\n\n\n## Configuration\n\n### ENV Variables\n\n* **RPC_ADDRESS**: indicates the address to the RPC server\n* **GRPC_ADDRESS**: indicates the address to the GRPC server\n* **GRPC_TLS**: if you use TLS (ssl) security layer, this must be `true`\n\n* **POSTGRES_DB**: The name of `postgres` database\n* **POSTGRES_USER**: Database username\n* **POSTGRES_PASSWORD**: Password for the database user\n* **POSTGRES_PORT**: Port number of the database\n* **POSTGRES_HOST**: Host address of the server running postgres\n\n**Note**: `cosmologger` creates all the database schema on its first run, so make sure the database user has enough privilege to create tables and indexes.\n\n\n### Config file\nThere is a `config.json` file, which has to be mapped into the app directory of the container. i.e. be in the same path of the executable.\n\nHere is what is inside the conf file:\n\n```json\n{\n    \"grpc\":{\n        \"api_call_retry\": 20,\n        \"call_timeout\": 30\n    },\n\n    \"tendermint_client\": {\n        \"subscriber_name\":\"cosmologger\",\n        \"connect_retry\": 60\n    },\n\n    \"bech32_prefix\" : {\n        \"account\" :{\n            \"address\": \"archway\",\n            \"pubkey\": \"archway\"\n        },\n        \"validator\" :{\n            \"address\": \"archwayvaloper\",\n            \"pubkey\": \"archwayvaloperpub\"\n        },\n        \"consensus\" :{\n            \"address\": \"archwayvalcons\",\n            \"pubkey\": \"archwayvalconspub\"\n        }\n    }\n}\n```\n\n`grpc` keeps the GRPC configs:\n\n* `api_call_retry`: Since API calls sometimes fails due to network load or some other reasons, `cosmologger` tries multiple times to get the results. This parameter tells how many times it can try.\n* `call_timeout`: GRPC API timeout\n\n```json\n\"grpc\":{\n        \"api_call_retry\": 20,\n        \"call_timeout\": 30\n    }\n```\n\n`tendermint_client` keeps the RPC configs\n\n* `subscriber_name` is the arbitrary RPC subscriber\n* `connect_retry` indicates how many times `cosmologger` should try to connect to the RPC server if it is not available. This feature comes handy when the RPC server is not ready yet. `cosmologger` waits a second before every trial.\n\n```json\n\"tendermint_client\": {\n        \"subscriber_name\":\"cosmologger\",\n        \"connect_retry\": 60\n    }\n```\n\n`bech32_prefix` Keeps the prefixes of the addresses and keys, it has to be configured according to the network configs that is being used.\n\n```json\n\"bech32_prefix\" : {\n        \"account\" :{\n            \"address\": \"archway\",\n            \"pubkey\": \"archway\"\n        },\n        \"validator\" :{\n            \"address\": \"archwayvaloper\",\n            \"pubkey\": \"archwayvaloperpub\"\n        },\n        \"consensus\" :{\n            \"address\": \"archwayvalcons\",\n            \"pubkey\": \"archwayvalconspub\"\n        }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchway-network%2Fcosmologger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchway-network%2Fcosmologger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchway-network%2Fcosmologger/lists"}