Const
Optional
options: BcsTypeOptions<boolean, boolean>Creates a BcsType representing a fixed length byte array
The number of bytes this types represents
Optional
options: BcsTypeOptions<Uint8Array<ArrayBufferLike>, Iterable<number, any, any>>Creates a BcsType representing a variable length byte array
Optional
options: BcsTypeOptions<Uint8Array<ArrayBufferLike>, Iterable<number, any, any>>Creates a BcsType representing an enum of a given set of options
The name of the enum
The values of the enum. The order of the values affects how data is serialized and deserialized. null can be used to represent a variant with no data.
Optional
options: Omit<Creates a BcsType that can ser/de string values. Strings will be UTF-8 encoded
Optional
options: BcsTypeOptions<string, string>Creates a BcsType representing a struct of a given set of fields
The name of the struct
The fields of the struct. The order of the fields affects how data is serialized and deserialized
Optional
options: Omit<Creates a BcsType representing a tuple of a given set of types
Creates a BcsType that can be used to read and write a 128-bit unsigned integer.
Optional
options: BcsTypeOptions<string, string | number | bigint>Creates a BcsType that can be used to read and write a 16-bit unsigned integer.
Optional
options: BcsTypeOptions<number, number>Creates a BcsType that can be used to read and write a 256-bit unsigned integer.
Optional
options: BcsTypeOptions<string, string | number | bigint>Creates a BcsType that can be used to read and write a 32-bit unsigned integer.
Optional
options: BcsTypeOptions<number, number>Creates a BcsType that can be used to read and write a 64-bit unsigned integer.
Optional
options: BcsTypeOptions<string, string | number | bigint>Creates a BcsType that can be used to read and write an 8-bit unsigned integer.
Optional
options: BcsTypeOptions<number, number>Creates a BcsType that can be used to read and write unsigned LEB encoded integers
Optional
options: BcsTypeOptions<number, number>
Creates a BcsType that can be used to read and write boolean values.