The LuckyBits API allows developers to fetch real-time block reward and multiplier information for blocks mined on the LuckyBits blockchain. Using this API, you can integrate block data into your applications, build custom tools, or analyze network activity. The API returns data in JSON format and is designed to be lightweight and easy to use.
GET /reward
Fetch reward and multiplier information for a specific block.
Endpoint: https://api.luckybits.org/reward/?block=BlockNumber
Parameters:
block
(required) – The block number for which you want to retrieve data.The API returns data in JSON format. Below are the fields included in a typical response:
{ "status": "ok", "block": 15090, "base": 10, "multiplier": 0.5, "final": 10 }
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).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." }
The message
field will provide more details about the error. Common error messages include:
Invalid block number
– The block number provided does not exist or is invalid.Unable to fetch block data
– The API could not retrieve the block data due to an internal issue.