Connection
8min
Connect SDK
Function: connect()
To connect to the peaq Network testnet, you can create an SDK instance and then call the connect()function.
Example code generates a mnemonic seed, creates an SDK instance with the peaq Network testnet as the base URL, and connects to the network using the connect() function.
Disconnect SDK
Function: disconnect()
To disconnect from the PEAQ Network testnet, create an SDK instance and call the sdkInstance.disconnect() function.
This will close the connection to the network and free up any resources being used by the SDK.
Did this page help you?
Yes
No