{"id":21177302,"url":"https://github.com/codechain-io/foundry-rpc-js","last_synced_at":"2025-06-24T19:43:55.307Z","repository":{"id":57241094,"uuid":"235271160","full_name":"CodeChain-io/foundry-rpc-js","owner":"CodeChain-io","description":" A thin wrapper of Foundry RPC","archived":false,"fork":false,"pushed_at":"2020-07-29T01:12:06.000Z","size":66,"stargazers_count":5,"open_issues_count":3,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-22T21:34:06.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":"2020-01-21T06:28:25.000Z","updated_at":"2023-08-16T06:15:06.000Z","dependencies_parsed_at":"2022-09-07T23:13:08.295Z","dependency_job_id":null,"html_url":"https://github.com/CodeChain-io/foundry-rpc-js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/CodeChain-io/foundry-rpc-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Ffoundry-rpc-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Ffoundry-rpc-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Ffoundry-rpc-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Ffoundry-rpc-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeChain-io","download_url":"https://codeload.github.com/CodeChain-io/foundry-rpc-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeChain-io%2Ffoundry-rpc-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261745038,"owners_count":23203316,"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-20T17:15:34.917Z","updated_at":"2025-06-24T19:43:55.212Z","avatar_url":"https://github.com/CodeChain-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foundry RPC JS [![Build Status](https://travis-ci.org/CodeChain-io/foundry-rpc-js.svg?branch=master)](https://travis-ci.org/CodeChain-io/foundry-rpc-js)\n\nFoundry RPC JS is a JavaScript library that calls RPC to a Foundry node.\n\n## How to install\n\nIf you are using NPM, use the command below:\n\n```\nnpm install foundry-rpc --save\n```\n\nIf you prefer Yarn, use the command below:\n\n```\nyarn add foundry-rpc\n```\n\n## Example\n\n```\nconst RPC = require(\"foundry-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\n## RPC list\n\nYou can find the RPC list in [this link](https://github.com/CodeChain-io/codechain/blob/master/spec/JSON-RPC.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Ffoundry-rpc-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodechain-io%2Ffoundry-rpc-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodechain-io%2Ffoundry-rpc-js/lists"}