laanwj on Nostr: you can use bitcoin core through curl, there are even examples of that in the RPC ...
you can use bitcoin core through curl, there are even examples of that in the RPC help
$ bitcoin-cli help getpeerinfo
...
Examples:
> bitcoin-cli getpeerinfo
> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getpeerinfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/
it's just way less convenient than using the cli
$ bitcoin-cli help getpeerinfo
...
Examples:
> bitcoin-cli getpeerinfo
> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getpeerinfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/
it's just way less convenient than using the cli