cashubtc / nuts

Cashu protocol specifications https://cashubtc.github.io/nuts/
MIT License
152 stars 52 forks source link

Method/Info to check mint's network before melting/minting #137

Open Kodylow opened 5 months ago

Kodylow commented 5 months ago

Is there a way to check which bitcoin/asset network the mint is running on before trying to mint/melt? The info isn't contained in the ecash token so for a wallet running multiple mint connections it'd be nice to be able determine which network it's on so when I'm melting an ecash token I know what network to get the invoice on.

Currently when i try on most mints I just get a failure method back with an error message for wrong network then I have to parse that out and retry from a different wallet, but I'd like to be able to hit mint info to determine this before generating the invoice at all:

image