{"id":20410882,"url":"https://github.com/ates/jsonrpc","last_synced_at":"2026-04-18T12:35:04.593Z","repository":{"id":66923649,"uuid":"147124929","full_name":"ates/jsonrpc","owner":"ates","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-25T17:37:20.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T03:15:26.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ates.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":"2018-09-02T21:59:40.000Z","updated_at":"2022-01-25T17:37:15.000Z","dependencies_parsed_at":"2023-02-22T21:16:14.877Z","dependency_job_id":null,"html_url":"https://github.com/ates/jsonrpc","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ates/jsonrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fjsonrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fjsonrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fjsonrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fjsonrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ates","download_url":"https://codeload.github.com/ates/jsonrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fjsonrpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-15T05:48:58.671Z","updated_at":"2026-04-18T12:35:04.563Z","avatar_url":"https://github.com/ates.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonrpc - JSON-RPC library\n\n\n### JSON-RPC HTTP client\n\n#### Options\n\nName|Type|Default|Description\n----|----|-------|-----------\nip|string()||IP used to connect to\nport|inet:port_number()||Port to connect to\nuri|binary()|\u003c\u003c\"/json_rpc\"\u003e\u003e|URI used for requests\nresponse_timeout|non_neg_integer()|5000|How long wait response from server in milliseconds\nconnect_timeout|non_neg_integer()|5000|Connection timeout in milliseconds\nsend_timeout|non_neg_integer()|500|TCP send timeout in milliseconds\nretry|pos_integer()|5|Number of times client will try to reconnect on failure\nretry_timeout|non_neg_integer()|5000|Time between retries in milliseconds\nkeepalive|non_neg_integer() or infinity|infinity|Time between pings in milliseconds\n\n#### How to use\n\n```\n{ok, Pid} = jsonrpc_http_client:start_link(#{ip =\u003e \"localhost\", port =\u003e 8545}).\n\njsonrpc:make_req(Pid, eth_getBalance, [\u003c\u003c\"0xd3CdA913deB6f67967B99D67aCDFa1712C293601\"\u003e\u003e, latest]).\n{ok,#{id =\u003e 7,jsonrpc =\u003e \u003c\u003c\"2.0\"\u003e\u003e, result =\u003e \u003c\u003c\"0x18d809bef21b94d4\"\u003e\u003e}}\n\njsonrpc:make_req(Pid, eth_blockNumber, []).\n{ok,#{id =\u003e 2,jsonrpc =\u003e \u003c\u003c\"2.0\"\u003e\u003e,result =\u003e \u003c\u003c\"0xd6c8b4\"\u003e\u003e}}\n\n5\u003e jsonrpc:make_req(Pid, eth_chainId, []).\n{ok,#{id =\u003e 3,jsonrpc =\u003e \u003c\u003c\"2.0\"\u003e\u003e,result =\u003e \u003c\u003c\"0x1\"\u003e\u003e}}\n```\n\n### JSON-RPC TCP client\n\n#### Options\n\nName|Type|Default|Description\n----|----|-------|-----------\nip|inet:ip_address()||IP used to connect to\nport|inet:port_number()||Port to connect to\nresponse_timeout|non_neg_integer()|5000|How long wait response from server in milliseconds\nsend_timeout|non_neg_integer()|500|TCP send timeout in milliseconds\nretry_timeout|non_neg_integer()|5000|Time between retries in milliseconds\noneshot|boolean()|false|Connect - Send - Receive - Close\n\n#### How to use\n\n```\n{ok, Pid} = jsonrpc_tcp_client:start_link(#{ip =\u003e \"localhost\", port =\u003e 3333}).\n\njsonrpc:make_req(Pid, miner_getstat1, #{}).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fates%2Fjsonrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fates%2Fjsonrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fates%2Fjsonrpc/lists"}