{"id":20733035,"url":"https://github.com/montyanderson/stdrpc","last_synced_at":"2025-04-23T22:56:01.352Z","repository":{"id":21930917,"uuid":"94468738","full_name":"montyanderson/stdrpc","owner":"montyanderson","description":"📡 ES6+ compatible, isomorphic JSON-RPC module for node and the browser.","archived":false,"fork":false,"pushed_at":"2023-11-15T19:46:40.000Z","size":170,"stargazers_count":24,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T22:55:43.017Z","etag":null,"topics":["bitcoin","ethereum","geth","js","json","json-rpc","node","rpc"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/stdrpc","language":"JavaScript","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/montyanderson.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-15T18:42:04.000Z","updated_at":"2024-06-17T22:23:40.000Z","dependencies_parsed_at":"2024-06-19T05:26:16.015Z","dependency_job_id":"a6d0f663-b42e-4b5c-8e74-6b914ac19a72","html_url":"https://github.com/montyanderson/stdrpc","commit_stats":{"total_commits":49,"total_committers":7,"mean_commits":7.0,"dds":0.6938775510204082,"last_synced_commit":"dec7a8386aa5f5eb0ffc57ebd1e742ac9827d4eb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fstdrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fstdrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fstdrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fstdrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montyanderson","download_url":"https://codeload.github.com/montyanderson/stdrpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528705,"owners_count":21445512,"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":["bitcoin","ethereum","geth","js","json","json-rpc","node","rpc"],"created_at":"2024-11-17T05:23:09.460Z","updated_at":"2025-04-23T22:56:01.335Z","avatar_url":"https://github.com/montyanderson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stdrpc\n\nES6+ compatible, isomorphic JSON-RPC module for node and the browser.\n\n[![Build Status](https://travis-ci.org/montyanderson/stdrpc.svg?branch=master)](https://travis-ci.org/montyanderson/stdrpc)\n[![Coverage Status](https://coveralls.io/repos/github/montyanderson/stdrpc/badge.svg?branch=master)](https://coveralls.io/github/montyanderson/stdrpc?branch=master)\n\n* Compatible with [Bitcoin](https://bitcoin.org/), [Ethereum](https://www.ethereum.org/), [Zcash](https://z.cash/), and many more.\n* Supports on-the-fly RPC methods using [Proxies](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Proxy)\n* Works in browser and in node\n* Very small codebase\n* Uses [axios](https://github.com/mzabriskie/axios) behind the scenes\n\n## Usage\n\n``` javascript\nconst rpc = stdrpc({\n\turl: \"http://localhost:8332\"\n});\n\nrpc.getbalance().then(balance =\u003e {\n\t// woo!\n});\n```\n\n## API\n\n### stdrpc(options)\n\nReturns a proxied object, returning a function for every method.\n\n#### options\n\n##### url\n\nType: `string`\n\nAddress of the RPC server\n\n##### timeout\n\nType: `number`\n\nConnection timeout. Default 0 (no timeout)\n\n##### username\n\nType: `string`\n\nUsername for authentication\n\n##### password\n\nType: `string`\n\nPassword authentication\n\n##### methodTransform\n\nType: `function`\n\nTransform function for method names\n\n``` javascript\nconst rpc = stdrpc({\n\turl: \"http://localhost:8545\",\n\tmethodTransform: require(\"decamelize\")\n});\n\nrpc.ethCoinbase() // becomes rpc.eth_coinbase()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontyanderson%2Fstdrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontyanderson%2Fstdrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontyanderson%2Fstdrpc/lists"}