Algorand TypeScript
    Preparing search index...

    Type Alias Asset

    Creates a new Asset object represent the asset id 0 (an invalid ID)

    type Asset = {
        clawback: Account;
        creator: Account;
        decimals: uint64;
        defaultFrozen: boolean;
        freeze: Account;
        id: uint64;
        manager: Account;
        metadataHash: bytes<32>;
        name: bytes;
        reserve: Account;
        total: uint64;
        unitName: bytes;
        url: bytes;
        balance(account: Account): uint64;
        frozen(account: Account): boolean;
    }
    Index

    Properties

    clawback: Account

    Clawback address

    creator: Account

    Creator address

    decimals: uint64

    AssetParams.decimals

    defaultFrozen: boolean

    Frozen by default or not

    freeze: Account

    Freeze address

    id: uint64

    Returns the id of the Asset

    manager: Account

    Manager address

    metadataHash: bytes<32>

    Arbitrary commitment

    name: bytes

    Asset name

    reserve: Account

    Reserve address

    total: uint64

    Total number of units of this asset

    unitName: bytes

    Asset unit name

    url: bytes

    URL with additional info about the asset

    Methods

    • Amount of the asset unit held by this account. Fails if the account has not opted in to the asset. Asset and supplied Account must be an available resource

      Parameters

      Returns uint64

      balance: uint64

    • Is the asset frozen or not. Fails if the account has not opted in to the asset. Asset and supplied Account must be an available resource

      Parameters

      Returns boolean

      isFrozen: boolean