Skip to content

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

RpcAttribute = object

Defined in: src/types/rpcSchema.ts:12

An attribute as the node renders it: the name, the type tag (not the wire typeId), and the value in the JSON encoding that type prescribes — a JSON number for i32, a 0x QUANTITY for u64 and u256, a decimal string for dec, 0x DATA for the byte-shaped types, and a string for str.

The encoding follows the declared type, never the magnitude, so a decoder dispatches on type and never has to guess from the shape of the value.

name: string

Defined in: src/types/rpcSchema.ts:13


type: string

Defined in: src/types/rpcSchema.ts:14


value: unknown

Defined in: src/types/rpcSchema.ts:15