Skip to content

u64(): Column<"u64", false, false, false>

Defined in: src/schema/values.ts:160

A u64 column, indexed for equality and range queries once .indexed().

Column<"u64", false, false, false>

u64(value): U64Value

Defined in: src/schema/values.ts:177

A 64-bit unsigned integer.

This is the width the protocol counts in: block heights, $expiresAt and the entity-nonce are all u64, so it is the type to reach for when a value has to line up with one of them. Use u256 for token amounts and anything else that can exceed 2⁶⁴.

A non-negative integer, as a bigint, a safe number, or a decimal or 0x hex string.

string | number | bigint

U64Value

If the value is negative, non-integral, or wider than 64 bits.

u64(1_200_000n) // a block height
u64(Date.now()) // safe integers are accepted
u64("0x124f80") // hex, as it comes back over JSON-RPC