GET_PROFILE

The GET_PROFILE handler retrieves the profile of a user from the Pulse Protocol. It requires the user's unique address to return the profile information.

Interaction Format

To interact with this handler, use the following format:

Send({
   Target = "Process_Id", -- Replace with the actual process ID
   Action = "GET_PROFILE",
   Tags = {
       address = "user_address" -- Required: The unique address of the user
   }
})

Input Parameters

Field
Type
Required
Description

address

String

Yes

The unique address of the user.

Validations

  • address: Must be provided and should correspond to a valid user in the database.

Response Format

Success

{
   "status": "success",
   "data": {
       "address": "user_address",
       "username": "user_username",
       "name": "user_full_name",
       "description": "profile_description",
       "profile_extra_data": { "key": "value" },
       "profile_picture_url": "https://example.com/profile.jpg",
       "cover_photo_url": "https://example.com/cover.jpg"
   }
}

Error

{
   "status": "error",
   "message": "Address is required"
}
{
   "status": "error",
   "message": "User not found"
}

Last updated