{"id":18929775,"url":"https://github.com/kevincharm/randao-accessor","last_synced_at":"2026-05-16T08:43:40.629Z","repository":{"id":181488088,"uuid":"666834544","full_name":"kevincharm/randao-accessor","owner":"kevincharm","description":"Access historical prevrandao values onchain","archived":false,"fork":false,"pushed_at":"2023-07-15T18:24:11.000Z","size":196,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T11:52:41.617Z","etag":null,"topics":["ethereum","randao","rlp","solidity"],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/kevincharm.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,"governance":null}},"created_at":"2023-07-15T18:23:59.000Z","updated_at":"2023-08-05T16:09:39.000Z","dependencies_parsed_at":"2023-07-15T20:29:27.912Z","dependency_job_id":null,"html_url":"https://github.com/kevincharm/randao-accessor","commit_stats":null,"previous_names":["kevincharm/randao-accessor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevincharm/randao-accessor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincharm%2Frandao-accessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincharm%2Frandao-accessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincharm%2Frandao-accessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincharm%2Frandao-accessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevincharm","download_url":"https://codeload.github.com/kevincharm/randao-accessor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevincharm%2Frandao-accessor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265802074,"owners_count":23830509,"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":["ethereum","randao","rlp","solidity"],"created_at":"2024-11-08T11:35:08.540Z","updated_at":"2026-05-16T08:43:35.600Z","avatar_url":"https://github.com/kevincharm.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"```diff\n- THIS CODEBASE HAS NOT BEEN AUDITED\n```\n\n# Randao Accessor\n\nAccess historical `prevrandao` values onchain by submitting RLP-encoded block headers and validating them against block hashes. When accessing blocks older than the previous 256 blocks, extra witness data is required to validate against [Axiom's block hash cache](https://docs.axiom.xyz/developers/reading-historic-block-data).\n\n## Generating inputs\n\nTo generate RLP-encoded block headers, you'll need access to an Ethereum execution RPC. See the `getBlockWithRLP` function in `test/util/rlp.ts` for an example of how to fetch block data and how to encode the data into RLP format.\n\nA witness can be generated using the [Axiom SDK](https://www.npmjs.com/package/@axiom-crypto/core) when accessing older blocks. See [Reading Historic Block Data](https://docs.axiom.xyz/developers/reading-historic-block-data) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevincharm%2Frandao-accessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevincharm%2Frandao-accessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevincharm%2Frandao-accessor/lists"}