Class AlgorandTransactionCrafter

Hierarchy

  • Crafter
    • AlgorandTransactionCrafter

Constructors

Methods

  • Add Signature

    Parameters

    • encodedTransaction: Uint8Array

      Transaction Bytes

    • signature: Uint8Array

      Signature Bytes

    Returns Uint8Array

  • Offline Key Registration Transaction

    Parameters

    • from: string

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

    Returns IKeyregTxBuilder

  • Online Key Registration Transaction

    Parameters

    • from: string

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

    • voteKey: string

      The root participation public key.

    • selectionKey: string

      The VRF public key.

    • stateProofKey: string

      The 64 byte state proof public key commitment.

    • voteFirst: number | bigint

      The first round that the participation key is valid.

    • voteLast: number | bigint

      The last round that the participation key is valid.

    • voteKeyDilution: number | bigint

      This is the dilution for the 2-level participation key.

    Returns IKeyregTxBuilder

  • Create a new Asset

    Parameters

    • from: string

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

    • params: AssetParams

      Asset Parameters

    Returns IAssetConfigTxBuilder

  • Destroy an existing Asset

    Parameters

    • from: string

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

    • caid: number | bigint

      Unique asset ID.

    Returns IAssetConfigTxBuilder

  • Freeze an Asset

    Parameters

    • fadd: string

      The address of the account whose asset is being frozen or unfrozen.

    • faid: number | bigint

      The asset ID being frozen or unfrozen.

    • afrz: boolean

      True to freeze the asset.

    Returns IAssetFreezeTxBuilder

  • Mark Non-Participation Transaction

    Parameters

    • from: string

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

    Returns IKeyregTxBuilder

  • Payment Transaction

    Parameters

    • amount: number | bigint

      The total amount to be sent in microAlgos.

    • from: string

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

    • to: string

      The address of the account that receives the amount.

    Returns IPayTxBuilder

  • Transfer Asset Transaction

    Parameters

    • from: string

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

    • xaid: number | bigint

      The unique ID of the asset to be transferred.

    • arcv: string

      The recipient of the asset transfer.

    • aamt: number | bigint

      The amount of the asset to be transferred.

    Returns IAssetTransferTxBuilder