OptionalapiEncoded API secret string (services1...). The relay access token is
minted from this.
OptionalapiIf true, read the API secret from IROH_SERVICES_API_SECRET.
OptionalendpointThe endpoint's own identity key (32 bytes) — not your API secret. The access token is scoped to it, so pass the same key you persist for your endpoint's identity. A fresh key is generated when omitted.
Set the key here, not via EndpointBuilder.secretKey: a key applied
after this preset would replace the one the token is scoped to. Doing
that throws — even for bit-identical bytes — rather than silently
failing auth: this preset pins the key.
OptionalrelaysYour project's relay URLs. Defaults to the n0 public relays when
omitted, matching iroh_services::preset(). Passing an empty list is an
error rather than a silent fallback — that is nearly always a filtered
list that came back empty.
Options for [
preset_iroh_services].Supply exactly one of
api_secretorapi_secret_from_env.