zPass docs
  • zPass
    • Introduction
    • Quickstart
    • Background
    • Benefits & Use Cases
    • Technical Foundations
    • System Participants
    • Powered by Aleo
  • Fundamentals
    • Issuer
    • Holder
    • Verifier
    • Off-chain flow
    • On-chain flow
    • Local Execution with WASM
  • ZPass Programs
    • Background
    • Verify offchain program
    • zPass issuance program
    • zPass hiding program
    • zPass invalidate program
    • zPass invalidate hiding program
    • zPass merkle tree size 8 program
  • ZPass SDK
    • Methods References
      • constructor
      • setNewHost
      • issueZPass
      • getZPassRecord
      • proveOnChain
      • proveOffChain
      • verifyOnChain
      • verifyOffChain
      • signCredential
      • initThreadPool
      • createAleoWorker
      • getMerkleRoot
      • getMerkleTree
      • getMerkleProof
      • getLeavesHashes
      • signMerkleRoot
  • Example Usage
    • Step-by-step Guide
Powered by GitBook
On this page
  • Description
  • Parameters
  • Example
  1. ZPass SDK
  2. Methods References

setNewHost

Description

The setNewHost method allows you to update the host URL for the ProgramManager. This is useful if the API endpoint for your Aleo network changes or if you need to switch between different environments (e.g., staging, production).

Parameters

  • host (string): The new host URL to be set for the ProgramManager. It must be a valid URL.

Example

zpassSdk.setNewHost('http://localhost:3030');
PreviousconstructorNextissueZPass

Last updated 4 months ago