{"id":20300729,"url":"https://github.com/carnesen-archive/bitcoin-rpc-cli","last_synced_at":"2026-05-08T15:11:00.787Z","repository":{"id":93300525,"uuid":"166513731","full_name":"carnesen-archive/bitcoin-rpc-cli","owner":"carnesen-archive","description":"A Node.js command-line interface (CLI) for bitcoin's remote procedure call (RPC) interface","archived":false,"fork":false,"pushed_at":"2019-02-19T04:21:49.000Z","size":110,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T10:46:04.028Z","etag":null,"topics":["bitcoin","bitcoin-rpc","bitcoin-rpc-cli","cli","nodejs","rpc","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/carnesen-archive.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}},"created_at":"2019-01-19T06:20:50.000Z","updated_at":"2023-02-13T18:06:30.000Z","dependencies_parsed_at":"2023-04-18T13:47:52.291Z","dependency_job_id":null,"html_url":"https://github.com/carnesen-archive/bitcoin-rpc-cli","commit_stats":null,"previous_names":["carnesen/bitcoin-rpc-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnesen-archive%2Fbitcoin-rpc-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnesen-archive%2Fbitcoin-rpc-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnesen-archive%2Fbitcoin-rpc-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnesen-archive%2Fbitcoin-rpc-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carnesen-archive","download_url":"https://codeload.github.com/carnesen-archive/bitcoin-rpc-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241795672,"owners_count":20021509,"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","bitcoin-rpc","bitcoin-rpc-cli","cli","nodejs","rpc","typescript"],"created_at":"2024-11-14T16:20:44.594Z","updated_at":"2026-05-08T15:10:55.749Z","avatar_url":"https://github.com/carnesen-archive.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @carnesen/bitcoin-rpc-cli [![npm version](https://badge.fury.io/js/%40carnesen%2Fbitcoin-rpc-cli.svg)](https://badge.fury.io/js/%40carnesen%2Fbitcoin-rpc-cli) [![Build Status](https://travis-ci.com/carnesen/bitcoin-rpc-cli.svg?branch=master)](https://travis-ci.com/carnesen/bitcoin-rpc-cli)\n\nA Node.js command-line client for bitcoin's remote procedure call (RPC) interface\n\n## Install\n```\nnpm install --global @carnesen/bitcoin-rpc-cli\n```\n\nAlternatively, if you don't want to install the package you can run it as a one-off command using `npx`:\n```\n$ npx @carnesen/bitcoin-rpc-cli\n```\n\n## Usage\n\nUse the `--help` flag to get command usage:\n```\n$ bitcoin-rpc --help\nUsage: bitcoin-rpc \u003coptions\u003e\n\n   Bitcoin remote procedure call (RPC)\n\nOptions:\n\n   --method \u003cstr\u003e : Method name\n   [--params \u003cjson\u003e] : Named or positional params\n   [--configFilePath \u003cstr\u003e] : Absolute path of a bitcoin configuration file\n   [--format \u003cstr\u003e] : Format of the result\n                      Allowed values {'pretty', 'json'}\n                      (Default = 'pretty')\n```\n\nHere's an example of calling the `getnetworkinfo` method:\n\n```\n$ bitcoin-rpc --method getnetworkinfo\n{ version: 170000,\n  subversion: '/Satoshi:0.17.0/',\n...\n```\n\nParameters are passed as JSON string, either an array of positional params or an object of named params:\n```\n$ bitcoin-rpc --method getblockhash --params '[0]'\n0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206\n\n$ bitcoin-rpc --method getblockhash --params '{\"height\": 0}'\n0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206\n```\n\n## More information\nCheck out [the unit tests](src/__tests__) to see more examples of how it works. If you encounter any bugs or have any questions or feature requests, please don't hesitate to file an issue or submit a pull request on this project's repository on GitHub.\n\n## Related\n- [@carnesen/bitcoin-rpc](https://github.com/carnesen/bitcoin-rpc): A Node.js client library for bitcoin's remote procedure call (RPC) interface\n- [@carnesen/bitcoin-rpc-href](https://github.com/carnesen/bitcoin-rpc-href): A Node.js library for reading bitcoin's remote procedure call (RPC) configuration\n- [@carnesen/cli](https://github.com/carnesen/cli): A Node.js library for building command-line interfaces\n\n## License\n\nMIT © [Chris Arnesen](https://www.carnesen.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarnesen-archive%2Fbitcoin-rpc-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarnesen-archive%2Fbitcoin-rpc-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarnesen-archive%2Fbitcoin-rpc-cli/lists"}