⛏️
Starch Industries Docs
  • Introduction
  • Getting Started
    • New to Starch Mining
  • API Refference
Powered by GitBook
On this page

API Refference

Starch Industries uses a REST API to ensure compatibility with multiple systems and programming languages.

GET https://starch.one/leaderboard

Get HTML leaderboard

<center>
    <h2>Miner Leaderboard - Weekly</h2>
    <table>
        <tr>
            <td>Rank</td>
            <td>Miner ID</td>
            <td>Blocks</td>
        </tr>
        <tr>
            <td>#1</td>
            <td>7B6876B0</td>
            <td>202</td>
        </tr>
        <tr>
            <td>#2</td>
            <td>1F37564D</td>
            <td>171</td>
        </tr>
        <tr>
            <td>#3</td>
            <td>D648B174</td>
            <td>158</td>
        </tr>
        <tr>
            <td>#4</td>
            <td>D071B96B</td>
            <td>143</td>
        </tr>
        <tr>
            <td>#5</td>
            <td>95BE74D4</td>
            <td>76</td>
        </tr>
        <tr>
            <td>#6</td>
            <td>226B475B</td>
            <td>68</td>
        </tr>
        <tr>
            <td>#7</td>
            <td>9505395B</td>
            <td>57</td>
        </tr>
        <tr>
            <td>#8</td>
            <td>1B242D26</td>
            <td>56</td>
        </tr>
        <tr>
            <td>#9</td>
            <td>1B8AAB2A</td>
            <td>52</td>
        </tr>
        <tr>
            <td>#10</td>
            <td>C0DF61D0</td>
            <td>44</td>
        </tr>
    </table>
</center>

GET https://starch.one/api/info

Get blockchain status

{
    "blocks": 48195,
    "count": 3,
    "difficulty": 1,
    "miners": 36,
    "rewards": 50
}

GET https://starch.one/api/mine

Get hash and difficulty from the last minted block

{
    "last_hash": "b0a1f56f6e4cc7f52b6fe8566e2031910e1f5c48088ddc82c83dce7cc9bf60be",
    "max": 1.1579206583003989e+77
}

POST https://starch.one/api/status

Get starch miner status

Request Body

Name
Type
Description

minerID*

String

{
    "amount": 7800.0,
    "blocks": 154,
    "difficulty": 1
}

POST https://starch.one/api/solved

Send solved cryptographic puzzle and new block data

Request Body

Name
Type
Description

newHash*

String

color*

String

minerID*

String

{
    "success": "True"
}
{
    "success": "False"
}
PreviousNew to Starch Mining

Last updated 2 years ago