Use the BTNScan Public API endpoints to fetch live on-chain data from the Bitnet network. Fair usage policy applies, and we reserve the right to close, alter, make unavailable, and reduce the rate limits on the given endpoints at our discretion and with no prior warning. Please use these endpoints at your own risk.
For easier navigation, we recommend you to use our Wiki-formatted version of this library.
Rate limits for public usage varies depending on the API servers availability and current usage. The expected average rate limit for most endpoins is of 1 Call Per 15 Seconds or 4 Calls Per Minute or 5,760 Calls Per Day. Security tokens are used for private and enterprise API plans and have higher limits than the public free plan.
You can use the GET
requests method with the public API server below.
https://btn.api.restratagem.com/
/price
Returns the current market price of BTN. Open ›
/supply
Returns the current approximate supply of BTN. Open ›
/tx
Transaction related responses. Open ›
/wallet
Wallet related responses. Open ›
To fetch the current supply of Bitnet, you can use the public API server with the /supply
endpoint using GET
.
Input:
https://btn.api.restratagem.com/supply/btn
Example of Expected Response:
317141
Input:
curl https://btn.api.restratagem.com/supply/btn
Example of Expected Response:
StatusCode : 200
StatusDescription : OK
Content : 317141
RawContent : HTTP/1.1 200 OK
access-control-allow-origin: *
ratelimit-limit: 5
ratelimit-remaining: 3
ratelimit-reset: 10
connection: close
Content-Length: 6
Content-Type: application/json; charset=utf-8
D...
Forms : {}
Headers : {[access-control-allow-origin, *], [ratelimit-limit, 5], [ratelimit-remaining, 3],
[ratelimit-reset, 10]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : mshtml.HTMLDocumentClass
RawContentLength : 6