@hashgraph/solo
    Preparing search index...
    Index

    Constructors

    Properties

    logger?: SoloLogger

    Methods

    • Fetch data from a URL and save the output to a file

      Parameters

      • url: string

        source file URL

      • destinationPath: string

        destination path for the downloaded file

      Returns Promise<string>

    • Fetch a remote package

      Parameters

      • packageURL: string
      • checksumDataOrURL: string

        package checksum URL or checksum data

      • destinationDirectory: string

        a directory where the files should be downloaded to

      • verifyChecksum: boolean = true

        whether to verify checksum or not

      • Optionalalgo: string = 'sha256'

        checksum algo

      • Optionalforce: boolean = false

        force download even if the file exists in the destinationDirectory

      Returns Promise<string>

    • Fetch Hedera platform release artifact

      It fetches the build.zip file containing the release from a URL like: https://builds.hedera.com/node/software/v0.40/build-v0.40.4.zip

      Parameters

      • tag: string

        full semantic version e.g. v0.40.4

      • destinationDirectory: string

        directory where the artifact needs to be saved

      • Optionalforce: boolean = false

        whether to download even if the file exists

      Returns Promise<string>

      full path to the downloaded file