Skip to content

Claim testnet TAO

POST
/testnet-faucet/

Sends test TAO on the Bittensor testnet. A claim is either signed by a mainnet wallet holding TAO, free or staked, or made from the faucet page without a wallet: a fixed amount, one claim per IP and per address a day (per browser and per address every open.event_window_seconds while an event is on), within a daily budget of its own. A claim over the signer, IP, browser, address or daily cap answers 429 FAUCET_COOLDOWN, one over the budget for claims without a wallet 429 FAUCET_OPEN_EXHAUSTED, and one made while another claim is in flight 429 FAUCET_BUSY.

Rate limit: 3 requests per minute per IP (scope faucet).

  • None
env
string
Allowed values: prod staging

Which feature-flag column gates the faucet. Default prod.

POST /testnet-faucet/ body: a mainnet wallet’s three signature fields, or the faucet page’s two proof fields.

object
ss58_address
required

TESTNET destination address. SS58 checksum is verified.

string
amount
required

Testnet τ to send: 1 or 10 with a wallet signature, open.amount without; anything else is a 400.

integer
captcha_token
required

Cloudflare Turnstile token.

string
signer_ss58

MAINNET coldkey proving the requester is a real account. Must hold at least the configured minimum τ.

string
signature

Hex signature over taoswap-faucet:{ss58_address}:{timestamp}, by signer_ss58.

string
timestamp

ISO-8601. Must be within 300 s of server time, in either direction. A signature is single-use.

string format: date-time
page_key

Without a wallet: the faucet page’s key id, which each build of the page renews.

string
page_signature

Without a wallet: the faucet page’s own signature of the claim.

string
browser_id

Without a wallet, during an event: the random id the page keeps for its browser.

string format: uuid

Example generated

{
"ss58_address": "example",
"amount": 1,
"captcha_token": "example",
"signer_ss58": "example",
"signature": "example",
"timestamp": "2026-04-15T12:00:00Z",
"page_key": "example",
"page_signature": "example",
"browser_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

The transfer went through: the test TAO is on its way to ss58_address.

Media typeapplication/json
  1. The only success body; this endpoint never answers 200.
object
success
required

Always true.

boolean

Example generated

{
"success": true
}

A field of the body is missing or malformed, which message names.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleVALIDATIONERROR

VALIDATION_ERROR

{
"error": true,
"code": "VALIDATION_ERROR",
"message": "amount must be in [1, 10].",
"detail": null
}

CAPTCHA_FAILED, SIGNATURE_REQUIRED, SIGNATURE_EXPIRED, SIGNATURE_REUSED, SIGNATURE_INVALID, INSUFFICIENT_MAINNET_BALANCE, or PAGE_OUTDATED when a claim without a wallet does not carry the current faucet page’s proof.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleCAPTCHAFAILED

CAPTCHA_FAILED

{
"error": true,
"code": "CAPTCHA_FAILED",
"message": "invalid captcha verification.",
"detail": null
}

Rate limit exceeded (3/minute, per IP). Retry-After carries the seconds to wait.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleRATELIMITED

RATE_LIMITED

{
"error": true,
"code": "RATE_LIMITED",
"message": "Request was throttled",
"detail": {
"retry_after": 12
}
}
Retry-After
integer

Seconds before the next request is accepted.

TRANSFER_FAILED when the testnet transfer could not be made.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleTRANSFERFAILED

TRANSFER_FAILED

{
"error": true,
"code": "TRANSFER_FAILED",
"message": "an unknown error occurred.",
"detail": null
}

FAUCET_DISABLED when the flag is off, FAUCET_OPEN_DISABLED when only claims without a wallet are.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleFAUCETDISABLED

FAUCET_DISABLED

{
"error": true,
"code": "FAUCET_DISABLED",
"message": "the testnet faucet is currently disabled.",
"detail": null
}