The quickest way to get started building on peaq is to use one of our prebuilt SDKs. They offer robust capabilities in DID, RBAC, and Storage - all communicated via the peaq blockchain. Please checkout the official SDK Reference for more detailed information.
Create a new JavaScript project and follow the steps below to set up a new instance of the peaq sdk.
Create a Node.js project
Run commandnpm init -y
to create a Node.js project.
Install the SDK
Enable ES Modules
In the package.json
file, add "type": "module"
to enable ES Modules.
Create a JavaScript file
Create a new .js
file.
Write your code
Write the JavaScript code that interacts with the SDK.
Execute your code
Run command: node file_name.js
to execute.
After completing these steps the peaq sdk will have been successfully installed at your local Javascript Project. For more information about the capabilities it offers checkout the JavaScript SDK Reference.
Setup Virtual Environment
Mac/Linux:
Windows:
Install the SDK
Setup Requirements.txt
Add python-dotenv==1.1.0
to this file to enable environment variables. Install with pip install -r requirements.txt
.
Create a Python file
Create a new .py
file.
Write your code
Write Python code that interacts with the SDK.
Execute your code
Run command: python file_name.py
to execute.
For more information about the Python SDK, take a look at the Python SDK Reference.