Publisher
Prerequisites
A DPSN account with a registered topic.
A delegated address with appropriate permissions.
The DPSN SDK for your preferred programming language.
Setting Up the Environment
Install the SDK: Download and install the DPSN SDK for your chosen programming language (e.g., Node.js, Python, Go).
Create a Delegated Address: Use the DPSN dashboard or API to create a delegated address.
Configure the Environment: Set the
DPSN_DELEGATED_ADDRESS_PVTKEY
environment variable to the newly created delegated address.
Publisher Integration
Import the SDK: Import the necessary modules from the DPSN SDK.
Create a Publisher Instance: Create a new publisher instance using the SDK.
Publish a Message: Use the
publishMessage
function to send a message to your topic.
Last updated