Algorand TypeScript Testing
    Preparing search index...
    Index

    Constructors

    Methods

    • Generate a random Algorand address. @returns: A new, random Algorand address.

      Returns Address

    • Generate a random dynamic bytes of size n bits.

      Parameters

      • n: number

        The number of bits for the dynamic bytes. Must be a multiple of 8, otherwise the last byte will be truncated.

      Returns DynamicBytes

      A new, random dynamic bytes of size n bits.

    • Generate a random dynamic string of size n bits.

      Parameters

      • n: number

        The number of bits for the string.

      Returns Str

      A new, random string of size n bits.

    • Generate a random Uint128 within the specified range.

      Parameters

      • minValue: number | bigint = 0

        Minimum value (inclusive). Defaults to 0.

      • maxValue: number | bigint = MAX_UINT128

        Maximum value (inclusive). Defaults to 2n ** 128n - 1n.

      Returns Uint128

      A random Uint128 value.

    • Generate a random Uint16 within the specified range.

      Parameters

      • minValue: number | bigint = 0

        Minimum value (inclusive). Defaults to 0.

      • maxValue: number | bigint = MAX_UINT16

        Maximum value (inclusive). Defaults to 2 ** 16 - 1. @returns: A random Uint16 value.

      Returns Uint16

    • Generate a random Uint256 within the specified range.

      Parameters

      • minValue: number | bigint = 0

        Minimum value (inclusive). Defaults to 0.

      • maxValue: number | bigint = MAX_UINT256

        Maximum value (inclusive). Defaults to 2n ** 256n - 1n.

      Returns Uint256

      A random Uint256 value.

    • Generate a random Uint32 within the specified range.

      Parameters

      • minValue: number | bigint = 0

        Minimum value (inclusive). Defaults to 0.

      • maxValue: number | bigint = MAX_UINT32

        Maximum value (inclusive). Defaults to 2 ** 32 - 1. @returns: A random Uint32 value.

      Returns Uint32

    • Generate a random Uint512 within the specified range.

      Parameters

      • minValue: number | bigint = 0

        Minimum value (inclusive). Defaults to 0.

      • maxValue: number | bigint = MAX_UINT512

        Maximum value (inclusive). Defaults to 2n ** 512n - 1n.

      Returns Uint<512>

      A random Uint512 value.

    • Generate a random Uint64 within the specified range.

      Parameters

      • minValue: number | bigint = 0

        Minimum value (inclusive). Defaults to 0.

      • maxValue: number | bigint = MAX_UINT64

        Maximum value (inclusive). Defaults to 2n ** 64n - 1n. @returns: A random Uint64 value.

      Returns Uint64

    • Generate a random Uint8 within the specified range.

      Parameters

      • minValue: number | bigint = 0

        Minimum value (inclusive). Defaults to 0.

      • maxValue: number | bigint = MAX_UINT8

        Maximum value (inclusive). Defaults to 2 ** 8 - 1. @returns: A random Uint8 value.

      Returns Uint8