{"id":18701312,"url":"https://github.com/marinx/electrumrpc","last_synced_at":"2025-08-01T16:08:28.687Z","repository":{"id":45998315,"uuid":"220547664","full_name":"MarinX/electrumrpc","owner":"MarinX","description":"Golang JSON RPC client to talk with Electrum server","archived":false,"fork":false,"pushed_at":"2021-11-21T20:18:12.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T03:41:25.303Z","etag":null,"topics":["bitcoin","daemon","electrum","electrum-server","golang","rpc","wallet"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/MarinX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-08T21:06:38.000Z","updated_at":"2025-04-03T15:16:33.000Z","dependencies_parsed_at":"2022-09-10T06:11:59.969Z","dependency_job_id":null,"html_url":"https://github.com/MarinX/electrumrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MarinX/electrumrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Felectrumrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Felectrumrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Felectrumrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Felectrumrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarinX","download_url":"https://codeload.github.com/MarinX/electrumrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarinX%2Felectrumrpc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268256994,"owners_count":24221053,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"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":["bitcoin","daemon","electrum","electrum-server","golang","rpc","wallet"],"created_at":"2024-11-07T11:41:14.247Z","updated_at":"2025-08-01T16:08:28.663Z","avatar_url":"https://github.com/MarinX.png","language":"Go","readme":"# Electrum JSON RPC Client\n\n[![Build Status](https://travis-ci.org/MarinX/electrumrpc.svg?branch=master)](https://travis-ci.org/MarinX/electrumrpc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/MarinX/electrumrpc)](https://goreportcard.com/report/github.com/MarinX/electrumrpc)\n[![GoDoc](https://godoc.org/github.com/MarinX/electrumrpc?status.svg)](https://godoc.org/github.com/MarinX/electrumrpc)\n[![License MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE)\n\n**Note**: The library does not have implementations of all Electrum RPC resources[WIP]. \nPRs for new resources and endpoints are welcome, or you can simply implement some yourself as-you-go.\n\n## Preposition\n#### 1. Install [Electrum](https://electrum.org/) and create a wallet\n\n#### 2. Set RPC port\nBy default, it's random port - set it to any port you want\n```bash\n./run_electrum setconfig rpcport 7777\n``` \n\n#### 3. Set user and password for RPC\n```bash\n./run_electrum setconfig rpcuser user\n```\n```bash\n./run_electrum setconfig rpcpassword password\n```\n\n#### 4. Run Electrum as daemon\n```bash\n./run_electrum daemon start\n```\nIf you want to start in testnet mode\n```bash\n./run_electrum --testnet daemon start\n```\n\n#### 5. Load daemon wallet\n```bash\n./run_electrum daemon load_wallet\n```\nIf daemon is running in testnet, you need to specify to load testnet wallet\n```bash\n./run_electrum --testnet daemon load_wallet\n```\n\nNow you have a local Electrum JSON RPC server running - congrats 🥳\n\nIf you need to stop it, use\n```bash\n./run_electrum daemon stop\n```\nor if running in testnet\n```bash\n./run_electrum --testnet daemon stop\n```\n\n## Install\n\n```bash\ngo get github.com/MarinX/electrumrpc\n```\n\n## Use\n\n```go\nimport \"github.com/MarinX/electrumrpc\"\n```\n\n## Example\nYou can find more in [electrumrpc_test.go](https://github.com/MarinX/electrumrpc/blob/master/electrumrpc_test.go)\n```go\n// httpClient is optional\n// if nil, the http.DefaultClient will be used\nclient := electrumrpc.New(\"\u003crpc-user\u003e\", \"\u003crpc-password\u003e\", \"\u003crpc-endpoint\u003e\", nil)\n\n// Call RPC methods\nver, err := client.Version()\nif err != nil {\n\t//handle error\n\tpanic(err)\n}\nfmt.Println(\"Electrum version:\", ver)\n```\n\nNot all endpoints are implemented right now. \nIn those case, you can use Call method and point your model\n```go\nvar rpcResponse string\nerr := client.Call(\"version\", nil, \u0026rpcResponse)\nif err != nil {\n\tfmt.Println(err)\n\treturn\n}\nfmt.Println(\"Electrum version:\", rpcResponse)\n```\n\n## Available RPC methods\n\n| RPC Method  | Available |\n| --- | --- |\n| version  | ✅  |\n| getaddressbalance  | ✅  |\n| getbalance  | ✅  |\n| validateaddress  | ✅  |\n| getservers  | ✅  |\n| createnewaddress  | ✅  |\n| getunusedaddress  | ✅  |\n| ismine  | ✅  |\n| gettransaction  | ✅  |\n| getseed  | ✅  |\n| listaddresses  | ✅  |\n| addrequest  | ✅  |\n| rmrequest  | ✅  |\n| clearrequests  | ✅  |\n| getrequest  | ✅  |\n| getfeerate  | ✅  |\n| signmessage  | ✅  |\n| verifymessage  | ✅  |\n\n## Contributing\nPR's are welcome. Please read [CONTRIBUTING.md](https://github.com/MarinX/electrumrpc/blob/master/CONTRIBUTING.md) for more info\n\n## License\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinx%2Felectrumrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarinx%2Felectrumrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinx%2Felectrumrpc/lists"}