supra-ts-sdk - v2.0.0
    Preparing search index...

    Type Alias MoveValue

    MoveValue:
        | boolean
        | number
        | bigint
        | string
        | null
        | undefined
        | MoveStructId
        | object
        | MoveValue[]

    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

    Vector -> Array<MoveValue>

    Option -> MoveValue | null | undefined