{"id":22191982,"url":"https://github.com/cryptape/ckb-rpc-mock-data","last_synced_at":"2026-01-04T13:02:14.369Z","repository":{"id":182466911,"uuid":"668540719","full_name":"cryptape/ckb-rpc-mock-data","owner":"cryptape","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-09T06:33:52.000Z","size":357,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-10T03:39:44.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ckb-rpc-mock-data.vercel.app","language":"Python","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/cryptape.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE.LOG","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":"2023-07-20T03:57:42.000Z","updated_at":"2024-09-09T06:05:31.000Z","dependencies_parsed_at":"2024-06-26T03:24:09.527Z","dependency_job_id":"f107a907-27e1-491d-b5a7-8cd449486679","html_url":"https://github.com/cryptape/ckb-rpc-mock-data","commit_stats":null,"previous_names":["gpblockchain/ckb-rpc-mock-data","cryptape/ckb-rpc-mock-data"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-rpc-mock-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-rpc-mock-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-rpc-mock-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-rpc-mock-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptape","download_url":"https://codeload.github.com/cryptape/ckb-rpc-mock-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227724139,"owners_count":17810036,"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-12-02T12:18:37.542Z","updated_at":"2026-01-04T13:02:14.311Z","avatar_url":"https://github.com/cryptape.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### CKB RPC Mock Data\n\n#### start \n```shell\npip install -r requirements.txt\npython api/index.py\n```\n\n### api\n\n#### get test\nclick link  http://localhost:5000/\n\n#### test\n\n- get \n  - get test message \n- post \n  - mock ckb rpc ,will check request ,if request == request.json ,return response.json \n\n#### JS Adapter Demo\n- When adding new test cases, you only need to focus on the RPC you want to call.\n```shell\n it(\"[tx]\",async ()=\u003e{\n        let data = request(\"http://127.0.0.1:5000/test/estimate_cycles/[tx]\")\n        let requestData = data['request']\n        let responseData = data['response'] \n        let RPCClient = new RPC(\"http://127.0.0.1:5000/test/estimate_cycles/[tx]\");\n        let tx = toTransaction(requestData[\"params\"][0])\n        // @ts-ignore\n        let response = await RPCClient.estimateCycles(tx)\n        expect(response.cycles).toEqual(responseData[\"result\"][\"cycles\"])\n})\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptape%2Fckb-rpc-mock-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptape%2Fckb-rpc-mock-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptape%2Fckb-rpc-mock-data/lists"}