{"id":21177286,"url":"https://github.com/codechain-io/codechain-rpc-js","last_synced_at":"2025-07-09T22:30:33.272Z","repository":{"id":57202274,"uuid":"190538534","full_name":"CodeChain-io/codechain-rpc-js","owner":"CodeChain-io","description":"A thin wrapper of CodeChain RPC","archived":false,"fork":false,"pushed_at":"2020-07-29T01:14:17.000Z","size":27,"stargazers_count":4,"open_issues_count":3,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-28T03:06:02.096Z","etag":null,"topics":["javascript","rpc","sdk"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeChain-io.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":"2019-06-06T07:48:54.000Z","updated_at":"2020-07-29T01:14:19.000Z","dependencies_parsed_at":"2022-09-17T12:01:24.181Z","dependency_job_id":null,"html_url":"https://github.com/CodeChain-io/codechain-rpc-js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/CodeChain-io/codechain-rpc-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-rpc-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-rpc-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-rpc-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-rpc-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeChain-io","download_url":"https://codeload.github.com/CodeChain-io/codechain-rpc-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Fcodechain-rpc-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504570,"owners_count":23618824,"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":["javascript","rpc","sdk"],"created_at":"2024-11-20T17:15:25.070Z","updated_at":"2025-07-09T22:30:33.036Z","avatar_url":"https://github.com/CodeChain-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CodeChain RPC JS\n=================\n\nCodeChain RPC JS is a JavaScript library that calls RPC to a CodeChain node.\n\nHow to install\n--------------\n\nIf you are using NPM, use the command below:\n\n```\nnpm install codechain-rpc --save\n```\n\nIf you prefer Yarn, use the command below:\n\n```\nyarn add codechain-rpc\n```\n\nExample\n-------\n\n```\nconst RPC = require(\"codechain-rpc\").default;\n\nasync function main() {\n  const rpc = new RPC(\"http://localhost:8080\");\n\n  const blockNumber = await rpc.chain.getBestBlockNumber();\n  console.log(`Current best block number: ${blockNumber}`);\n}\n\nmain().catch(console.error);\n```\n\nRPC list\n--------\n\nYou can find the RPC list in [this link](https://github.com/CodeChain-io/codechain/blob/master/spec/JSON-RPC.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Fcodechain-rpc-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodechain-io%2Fcodechain-rpc-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Fcodechain-rpc-js/lists"}