website logo
WebsiteGithubDiscordTwitterTelegramSDK
⌘K
Get started
Welcome to peaq
Introduction to peaq
Our mission
Our vision
Learn
Overview of networks
Economics
Tokens & Token Utility
Why Polkadot
Tech stack
Source code
Important links
Security Assessment Reports
Builders
SDK
Get started
Build
Integrate
Get inspired
Grants & Funding
Ecosystem and Community Initiatives
User Interfaces
peaq control
peaq portal
Node operators
Run a node
Tokens & Earn
Agung tokens (Faucet)
Wallets
Docs powered by archbee 

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.


code example


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
PREVIOUS
How to get Address on Polkadot
NEXT
Generate DID
Docs powered by archbee 
code example