bisq/daemon
ghubstan ae41e98db9
Add API API method 'getnetwork'
Returns name of the BTC network API daemon is connected to.

I am working on some Java bot examples in another repo, and want to stop
worrying about accidentally simulating trade payments on mainnet, despite
all the warnings I add in comments.  The 'getnetwork' method allows bots
to know what network the API daemon is connected to, and gives API bot
devs and users a way to avoid one potential source of costly mistakes.

API CLI manpage and apitest case are included in this commit.
2022-06-16 15:31:03 -03:00
..
package Accept a VERSION parameter, default to SNAPSHOT 2022-03-28 11:05:13 -03:00
src Add API API method 'getnetwork' 2022-06-16 15:31:03 -03:00