https://github.com/jtgrassie/xmrpc
A small utility for calling the Monero JSON RPC interface(s)
https://github.com/jtgrassie/xmrpc
monero monero-wallet-rpc monerod rpc xmr
Last synced: about 1 month ago
JSON representation
A small utility for calling the Monero JSON RPC interface(s)
- Host: GitHub
- URL: https://github.com/jtgrassie/xmrpc
- Owner: jtgrassie
- License: other
- Created: 2019-12-28T21:49:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-29T09:13:12.000Z (over 5 years ago)
- Last Synced: 2025-04-13T13:15:38.322Z (about 1 month ago)
- Topics: monero, monero-wallet-rpc, monerod, rpc, xmr
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xmrpc
A small utility for calling the Monero JSON RPC interface(s).
When developing software that uses the Monero RPC interface, one often ends up
using `curl` to test the methods. This little script just aids the lazy from
typing out the long `curl` commands or formatting the JSON payload.## Install
Just copy [xmrpc.sh](./xmrpc.sh) to somewhere in your `PATH`.
## Usage
xmrpc.sh [host:]port method [name:value ...]
### Examples
xmrpc.sh 28081 get_version
xmrpc.sh node.xmr.to:18081 get_version
xmrpc.sh 28081 get_block height:123456
xmrpc.sh 28081 get_block hash:aaaac8fe6bd05f32aa68b9bd13d66d2056335a1a4a88c788f7a07ab8a1e64912
xmrpc.sh 28084 get_transfers in:true
xmrpc.sh 28084 get_address account_index:0 address_index:[0,1]### Searching
If you have the Monero source tree and set an enviroment variable `MONERO_ROOT`
to its path, you can then use the `doc` command to search methods and get the
expected parameters from the code. For example:xmrpc.sh doc transfer
xmrpc.sh doc ".*bulk.*pay"
xmrpc.sh doc ".*pay"
xmrpc.sh doc ".*"## Supporting the project
If you use it and want to donate, XMR donations to:
```
451ytzQg1vUVkuAW73VsQ72G96FUjASi4WNQse3v8ALfjiR5vLzGQ2hMUdYhG38Fi15eJ5FJ1ZL4EV1SFVi228muGX4f3SV
```
would be very much appreciated.
## License
Please see the [LICENSE](./LICENSE) file.
[//]: # ( vim: set tw=80: )