The FunChain API allows developers to fetch real-time block reward, multiplier information, and circulating coin supply for blocks mined on the FunChain blockchain. Using this API, you can integrate block data into your applications, build custom tools, or analyze network activity. The API is designed to be lightweight and easy to use.
GET /reward
Fetch reward and multiplier information for a specific block.
Endpoint: https://api.funchain.network/reward/?block=BlockNumber
Parameters:
block
(required) – The block number for which you want to retrieve data.GET /supply
Fetch the current circulating coin supply on the FunChain blockchain.
Endpoint: https://api.funchain.network/supply/
Response: The API will return either a plain number representing the current supply or the string "error"
if something goes wrong.
Example: https://api.funchain.network/supply/
The /reward/
endpoint returns data in JSON format. For example:
{ "status": "ok", "block": 15090, "base": 10, "multiplier": 0.5, "final": 5 }
Fields:
status
– Indicates the success or failure of the request. If the request is successful, the status will be "ok"
.block
– The block number.base
– The base reward for the block (in BIT).multiplier
– The multiplier applied to the base reward.final
– The final reward (base reward multiplied by the multiplier).The /supply/
endpoint returns a plain number representing the current coin supply or the string "error"
if something goes wrong. For example:
5390.000000
For the /reward/
endpoint, if an error occurs during a request, the API will return a response in the following format:
{ "status": "error", "message": "Unable to fetch block data." }
For the /supply/
endpoint, if an error occurs, the response will simply be the string "error"
.