Skip to content

xmtp/xmtp-quickstart-node

Repository files navigation

XMTP Quickstart Node

xmtp

Installation

npm install
node demo.js

Concepts

Head to our docs to understand XMTP's concepts

Script

const ethers = require("ethers");
const { Client } = require("@xmtp/xmtp-js");

async function main() {
  const xmtp = await Client.create(ethers.Wallet.createRandom(), {
    env: "dev",
  });
  const conv = await xmtp.conversations.newConversation("address");
  const message = await conv.send("gm");
  console.log(message);
}
main();

About

xmtp-quickstart-node

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published