How to use curl to make node API calls

list of node api commands

Beware of small typos!! I spent hours tweaking firewalls and trying all sort of advance commands just because I misspelled status as stats in this command.

curl  http://127.0.0.1:3413/v1/status
3 Likes

Don’t forget to authenticate:

curl --user grin:$(cat ~/.grin/main/.api_secret) http://localhost:3413/v1/status

API commands listed here: https://github.com/mimblewimble/grin/blob/master/doc/api/node_api.md

Also, I hear that v2 of the API is coming with the hard fork in January.