Skip to content

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

ValueInput = ArkivValue | boolean | number | bigint | string

Defined in: src/attr/values.ts:409

A JavaScript value accepted wherever a typed value is expected: either a tagged value, or one of the four bare forms that map unambiguously onto a single type.

bare formtype
booleanbool
numberi32
bigintu256
stringstr

Anything else — a large number, a decimal, an address, an entity key — must name its type, which is what keeps "0x1234..." a string rather than silently becoming a key.

These defaults apply identically when writing and when querying, so a value written bare and queried bare always agrees with itself. The mismatch to watch for is mixing the two: an attribute written as u64 does not match a bare bigint predicate, because that predicate asserts u256. A type mismatch is not an error to the engine — it simply matches nothing.