List Wallets on SUBTC
After creating wallets, you can retrieve a list of all wallets linked to your SUBTC API key.<br>This helps manage multiple wallets and check their network type.
Command:
curl -sS -X POST "https://api.subtc.net/v1/btc?mode=wallet_list" \<br>-H "X-SUBTC-KEY: $KEY" \<br>-H "Content-Type: application/json"
Example response:
{<br>"ok": true,<br>"request_id": "1d9cb15ace3daf7c",<br>"result": {<br>"wallets": [<br>{<br>"wallet_id": "w_cf21a601a3f461a92699e5b5dac80ad6d9d66de4592d",<br>"net": "test",<br>"addresses": null<br>}<br>]<br>}<br>}
What happened:
The gateway returned all wallets for your API key.<br>Here, the wallet is on the testnet, and no addresses have been generated yet.
API Base:<br>https://subtc.net/api