One EVM address on the native side
https://api.bittensor.ai/api/v2/evm/addresses/{h160}- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
One H160 as the native chain sees it: whether the EVM index saw it (observed, first_seen_height, last_seen_height), its Frontier mirror account (mirror_account, {ss58, hex}: blake2_256("evm:" ++ h160), the Substrate account its EVM transactions pay from; null when not observed), its contract flags (is_contract, created_height, contract_removed_height, is_precompile) and the SubtensorModule.AssociatedEvmAddress entries naming it (associations: netuid, uid, the uid's hotkey SS58, the block). The mirror and the associations are unrelated links. The reverse (an SS58 to its H160) is GET /accounts/{address}?include=evm. Read at the head: cached as the head. Errors are application/problem+json: INVALID_ADDRESS, NOT_FOUND (404, when the data source answers it), UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503).
Beta: this route may change with one release's notice in the v2 changelog; additive changes need none (x-stability: beta).
Path parameters
- h160path, required· string
The EVM address, 0x + 40 hex (any case).
Query parameters
- includequery· string
Reserved for opt-in sections. This route defines none yet; the parameter is declared so that adding one later is additive for generated clients. Any value is a 400
INVALID_INCLUDE.
Response
data is an object with these fields. Amounts are integer strings in their base unit, and null means unknown, never zero (see Units and formats). meta.at names the block the answer was read at.
The address.
- h160string
The address, 0x + 40 lower-case hex.
- Format: EVM address: 0x and 40 hex digits
- observedboolean
True when the H160 is known on the EVM: it sent, received or created a transaction, was created by a contract, sent or received a token transfer, was called from a Substrate account, emitted a log or is named in an indexed log topic. False says only that it was not seen, not that it holds nothing; a protocol precompile address (0x0…0x0fff) can be false and still have seen heights.
- mirror_accountobject · can be null
Its Frontier mirror account, blake2_256("evm:" ++ h160), as
{ss58, hex}: the Substrate account its EVM transactions pay from. This API checks it against the hash (a 502 otherwise). Null when not observed: the data source states it only for observed H160s (it is deterministic, so a client may compute it; this API does not serve a value its source does not state).2 fields in mirror_account
- ss58string
The account, SS58 (prefix 42).
- Format: SS58 address
- hexstring
The same 32-byte account id, 0x + 64 lower-case hex (the public key).
- Format: 32-byte hex: 0x and 64 hex digits
- is_contractboolean
True when the address holds contract code (not removed).
- contract_removed_heightinteger · unit block · can be null
The block its code was removed (self-destruct); null otherwise.
- created_heightinteger · unit block · can be null
The contract's creation block when known; null otherwise (and for a non-contract).
- is_precompileboolean
True for a Subtensor precompile address (
/evm/precompiles): native code, no deployment.- first_seen_heightinteger · unit block · can be null
The first block with an EVM transaction it sent, received or created, at or below
meta.at; null when it has none, even whenobserved(an address known only from a token transfer or a log, say).- last_seen_heightinteger · unit block · can be null
The newest such block, at or below
meta.at; null exactly whenfirst_seen_heightis null.- associationsarray of objects
The SubtensorModule.AssociatedEvmAddress entries naming this H160 at the head, by (netuid, uid);
[]when none. Unrelated to the mirror account.4 fields in associations (each item)
- netuidinteger · unit id
The subnet of the uid.
- uidinteger · unit id
The uid that associated this H160.
- hotkeystring · can be null
The hotkey holding that uid now (Keys(netuid, uid)), SS58; null when the uid is empty.
- Format: SS58 address
- associated_at_blockinteger · unit block
The block the association was stated at.
Response headers
10 headers: ETag, Cache-Control, CDN-Cache-Control, X-BTAI-Stale, X-BTAI-Stale-As-Of, RateLimit-Policy, RateLimit, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
- ETag
Strong validator of this answer. Send it back as
If-None-Match: an unchanged answer is a 304 Not Modified without a body. A settled answer's validator leaves the chain head out, so it stays valid as the head moves.- Cache-Control
One of three classes: settled
public, max-age=3600, stale-while-revalidate=86400(pinned to a block that cannot move), slowpublic, max-age=300, stale-while-revalidate=600(state that moves in minutes or days) or tippublic, max-age=6, stale-while-revalidate=12(follows the chain head); the label routes are cached until the next nightly copy (public, max-age=<seconds>, stale-while-revalidate=60). Neverimmutable.no-storeon an earlier answer served because the data source failed (X-BTAI-Stale).- CDN-Cache-Control
The same class for shared caches (RFC 9213; browsers ignore it): settled 24 h, slow 300 s, tip 6 s, each with
stale-while-revalidateandstale-if-error;no-storewithX-BTAI-Stale.- X-BTAI-Stale
Present only when the data source failed to answer (it timed out or was unavailable) and an earlier answer to the same request is served instead of a 503 (stale if error, RFC 5861). Then
if-error, withX-BTAI-Stale-As-Of,Age(its seconds since then) andWarning: 110 - "Response is Stale", andCache-Control: no-store: the answer is never kept as fresh, and a later request reads again. Prices and quotes are never served this way.- X-BTAI-Stale-As-Of
With
X-BTAI-Stale: when the earlier answer served was produced, an RFC 3339 UTC time (2026-10-21T12:00:00Z).- RateLimit-Policy
The tier's request quota of the current window (IETF draft), e.g.
"tier";q=600.- RateLimit
Requests left in the current window and the seconds until it resets (IETF draft), e.g.
"tier";r=597;t=42.- X-RateLimit-Limit
The tier's request quota of the current window.
- X-RateLimit-Remaining
Requests left in the current window.
- X-RateLimit-Reset
When the current window resets, Unix seconds.
Status codes
200 · 304 · 400 · 401 · 402 · 403 · 404 · 429 · 500 · 502 · 503
304 Not Modified: the If-None-Match validator still matches; no body.
Error codes
The codes this endpoint can return. Each links to what it means and what to do.
- AMBIGUOUS_CREDENTIALS
- BAD_GATEWAY
- BILLING_UNAVAILABLE
- BUDGET_EXCEEDED
- CONCURRENCY_LIMIT
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_ADDRESS
- INVALID_INCLUDE
- NOT_FOUND
- PAYMENT_REQUIRED
- PLAN_REQUIRED
- RATE_LIMITED
- SERVICE_UNAVAILABLE
- SOURCE_BUSY
- SOURCE_NOT_READY
- SOURCE_TIMEOUT
- UNAUTHORIZED
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.165.0.