- parseASADef(asaDef: {
clawback?: string;
decimals: number | bigint;
defaultFrozen?: boolean;
freeze?: string;
manager?: string;
metadataHash?: string | Uint8Array | Buffer;
name?: string;
note?: string;
noteb64?: string;
optInAccNames?: string[];
reserve?: string;
total: string | number | bigint;
unitName?: string;
url?: string;
}, source?: string): types.ASADef
-
Parameters
-
asaDef: {
clawback?: string;
decimals: number | bigint;
defaultFrozen?: boolean;
freeze?: string;
manager?: string;
metadataHash?: string | Uint8Array | Buffer;
name?: string;
note?: string;
noteb64?: string;
optInAccNames?: string[];
reserve?: string;
total: string | number | bigint;
unitName?: string;
url?: string;
}
-
Optional
clawback?: string
-
decimals: number | bigint
-
Optional
defaultFrozen?: boolean
-
Optional
freeze?: string
-
Optional
manager?: string
-
Optional
metadataHash?: string | Uint8Array | Buffer
-
Optional
name?: string
-
Optional
note?: string
-
Optional
noteb64?: string
-
Optional
optInAccNames?: string[]
-
Optional
reserve?: string
-
total: string | number | bigint
-
Optional
unitName?: string
-
Optional
url?: string
-
Optional
source: string
Returns types.ASADef
Validate and parse each field of asset definition.
metadataHash
, if provided as a Buffer will be transformed into Uint8Array.Returns
parsed asa definition