Function makeAssetFreezeTxn

  • makeAssetFreezeTxn will allow the asset's freeze manager to freeze or un-freeze an account, blocking or allowing asset transfers to and from the targeted account.

    Deprecated

    in version 2.0 this will change to use the "WithSuggestedParams" signature.

    Parameters

    • from: string

      string representation of Algorand address of sender

    • fee: number

      integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.

    • firstRound: number

      integer first protocol round on which this txn is valid

    • lastRound: number

      integer last protocol round on which this txn is valid

    • note: Uint8Array

      uint8array of arbitrary data for sender to store

    • genesisHash: string

      string specifies hash genesis block of network in use

    • genesisID: string

      string specifies genesis ID of network in use

    • assetIndex: number

      int asset index uniquely specifying the asset

    • freezeTarget: string

      string representation of Algorand address being frozen or unfrozen

    • freezeState: boolean

      true if freezeTarget should be frozen, false if freezeTarget should be allowed to transact

    • Optional rekeyTo: string

      rekeyTo address, optional

    Returns Transaction

Generated using TypeDoc