Get validator

Returns one claimed validator slot, scoped to the caller's org.

GET /v1/validator/{tokenId}

Addresshttps://api.hanzo.ai/v1/validator/{tokenId}
MethodGET
Operationget_validator_by_tokenid
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one claimed validator slot, scoped to the caller's org.

A slot another org holds, and a slot nobody holds, are both 404 — never a different status, so this route cannot be used to probe which slots are taken.

Request

1 field.

FieldInTypeRequiredDescription
tokenIdpathstringyesTokenID is the slot's GenesisNFT token id, from the path, as a decimal string.

Response

StatusBodyMeaning
200validator.slotViewok
defaultproblem-detailsrefused

200 body — 15 fields.

FieldInTypeAlwaysDescription
blsPubkeybodystring—BLSPubkey is the node's BLS public key, hex.
crNamebodystring—CRName is the LuxNetwork custom resource that materializes the node.
createdAtbodyinteger (int64)—CreatedAt is when the slot was first claimed, as a Unix timestamp.
namespacebodystring—Namespace is the Kubernetes namespace the node's CR lives in.
networkbodystring—Network is the luxd network slug the node joins.
nodeIDbodystring—NodeID is the luxd node id derived from the sealed staking identity.
nodeStatusbodystring—NodeStatus is the provisioning state of the node: "node_created" once the CR is applied, "node_pending" when no cluster is reachable (the slot is still claimed and the keys are still sealed).
registrationbodyvalidator.registrationView—
registration.idbodystring—ID is the registration's handle.
registration.nodeIDbodystring—NodeID is the luxd node the registration is for.
registration.statusbodystring—Status is the registration's lifecycle state; "pending_owner_approval" until the owner co-signs it out of band.
slotbodyinteger (uint64)—Slot is the validator slot number — the same value as tokenId, under the name the portal reads.
tokenIdbodyinteger (uint64)—TokenID is the GenesisNFT token id that IS this slot.
updatedAtbodyinteger (int64)—UpdatedAt is when the slot last changed, as a Unix timestamp.
walletbodystring—Wallet is the lowercase Ethereum address that proved ownership of the NFT.

Failure carries the platform error shape — see Errors.

Examples

hanzo validator get <tokenId>
import { Configuration, ValidatorApi } from 'hanzoai';

const api = new ValidatorApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getValidatorByTokenid({ tokenId: 'tokenId' });
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import ValidatorApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = ValidatorApi(client).get_validator_by_tokenid(token_id='tokenId')
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.ValidatorAPI.GetValidatorByTokenid(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, validator_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = validator_api::get_validator_by_tokenid(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.ValidatorApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new ValidatorApi(client).getValidatorByTokenid();
curl https://api.hanzo.ai/v1/validator/<tokenId> \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool validator, op get_validator_by_tokenid — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "validator",
         "arguments": {
           "op": "get_validator_by_tokenid",
           "input": {
             "tokenId": "<tokenId>"
           }
         }
       }
     }'

Validator API · All Hanzo APIs · Interactive reference

Was this page useful?