JavaScript Client
Basic setup and usage
npm install -S @dcl/social-rpc-clientimport { createSocialClient } from "@dcl/social-client";import { createSocialClient } from "@dcl/social-client";
import { Wallet } from 'ethers'
// Generate a random wallet for testing purposes or use the user's one in production environments.
const wallet = Wallet.createRandom()
const identity = await createIdentity(wallet, expiration)
const socialClient = await createSocialClient(
"https://social.decentraland.org",
"wss://social-service.decentraland.org",
wallet.address,
identity
);Generating an identity
Last updated