Possible Move values acceptable by move functions (entry, view)
Map of a Move value to the corresponding TypeScript value
Bool -> boolean, or the string "true" or "false"
u8, u16, u32 -> number
u64, u128, u256 -> string
i8, i16, i32 -> number
i64, i128, i256 -> string
Integers are also accepted as bigint, and as number when they are safe integers (at most 2^53 - 1 in
magnitude). A value outside the range of the type throws.
String -> string
Address -> 0x${string} or HexString, 1 to 64 hex digits
Struct - 0x${string}::${string}::${string}
0x1::fixed_point32::FixedPoint32 -> bigint or a decimal string, the raw u64 value
0x1::fixed_point64::FixedPoint64 -> bigint or a decimal string, the raw u128 value
Object -> 0x${string} or HexString, the object's address
Possible Move values acceptable by move functions (entry, view)
Map of a Move value to the corresponding TypeScript value
Bool -> boolean, or the string"true"or"false"u8, u16, u32 -> numberu64, u128, u256 -> stringi8, i16, i32 -> numberi64, i128, i256 -> stringIntegers are also accepted as
bigint, and asnumberwhen they are safe integers (at most 2^53 - 1 in magnitude). A value outside the range of the type throws.String -> stringAddress -> 0x${string}orHexString, 1 to 64 hex digitsStruct - 0x${string}::${string}::${string}0x1::fixed_point32::FixedPoint32 -> bigintor a decimal string, the rawu64value0x1::fixed_point64::FixedPoint64 -> bigintor a decimal string, the rawu128valueObject -> 0x${string}orHexString, the object's addressVector -> Array<MoveValue>Option -> MoveValue | null | undefined