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

    Type Alias TypeArgument

    TypeArgument: TxnBuilderTypes.TypeTag | string

    A type argument of an entry or view function: a TypeTag, or the Move type string of a concrete type, one of:

    • u8
    • u16
    • u32
    • u64
    • u128
    • u256
    • bool
    • address
    • signer
    • vector
    • address::module::Struct
    • address::module::Struct<Type1, Type2>

    Addresses are 0x followed by 1 to 64 hex digits. A string must be exactly one type: text after it, generic type parameters such as T0 and unknown type names are refused before any request. A struct type in a string is kept as written, so 0x1::object::Object<0x1::fungible_asset::Metadata> is the struct Object. TypeTagParser of supra-l1-sdk-core parses 0x1::object::Object<T> as address; pass such a type argument as a string.