btcintel

The relay's write policy (ops)

GET /v1/ops/relay/policy
quién puede llamarla
Un operador
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

write_enabled (false until the posting policy is signed off), min_pow_difficulty, attack_mode (raises the effective floor to 24 bits) and who changed it last.

Parámetros

No toma parámetros.

Qué responde

The policy row.

CampoTipoQué lleva
write_enabledbooleanFalse until the posting policy is signed off.
min_pow_difficultyintegerThe proof-of-work floor the policy sets, in bits. Attack mode can raise the effective floor.
attack_modebooleanRaises the effective floor to 24 bits.
floorintegerThe effective minimum difficulty the door enforces.
moderation_reasonsarrayThe vocabulary a moderation reason must come from; legal:<reference> and other:<text> are always accepted.
updated_atstringWhen the policy last changed.
updated_bystring o nulloperator:<id> of the last change.
esquema RelayPolicy
  • write_enabled boolean obligatorio — False until the posting policy is signed off.
  • min_pow_difficulty integer obligatorio — The proof-of-work floor the policy sets, in bits. Attack mode can raise the effective floor. · ≥ 0 · ≤ 64
  • attack_mode boolean obligatorio — Raises the effective floor to 24 bits.
  • floor integer obligatorio — The effective minimum difficulty the door enforces.
  • moderation_reasons array de string — The vocabulary a moderation reason must come from; legal:<reference> and other:<text> are always accepted.
  • updated_at string (date-time) obligatorio — When the policy last changed.
  • updated_by string | null — operator:<id> of the last change.

Errores

EstadoCódigoCuándo
401unauthorizedunauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing.
403forbiddenforbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which.

Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.

Ejemplo

curl y jq, en cualquier shell.

curl -s https://api.btcintel.io/v1/ops/relay/policy \
  -H "Authorization: Bearer $BTCINTEL_KEY" | jq '{write_enabled, min_pow_difficulty, attack_mode}'

This route needs an operator credential. Set BTCINTEL_KEY to the ops bearer or a btci_ key with the ops:agent scope first: the snippet reads it from there and holds no key.