Access SUBTC API over Tor with curl
SUBTC API can be accessed through Tor using the SOCKS5 proxy provided by the Tor daemon.
Example using curl with Tor:<br>
curl --socks5-hostname 127.0.0.1:9050 \
http://ofwahoue652hjkwdc4osoc52tc6gu62ybjgc43jnuz4fleojadx73wyd.onion/health<br>Example response:
{<br>"ok": true,<br>"request_id": "e2c0a658c4e93598",<br>"result": {<br>"coin": "btc",<br>"configured": true,<br>"fee_bps": 300,<br>"min_send_sat": 50000<br>}<br>}
What happened:
curl routed the request through the Tor SOCKS5 proxy running on 127.0.0.1:9050.<br>The request reached the SUBTC hidden service and returned the gateway health status.
This allows developers to interact with the API without exposing their public IP.
API Base:<br>https://subtc.net/api