How to install SDK or your first actions
npm install @peaq-network/sdk
npm install @polkadot/util-crypto
peaq network chain's
Krest (Kusama Network) Coming Soon
peaq (Mainnet) Coming Soon
Create instance of SDK
The following code defines a function called createSdkInstance that takes the chain URL as a parameter and returns a promise that resolves to an instance of the SDK. The function uses a try-catch block to handle any errors that may occur when creating the SDK instance, and it logs the error to the console before re-throwing the error to the calling code.
When creating an instance of the SDK, you must specify the baseUrl parameter as one of the above URLs.
Paramerts & types:
A seed phrase is a sequence of randomly generated words that serves as a form of backup and recovery for accessing cryptocurrency on blockchains or crypto wallets.