Skip to main content

playerCodeClientArtifact

Fetch the client half of an acquired or grid-attached listing (P4a — the deliberate widening of the P3 author-only artifact fetch). Served to an entitled acquirer with a live install, or to a consenting player currently PRESENT in a grid with a live attachment. Both paths require run_client_code and the listing admitted under the app's mode; every factor fails closed as 'not found'.

playerCodeClientArtifact(
appId: BigInt!
listingId: String!
versionId: String
): PlayerClientArtifact!

Arguments

playerCodeClientArtifact.appId ● BigInt! non-null scalar

App that owns the listing.

playerCodeClientArtifact.listingId ● String! non-null scalar

UUID of the listing.

playerCodeClientArtifact.versionId ● String scalar

Optional version pin; must match the live install/attachment version.

Type

PlayerClientArtifact object

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.