{"id":21280955,"url":"https://github.com/consensysmesh/bentobox","last_synced_at":"2025-06-25T19:03:46.307Z","repository":{"id":87483148,"uuid":"77415046","full_name":"ConsenSysMesh/bentobox","owner":"ConsenSysMesh","description":"Asks an ethereum node for its contents (block, tx, logs, topics) dump them into a PSQL","archived":false,"fork":false,"pushed_at":"2017-01-04T05:57:57.000Z","size":142,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-21T13:02:22.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ConsenSysMesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-12-27T00:57:38.000Z","updated_at":"2020-09-03T21:38:16.000Z","dependencies_parsed_at":"2023-07-15T11:00:50.364Z","dependency_job_id":null,"html_url":"https://github.com/ConsenSysMesh/bentobox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ConsenSysMesh/bentobox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Fbentobox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Fbentobox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Fbentobox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Fbentobox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConsenSysMesh","download_url":"https://codeload.github.com/ConsenSysMesh/bentobox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsenSysMesh%2Fbentobox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261937032,"owners_count":23232845,"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":[],"created_at":"2024-11-21T10:43:16.212Z","updated_at":"2025-06-25T19:03:46.298Z","avatar_url":"https://github.com/ConsenSysMesh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Event Crawler\n\nIt reads the JSON RPC API of an ethereum node and dumps its results into\na PSQL database.\n\n### Run a PSQL database using docker\n\nJust use the command\n\n```\nmake run-psql\n```\n\nWill mount the dir `$HOME/.psql` and have a DB for you.\n\nYou need to setup your database if it is the first time using it.\nUse the instructions below.\n\n### Setup the database\n\nYou can have your database already, or you can use docker as above.\nThis script will set you up with your database.\n\nGet in a console able to use `psql` and Run\n\n```\npsql -U postgres\n```\n\n*TIP*: If you are running PSQL with docker,\nto access bash inside the container do\n\n```\ndocker exec -ti \u003cpsql-container\u003e /bin/bash\n```\n\nOnce inside you create your database with\n\n```\nCREATE DATABASE bentobox;\n\\q\n```\n\nNow you need to restore the schema. Do from the comamnd line\n\n```\npsql -U postgres bentobox \u003c database.sql\n```\n\nYou are good to go.\n\n### Retrieving program dependencies\n\n```\nmake boostrap\n```\n\n### Compiling the program\n\n```\nmake crawler\n```\n\nWill put your program in `./build/bin/crawler`. This is compiled for debian\nthough. To run it...\n\n### Running the program\n\n```\nmake run-crawler\n```\n\nWhich will run the program inside the dev container.\n\n#### Adding arguments to the executable inside the container\n\nTo add arguments, do, for example\n\n```\nARGS=\"--help\" make run-crawler\n```\n\n### Herman, I want to compile and run the program without docker\n\nFine. Do,\n\n```\nglide install # You need to have glide (https://github.com/Masterminds/glide)\ngo build -o build/bin/crawler main.go\n./build/bin/crawler\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsensysmesh%2Fbentobox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconsensysmesh%2Fbentobox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsensysmesh%2Fbentobox/lists"}