Function makeAssetCreateTxnWithSuggestedParams

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

    Parameters

    • from: string

      string representation of Algorand address of sender

    • note: Uint8Array

      uint8array of arbitrary data for sender to store

    • 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

    • assetMetadataHash: string | Uint8Array

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

    • suggestedParams: SuggestedParams

      a dict holding common-to-all-txns args: fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true flatFee - bool optionally set this to true to specify fee as microalgos-per-txn If true, txn fee may fall below the ALGORAND_MIN_TX_FEE firstRound - integer first protocol round on which this txn is valid lastRound - integer last protocol round on which this txn is valid genesisHash - string specifies hash genesis block of network in use genesisID - string specifies genesis ID of network in use

    • Optional rekeyTo: string

      rekeyTo address, optional

    Returns Transaction

Generated using TypeDoc