Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Dual client queue example

A simple demonstration of using two separate XMTP clients: one for receiving messages and another for sending queued responses.

Getting started

Requirements

  • Node.js v20 or higher
  • Yarn v4 or higher
  • Docker (optional, for local network testing)

Environment Variables

To run your XMTP agent, create a .env file with the following variables:

XMTP_WALLET_KEY= # the private key of the wallet
XMTP_DB_ENCRYPTION_KEY= # encryption key for the local database
XMTP_ENV=dev # local, dev, production

Run the agent

# Clone the repository
git clone https://github.com/ephemeraHQ/xmtp-agent-examples.git
# Navigate to the queue dual client example directory
cd xmtp-agent-examples/examples/xmtp-queue-dual-client
# Install dependencies
yarn
# Generate random XMTP keys (optional)
yarn gen:keys
# Run the example
yarn dev