Skip to content

AttributeInputs = Readonly<Record<string, ValueInput>>

Defined in: src/attr/attributes.ts:40

The attributes written on an entity, as a plain object keyed by attribute name.

Values may be tagged (ArkivValue) or bare where the type is unambiguous — see toValue for the bare-form defaults.

const attributes = {
level: i32(10),
balance: u256(1_000_000n),
score: dec("3.5"),
parent: key(parentKey),
name: "Bob", // bare string -> str
flagged: true, // bare boolean -> bool
} satisfies AttributeInputs