Class AssetConfigTxBuilder

This is used to create, configure and destroy an asset depending on which fields are set.

// Builder
const tx = new AssetConfigTxBuilder("GENESIS_ID", "GENESIS_HASH")
.addAssetId(1234)
.get()

Implements

  • IAssetConfigTxBuilder

Constructors

Methods

  • Add Asset ID

    Parameters

    • caid: number | bigint

      For re-configure or destroy transactions, this is the unique asset ID. On asset creation, the ID is set to zero.

    Returns IAssetConfigTxBuilder

    required, except on create

  • Add Asset Parameters

    Parameters

    Returns IAssetConfigTxBuilder

    required, except on destroy

  • Add Fee

    Parameters

    • fee: number | bigint

      Paid by the sender to the FeeSink to prevent denial-of-service. The minimum fee on Algorand is currently 1000 microAlgos.

    Returns IAssetConfigTxBuilder

  • Add First Valid Round

    Parameters

    • fv: number | bigint

      The first round for when the transaction is valid. If the transaction is sent prior to this round it will be rejected by the network.

    Returns IAssetConfigTxBuilder

  • Add Group

    Parameters

    • grp: Uint8Array

      The group specifies that the transaction is part of a group and, if so, specifies the hash of the transaction group.

    Returns IAssetConfigTxBuilder

  • Add Last Valid Round

    Parameters

    • lv: number | bigint

      The ending round for which the transaction is valid. After this round, the transaction will be rejected by the network.

    Returns IAssetConfigTxBuilder

  • Add Lease

    Parameters

    • lx: Uint8Array

      A lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes.

    Returns IAssetConfigTxBuilder

  • Add Note

    Parameters

    • note: string

      Any data up to 1000 bytes.

    • encoding: BufferEncoding = "utf8"

    Returns IAssetConfigTxBuilder

  • Add Rekey Address

    Parameters

    • rekey: string

      Specifies the authorized address. This address will be used to authorize all future transactions.

    Returns IAssetConfigTxBuilder

  • Add Sender

    Parameters

    • sender: string

      The address of the account that pays the fee and amount.

    Returns IAssetConfigTxBuilder