{"id":18838934,"url":"https://github.com/moneropay/go-monero","last_synced_at":"2025-04-14T06:36:40.525Z","repository":{"id":45256758,"uuid":"376359461","full_name":"moneropay/go-monero","owner":"moneropay","description":"A Monero RPC Wallet client implementation written in Golang.","archived":false,"fork":false,"pushed_at":"2023-10-13T22:44:44.000Z","size":292,"stargazers_count":21,"open_issues_count":0,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T20:39:22.088Z","etag":null,"topics":["monero","rpc","wallet","xmr"],"latest_commit_sha":null,"homepage":"https://gitlab.com/moneropay/go-monero","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/moneropay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-06-12T18:29:25.000Z","updated_at":"2025-03-12T07:03:15.000Z","dependencies_parsed_at":"2023-10-14T22:44:04.516Z","dependency_job_id":"7d84ddda-fab2-404e-9932-39769096cb0e","html_url":"https://github.com/moneropay/go-monero","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneropay%2Fgo-monero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneropay%2Fgo-monero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneropay%2Fgo-monero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneropay%2Fgo-monero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moneropay","download_url":"https://codeload.github.com/moneropay/go-monero/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248836291,"owners_count":21169370,"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":["monero","rpc","wallet","xmr"],"created_at":"2024-11-08T02:41:18.867Z","updated_at":"2025-04-14T06:36:40.073Z","avatar_url":"https://github.com/moneropay.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-monero\n[![GoDoc](https://godoc.org/gitlab.com/moneropay/go-monero/walletrpc?status.svg)](https://godoc.org/gitlab.com/moneropay/go-monero/walletrpc)\n\nThis package provides Golang bindings for monero-wallet-rpc calls.\nIt also contains functions for XMR/atomic unit conversion.\n\nUnlike other wallet RPC bindings, this package is actively maintained and it is complete\nwith all the RPC methods. While using this package for our other project [MoneroPay](https://gitlab.com/moneropay/moneropay),\nwe have realized that all the other forks don't handle optional parameters correctly and send them anyway,\ntherefore causing bugs.\n\n### Installation\n```sh\ngo get -u gitlab.com/moneropay/go-monero/walletrpc\n```\n\n### Example\n```sh\nmonero-wallet-rpc --detach \\\n\t--rpc-bind-port 18083 \\\n\t--wallet-file /home/moneropay/wallet \\\n\t--password s3cure \\\n\t--daemon-login kernal:s3cure \\\n\t--rpc-login kernal:s3cure\n```\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/gabstv/httpdigest\"\n\t\"gitlab.com/moneropay/go-monero/walletrpc\"\n)\n\nfunc main() {\n\t// username: kernal, password: s3cure\n\tclient := walletrpc.New(walletrpc.Config{\n\t\tAddress: \"http://127.0.0.1:18083/json_rpc\",\n\t\tClient: \u0026http.Client{\n\t\t\tTransport: httpdigest.New(\"kernal\", \"s3cure\"), // Remove if no auth.\n\t\t},\n\t})\n\tresp, err := client.GetBalance(context.Background(), \u0026walletrpc.GetBalanceRequest{})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Println(\"Total balance:\", walletrpc.XMRToDecimal(resp.Balance))\n\tfmt.Println(\"Unlocked balance:\", walletrpc.XMRToDecimal(resp.UnlockedBalance))\n}\n```\n\n### Contributing\nSubmit issues and merge requests only on [GitLab](https://gitlab.com/moneropay/go-monero/).\\\nAlternatively, you can send us patch files via email at [moneropay@kernal.eu](mailto:moneropay@kernal.eu).\\\nFor development related discussions and questions join [#moneropay:kernal.eu](https://matrix.to/#/#moneropay:kernal.eu).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneropay%2Fgo-monero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoneropay%2Fgo-monero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneropay%2Fgo-monero/lists"}