LogoLogo
X/TwitterMediumGitHubDePHY Website
  • Introduction
    • What is DePHY
    • Key features
    • Architecture
  • Components
    • Messaging layer 🔥
      • Data Pub-Sub
      • Solana Integration
      • RPC Call
      • RPC Endpoints
      • Best Practices
      • Verifiable logs
    • DePHY ID [Coming Soon]
      • Register products
      • Mint DID
      • Use DID as token gate (access control)
      • Extentions
      • Build with DePHY ID
      • Hardware integration and attestation
    • Liquidity layer
      • Stake Pool
      • Yield Pool
      • PayFi Pool
    • Verification layer
      • Proof of real device
        • Integration
      • Proof of location
        • Integration
      • DePHY NCN (on Jito Restaking)
        • Integration
      • Trusted DePIN network map
        • Integration
  • Tutorials 🔥
    • Build a Hello World (Rust)
    • Build a Hello World (TypeScript)
    • Build a DeCharge Machine
    • Build a Gacha Machine
    • Build a LLM Proxy
  • Service Mesh
    • AI MCP Services
      • About MCP
      • How to Enable DePHY MCP Server
      • How to use DePHY MCP
  • DePHY Node 🕹️
    • Get a DePHY Node
    • Set Up a DePHY Node
    • Migration From Testnet1 to Testnet2
    • Node Setup FAQ
  • Resources
    • Blog
    • GitHub
    • X
    • Telegram
    • Discord
Powered by GitBook
On this page
  • Connecting to the Messaging Layer
  • 1. Use DePHY’s Relay URL
  • 2. Local Deployment
  • Recommended Messaging Layer Client
  • Rust
  • JavaScript/TypeScript
  • Python
  • Go
  • Kotlin
  • Swift
  1. Components
  2. Messaging layer 🔥

RPC Call

PreviousSolana IntegrationNextRPC Endpoints

Last updated 1 month ago

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:

2. Local Deployment

  • Prerequisites:

    • Docker: Ensure 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.

Recommended Messaging Layer Client

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

RPC Endpoints
Docker
nostr-sdk
nostr
nostr-tools
nostr-relay
pynostr
nostr-py
go-nostr
nostr-kotlin
NostrKit