Skip to content

Braga has been retired. The next public testnet is coming in September 2026. Read the announcement →

AttributeInputs = Readonly<Record<string, ValueInput>>

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

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

Values may be tagged (ValueInput) 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