Function makeAssetCreateTxn

  • makeAssetCreateTxn takes asset creation arguments and returns a Transaction object for creating that asset

    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

    • total: number | bigint

      integer total supply of the asset

    • decimals: number

      integer number of decimals for asset unit calculation

    • defaultFrozen: boolean

      boolean whether asset accounts should default to being frozen

    • manager: string

      string representation of Algorand address in charge of reserve, freeze, clawback, destruction, etc

    • reserve: string

      string representation of Algorand address representing asset reserve

    • freeze: string

      string representation of Algorand address with power to freeze/unfreeze asset holdings

    • clawback: string

      string representation of Algorand address with power to revoke asset holdings

    • unitName: string

      string units name for this asset

    • assetName: string

      string name for this asset

    • assetURL: string

      string URL relating to this asset

    • Optional assetMetadataHash: string | Uint8Array

      Uint8Array or UTF-8 string representation of a hash commitment with respect to the asset. Must be exactly 32 bytes long.

    • Optional rekeyTo: string

      rekeyTo address, optional

    Returns Transaction

Generated using TypeDoc