This API allows miners to interact with the Gram Mining Pool backend to fetch tasks and submit solutions.
Telegram Developers Chat | Telegram News Channel | Pool Official Web-site
https://api-pool.gramcoin.org
Retrieve simplified tasks associated with a miner's address.
GET /v2/task/:address
:address
- The miner's address in the TON network.
X-MINER-VERSION
(mandatory):EXTERNAL-bc10c1fa
- 200 OK for successful request, with the following body:
{
task: {
id: string,
seed: string,
complexity: string,
pool_address: string,
} | null,
tick: number
}
- 400 Bad Request for errors, with the following body:
{
error: string
}
- task: Task details (nullable).
-
- id: Task identifier.
-
- seed: Seed for task generation (DEC).
-
- complexity: Task complexity (DEC).
-
- pool_address: Address of the mining pool (for calculation).
- tick: Time in milliseconds until the next request.
Submit a solution to a task associated with a miner's address.
POST /v2/solution/:address
:address
- The miner's address in the TON network.
X-MINER-VERSION
(mandatory):EXTERNAL-bc10c1fa
{
id: string,
solution: string,
}
id
: Task identifier.solution
: Solution in hexadecimal format.
- 200 OK for successful submission.
- 400 Bad Request for errors, with the following body:
{
error: string
}