Skip to main content

mintGridToken

Mint a grid-scoped token from the app token you hold (DN-10). The result can call only a short, fixed list of gameplay fields, and each is confined to the grid: world reads and replication sends must address a chunk inside it (a send's origin; its reach follows distance), and channels must be the grid's own. refreshAppToken and logout are refused, so the token cannot widen or tear down its parent. Requires an app token (not a session token, not another grid token), and the caller must own the grid or hold run_client_code on it.

mintGridToken(
input: MintGridTokenInput!
): GridTokenResponse!

Arguments​

mintGridToken.input ● MintGridTokenInput! non-null input​

The app, the grid, and an optional lifetime.

Type​

GridTokenResponse object​

A grid-scoped token: an app token narrowed to one grid. Hand it to code that should act inside the grid and nowhere else (a JS grid program, a mod host adapter, an agent).