A challenge for the miner account to sign, to list a URL
curl --request POST \
--url https://api.floprouter.com/v1/miners/{address}/endpoint/challenge \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://miner.example.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://miner.example.com'})
};
fetch('https://api.floprouter.com/v1/miners/{address}/endpoint/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/miners/{address}/endpoint/challenge"
payload = { "url": "https://miner.example.com" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "endpoint_challenge",
"miner": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty",
"url": "https://miner.example.com",
"challenge": "floprouter endpoint registration; Miner: 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty; URL: https://miner.example.com; Network: devnet (0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631); Nonce: 00000000000000000000000000000000; Issued: 2026-11-24T08:00:00.000Z; Expires: 2026-11-24T08:10:00.000Z; Signing this lets this URL be listed as your miner's session endpoint on floprouter. It does not move funds.",
"expires_at": "2026-11-24T08:10:00.000Z",
"note": "Sign the exact challenge text with the miner account (sr25519), then POST /v1/miners/{address}/endpoint {url, challenge, signature}."
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}Directory
A challenge for the miner account to sign, to list a URL
Returns a one-line, single-use challenge naming the miner, the URL, the network and an expiry. Sign the exact text with the miner account and send it to POST /v1/miners/{address}/endpoint with url, challenge and signature. It cannot be used to create an API key.
POST
/
v1
/
miners
/
{address}
/
endpoint
/
challenge
A challenge for the miner account to sign, to list a URL
curl --request POST \
--url https://api.floprouter.com/v1/miners/{address}/endpoint/challenge \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://miner.example.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://miner.example.com'})
};
fetch('https://api.floprouter.com/v1/miners/{address}/endpoint/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/miners/{address}/endpoint/challenge"
payload = { "url": "https://miner.example.com" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "endpoint_challenge",
"miner": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty",
"url": "https://miner.example.com",
"challenge": "floprouter endpoint registration; Miner: 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty; URL: https://miner.example.com; Network: devnet (0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631); Nonce: 00000000000000000000000000000000; Issued: 2026-11-24T08:00:00.000Z; Expires: 2026-11-24T08:10:00.000Z; Signing this lets this URL be listed as your miner's session endpoint on floprouter. It does not move funds.",
"expires_at": "2026-11-24T08:10:00.000Z",
"note": "Sign the exact challenge text with the miner account (sr25519), then POST /v1/miners/{address}/endpoint {url, challenge, signature}."
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}{
"error": {
"code": 400,
"message": "<string>",
"metadata": {
"reason": "insufficient_balance",
"session_id": "<string>"
}
}
}