{"id":15093089,"url":"https://github.com/omani/go-monero-rpc-client","last_synced_at":"2025-04-09T12:04:14.937Z","repository":{"id":35134844,"uuid":"185886179","full_name":"omani/go-monero-rpc-client","owner":"omani","description":"A go client for the Monero wallet and daemon RPC","archived":false,"fork":false,"pushed_at":"2025-02-08T02:33:33.000Z","size":398,"stargazers_count":59,"open_issues_count":0,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T11:05:06.881Z","etag":null,"topics":["daemon","monero","rpc","wallet"],"latest_commit_sha":null,"homepage":"","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/omani.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":"2019-05-09T23:36:20.000Z","updated_at":"2025-03-31T10:13:04.000Z","dependencies_parsed_at":"2023-07-13T21:07:48.945Z","dependency_job_id":"a9be7435-2ec6-419e-ae75-cde044379785","html_url":"https://github.com/omani/go-monero-rpc-client","commit_stats":null,"previous_names":["omani/go-monero-rpc-client","monero-ecosystem/go-monero-rpc-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omani%2Fgo-monero-rpc-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omani%2Fgo-monero-rpc-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omani%2Fgo-monero-rpc-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omani%2Fgo-monero-rpc-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omani","download_url":"https://codeload.github.com/omani/go-monero-rpc-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036064,"owners_count":21037092,"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":["daemon","monero","rpc","wallet"],"created_at":"2024-09-25T11:03:32.963Z","updated_at":"2025-04-09T12:04:14.916Z","avatar_url":"https://github.com/omani.png","language":"Go","funding_links":[],"categories":["Libraries"],"sub_categories":["Other Wallets"],"readme":"Go Monero RPC Client\n====================\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/omani/go-monero-rpc-client/raw/master/media/img/monero_gopher.png\" alt=\"Monero Gopher\" width=\"200\" /\u003e\n\u003c/p\u003e\n\nA client implementation for the Monero wallet and daemon RPC written in go.\nThis package is inspired by https://github.com/gabstv/go-monero.\n\n## Wallet RPC Client\n\n[![GoDoc](https://godoc.org/github.com/omani/go-monero-rpc-client/wallet?status.svg)](https://godoc.org/github.com/omani/go-monero-rpc-client/wallet)\n\n### Monero RPC Version\nThe ```go-monero-rpc-client/wallet``` package is the RPC client for version `v1.3` of the [Monero Wallet RPC](https://www.getmonero.org/resources/developer-guides/wallet-rpc.html).\n\n### Installation\n\n```sh\ngo get -u github.com/omani/go-monero-rpc-client\n```\n\n#### Spawn the monero-wallet-rpc daemon (without rpc login):\n\n```sh\n./monero-wallet-rpc --wallet-file /home/$user/stagenetwallet/stagenetwallet --daemon-address YOUR_STAGENET_NODE:38081 --stagenet --rpc-bind-port 6061 --password 'mystagenetwalletpassword' --disable-rpc-login\n```\nYou can either run your own stagenet server for testing purposes or select a remote stagenet node from eg. https://monero.fail/?chain=monero\u0026network=stagenet (not associated with this site. I found it on google).\n\n#### Go code:\n\n```Go\npackage main\n\nimport (\n  \"encoding/json\"\n  \"fmt\"\n  \"log\"\n\n  \"github.com/omani/go-monero-rpc-client/wallet\"\n)\n\nfunc checkerr(err error) {\n  if err != nil {\n    log.Panic(err)\n  }\n}\n\nfunc main() {\n  // Start a wallet client instance\n  client := wallet.New(wallet.Config{\n    Address: \"http://127.0.0.1:6061/json_rpc\",\n  })\n\n  // check wallet balance\n  resp, err := client.GetBalance(\u0026wallet.RequestGetBalance{AccountIndex: 0})\n  checkerr(err)\n  res, _ := json.MarshalIndent(resp, \"\", \"\\t\")\n  fmt.Print(string(res))\n\n  // get incoming transfers\n  resp1, err := client.GetTransfers(\u0026wallet.RequestGetTransfers{\n    AccountIndex: 0,\n    In:           true,\n  })\n  checkerr(err)\n  for _, in := range resp1.In {\n    res, _ := json.MarshalIndent(in, \"\", \"\\t\")\n    fmt.Print(string(res))\n  }\n}\n```\n\n### Spawn the monero-wallet-rpc daemon (with rpc login):\n\n```sh\n./monero-wallet-rpc --wallet-file /home/$user/stagenetwallet/stagenetwallet --daemon-address YOUR_STAGENET_NODE:38081 --stagenet --rpc-bind-port 6061 --password 'mystagenetwalletpassword' --rpc-login test:testpass\n```\n\n#### Go code:\n\n```Go\npackage main\n\nimport (\n  \"encoding/json\"\n  \"fmt\"\n  \"log\"\n\n  \"github.com/omani/go-monero-rpc-client/wallet\"\n)\n\nfunc checkerr(err error) {\n  if err != nil {\n    log.Panic(err)\n  }\n}\n\nfunc main() {\n  t := httpdigest.New(\"test\", \"testpass\")\n\n  // Start a wallet client instance\n  client := wallet.New(wallet.Config{\n    Address: \"http://127.0.0.1:6061/json_rpc\",\n    Transport: t,\n  })\n\n  // check wallet balance\n  resp, err := client.GetBalance(\u0026wallet.RequestGetBalance{AccountIndex: 0})\n  checkerr(err)\n  res, _ := json.MarshalIndent(resp, \"\", \"\\t\")\n  fmt.Print(string(res))\n\n  // get incoming transfers\n  resp1, err := client.GetTransfers(\u0026wallet.RequestGetTransfers{\n    AccountIndex: 0,\n    In:           true,\n  })\n  checkerr(err)\n  for _, in := range resp1.In {\n    res, _ := json.MarshalIndent(in, \"\", \"\\t\")\n    fmt.Print(string(res))\n  }\n}\n```\n\n# Daemon RPC Client\n\nAs of now, only the wallet RPC has been implemented.\n\n# Contribution\n* You can fork this, extend it and contribute back.\n* You can contribute with pull requests.\n\n# Donations\nYou can make me happy by donating Bitcoin to the following address:\n```\nbc1qgezvfp4s0xme8pdv6aaqu9ayfgnv4mejdlv3tx\n```\n\n# LICENSE\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomani%2Fgo-monero-rpc-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomani%2Fgo-monero-rpc-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomani%2Fgo-monero-rpc-client/lists"}