{"id":19141486,"url":"https://github.com/erigontech/project-1","last_synced_at":"2026-06-17T08:32:10.128Z","repository":{"id":56544915,"uuid":"288127993","full_name":"erigontech/project-1","owner":"erigontech","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-01T15:11:40.000Z","size":218,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-15T03:44:21.856Z","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":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erigontech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.LESSER","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-17T08:41:37.000Z","updated_at":"2021-08-16T04:23:23.000Z","dependencies_parsed_at":"2022-08-15T20:40:35.638Z","dependency_job_id":null,"html_url":"https://github.com/erigontech/project-1","commit_stats":null,"previous_names":["erigontech/project-1","torquem-ch/project-1"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/erigontech/project-1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigontech%2Fproject-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigontech%2Fproject-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigontech%2Fproject-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigontech%2Fproject-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erigontech","download_url":"https://codeload.github.com/erigontech/project-1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erigontech%2Fproject-1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34441283,"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-17T02:00:05.408Z","response_time":127,"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-11-09T07:23:32.908Z","updated_at":"2026-06-17T08:32:10.111Z","avatar_url":"https://github.com/erigontech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Readme\n\nTo upgrade TG version - use exact git commit. For example:\n```\ngo get -u github.com/ledgerwatch/turbo-geth@213cf2cbec5792c9b23ab3c3ffa7f1b662d4188e\n```\n\nRun (this assumes turbo-geth is running on the same machine with option `--private.api.addr 127.0.0.1:9090`): \n```\ngo run . --private.api.addr 127.0.0.1:9090 --http.api example\n```\nalternatively\n```\nmake\n./project-1 --private.api.addr 127.0.0.1:9090 --http.api example\n```\n\nDocs: https://github.com/ledgerwatch/turbo-geth/blob/master/cmd/rpcdaemon/Readme.md\n\n## Custom API methods\nThe custom method is called `example_localFork`.\n\n### Input\nThe input consists of 3 paramters (`params`):\n1. Block number (or \"latest\" to use the latest available block) after which the execution will be applied\n2. Array of unsigned transactions. Each transaction has fields `from`, `to`, `gas` (hex number in quotes), `value` (in wei, hex number in quotes), `nonce` (hex value in quotes), `input` (hex value in quotes). The field `to` can be omitted, which means it is contract-creating transaction. The field `nonce` can be ommitted, in which case the correctness of the nonce is not checked.\n3. Array of queries (the same input as for `eth_call`). A query has the same fields, except for `nonce`.\n\n### Output\nThe output is the object with two fields `txResults`, and `queryResults`:\n1. The field `txResults` contains an array, with the same number of elements as the second input (transactions) has. Each element in the `txResults` corresponds to the transaction in the input. Each element has fields `UsedGas`, `Err`, and `ReturnData`. Fields `Err` and `ReturnData` can have `null` values.\n2. The field `queryResults` contains an array, with the same number of elements as the second input (transactions) has. Each element in the `txResults` corresponds to the transaction in the input. Each element has fields `UsedGas`, `Err`, and `ReturnData`. Fields `Err` and `ReturnData` can have `null` values.\n3. The field `blockNumber` returns a number equal to the block number at which the transactions and queries were executed.\n\n## Example\nInput\n```\ncurl -X POST -H \"Content-Type: application/json\" --data '{\"jsonrpc\":\"2.0\",\"method\":\"example_localFork\", \"params\": [\"latest\", [\n{\"from\": \"0x0000000000000000000000000000000000000000\", \"gas\": \"0x100000\", \"gasPrice\": \"0x1000\", \"value\": \"0x34000\", \"nonce\": \"0x0\", \"input\": \"\"},\n{\"from\": \"0x0000000000000000000000000000000000000000\", \"gas\": \"0x100000\", \"gasPrice\": \"0x1000\", \"value\": \"0x34000\", \"nonce\": \"0x1\", \"input\": \"\"}\n], [\n{\"from\": \"0x0000000000000000000000000000000000000000\", \"gas\": \"0x100000\", \"gasPrice\": \"0x1000\", \"value\": \"0x34000\", \"input\": \"\"},\n{\"from\": \"0x0000000000000000000000000000000000000000\", \"gas\": \"0x100000\", \"gasPrice\": \"0x1000\", \"value\": \"0x34000\", \"input\": \"\"}\n]], \"id\":1}' localhost:8545\n```\n\nOutput\n```\n{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"txResults\":[{\"UsedGas\":53000,\"Err\":null,\"ReturnData\":null},{\"UsedGas\":53000,\"Err\":null,\"ReturnData\":null}],\"queryResults\":[{\"UsedGas\":53000,\"Err\":null,\"ReturnData\":null},{\"UsedGas\":53000,\"Err\":null,\"ReturnData\":null}]}}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferigontech%2Fproject-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferigontech%2Fproject-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferigontech%2Fproject-1/lists"}