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