port | 3000 | Port Fastify listens on |
host | 0.0.0.0 | Interface Fastify binds to |
startingPeer | none | Origin of a peer to bootstrap from, without the /v1 suffix. See Joining a network. |
baseUrl | BASE_URL | Public origin peers use to reach this node. Required. |
publicKey | SIGNING_PUBLIC_KEY | This node’s signing public key. Required. |
privateKey | SIGNING_PRIVATE_KEY | This node’s signing private key. Required. |
apiKey | API_KEY | Bearer token for POST /v1/run and the /v1/admin routes. API clients use run tokens instead |
operatorUrl | OPERATOR_URL | Operator API that moves money for paid calls and issues run tokens. Required when the node hosts a paid function, has structs, or enrolls with enrollmentToken. With it, the node also accepts run tokens and reports its baseUrl for listing. |
enrollmentToken | ENROLLMENT_TOKEN | One-time token from the Stellarium Platform that enrolls this node in an organization at startup. See Organizations and nodes. |
costLimitMicroUsd | COST_LIMIT_MICRO_USD, then 10000 | Most this node pays for one remote call, in micro-USD (10000 is $0.01). See Payments. In a run billed to an API client, the run’s hold limits its calls instead. |
inferenceCostLimitMicroUsd | INFERENCE_COST_LIMIT_MICRO_USD, then costLimitMicroUsd | Most this node signs for in one remote inference call: the voucher’s maxAmount. See Inference functions. |
contractCostLimitMicroUsd | CONTRACT_COST_LIMIT_MICRO_USD, then costLimitMicroUsd | Most one call to a contract on another node may cost, with the paid calls the contract makes: the contract voucher’s maxAmount. |
contractDeployFeeMicroUsd | CONTRACT_DEPLOY_FEE_MICRO_USD, then 0 | What another organization pays to deploy a contract to this node. |
maxContractSourceBytes | MAX_CONTRACT_SOURCE_BYTES, then 65536 | The largest contract this node accepts. |
maxContractStateBytes | MAX_CONTRACT_STATE_BYTES, then 65536 | The most one contract’s state may hold in one scope, in bytes. A call that would grow it past this saves nothing. |
maxEventsPerRun | MAX_EVENTS_PER_RUN, then 16 | The most events one run may emit. A run that emits more fails. |
maxEventDataBytes | MAX_EVENT_DATA_BYTES, then 32768 | The most one event’s data may take, as JSON, in bytes. The node also refuses delivered events larger than this. |
eventWorkerIntervalMs | 5 seconds | How often the node checks its event queues for deliveries and event contract runs that are due, besides right after an event is queued |
databasePath | DATABASE_PATH, then ./requestscript.db | SQLite file for peers, learned resources, grants and contracts. :memory: keeps nothing on disk. |
databaseUrl | DATABASE_URL | A postgres:// or postgresql:// URL. When set, the node uses Postgres instead of SQLite. See Local state. |
databaseSchema | DATABASE_SCHEMA | Postgres schema for the node’s tables, created if missing. Needs databaseUrl. |
rateLimit | 100 a minute | Per-IP limit ({ max, timeWindow }) on POST /v1/run/resource and the grant routes |
grants | none | Grant chains addressed to this node, stored at start. See Permissions. |
grantRefreshIntervalMs | 5 minutes | How often held grants past half their lifetime are renewed |
sessionRefreshIntervalMs | 5 minutes | How often a node with an operator asks it again for its organization, its listed price, which its contracts are charged at, and the membership token it publishes events with |
structs | none | Structs from defineStruct, declared as the node’s organization’s when it starts, besides those passed to registerStruct. The node waits for its operator session before it serves. See Structs. |
approveGrant | none | Decides callers’ requests for grants at POST /v1/grants/request. Without it, every request is refused. |