RPC Call

Connecting to the Messaging Layer

To interact with the Messaging Layer, you have two options: connect to DePHY’s public relay URL or deploy a local instance. Choose based on your needs—public for simplicity, local for development or control.

1. Use DePHY’s Relay URL

PRC Endpoints can be found here:

RPC Endpoints

2. Local Deployment

  • Prerequisites:

    • Docker: Ensure Docker is installed and running on your system to manage the messaging network services.

  • Steps:

    1. Clone the repository:

      git clone https://github.com/dephy-io/dephy-messaging-network-self-hosted.git
      cd dephy-messaging-network-self-hosted/dephy-messaging-network
    2. Launch the messaging layer using Docker Compose:

      docker compose up --pull always

This deploys a self-hosted Nostr-based messaging network locally, ready to handle event subscriptions and publications for your DePHY applications. By default, it will be accessible at wss://localhost:8080.

Below are recommended libraries for interacting with the Nostr protocol across multiple programming languages, with hyperlinks to their official repositories or documentation.

Rust

JavaScript/TypeScript

Python

Go

Kotlin

Swift

Last updated