Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monero-integrations/monerogo
Go library for Monero RPC
https://github.com/monero-integrations/monerogo
daemon daemon-client golang monero-integrations monero-rpc wallet-client
Last synced: 3 months ago
JSON representation
Go library for Monero RPC
- Host: GitHub
- URL: https://github.com/monero-integrations/monerogo
- Owner: monero-integrations
- License: mit
- Created: 2017-11-10T13:22:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-17T17:20:10.000Z (almost 7 years ago)
- Last Synced: 2024-06-28T20:53:15.064Z (5 months ago)
- Topics: daemon, daemon-client, golang, monero-integrations, monero-rpc, wallet-client
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 10
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# monerogo
# OLD! Use https://github.com/sunrisedo/monero
# Description
Monero JSON RPC Client# Installation
go get github.com/MarinX/monerogo# HowTo
### Daemon Client
To use *DaemonClient* you need to start your daemon `./monerod` which will listen on `localhost:18081`
```go
package mainimport (
"fmt""github.com/MarinX/monerogo"
)func main() {
// creates new daemon client
// the endpoint is http://127.0.0.1:18081/json_rpc
client := monerogo.NewDaemonClient("http://127.0.0.1:18081/json_rpc")blockCount, err := client.GetBlockCount()
if err != nil {
fmt.Println(err)
return
}// always check the status of the response from RPC
if blockCount.Status != "OK" {
fmt.Println("RPC method is not OK, got", blockCount.Status)
return
}fmt.Println("Count:", blockCount.Count)
// you can check more examples in monerogo_test.go file
}
```### Wallet Client
//TODO# Roadmap
- [x] Create Daemon RPC client
- [ ] Create Wallet RPC client# License
This library is under the MIT License# Author
Marin Basic## Donate XMR
`45gSodJY5hnAL441jiYg2C72LrPoekuPNgLgWKAbW66Bdt9fyC4RcdH8A3qCAogkGPiiwvQuQAmMdDqBbar6oLyeLHfVBzR`