Skip to main content

PlayerClientArtifact

A compiled CLIENT-target player artifact plus the metadata the browser broker needs to run it (player compute P3). Served only to the current grid owner who authored the version, holding run_client_code, when the app's admission mode admits the code. The bytes are the gas-injected wasm32-unknown-unknown module; clientFuelPerDispatch is the per-dispatch fuel budget the glue worker enforces locally.

type PlayerClientArtifact {
versionId: String!
artifactHash: String!
artifactBase64: String!
sizeBytes: Int!
abiVersion: Int!
contractJson: String
clientFuelPerDispatch: BigInt!
}

Fields

PlayerClientArtifact.versionId ● String! non-null scalar

The served version UUID.

PlayerClientArtifact.artifactHash ● String! non-null scalar

Content hash of the artifact (also the cache key stem).

PlayerClientArtifact.artifactBase64 ● String! non-null scalar

The gas-injected client WASM artifact, base64-encoded.

PlayerClientArtifact.sizeBytes ● Int! non-null scalar

Artifact size in bytes (<= 512 KiB).

PlayerClientArtifact.abiVersion ● Int! non-null scalar

ABI version the artifact was built for.

PlayerClientArtifact.contractJson ● String scalar

Declared client interop contract (bridge messages) as JSON, when the version pins one.

PlayerClientArtifact.clientFuelPerDispatch ● BigInt! non-null scalar

Per-dispatch client fuel budget from the resolved player policy; the broker's glue worker traps when a dispatch exceeds it.

Returned By

playerCodeClientArtifact query ● playerComputeArtifact query