Appearance
Others
Add custom user identity
To customize the profile picture, display name, and external link out for users on your leaderboard, you can do so by setting a custom identity for them.
typescript
await stack.setIdentity("0x6D937B6460DC218B3518246e5c62F9f9bdF49899", {
identity: "/sonata",
pfpUrl: "your image or gif url"
externalUrl: "https://warpcast.com/~/channel/sonata"
});
Creating a new point system
New point systems can be programtically created from the SDK.
typescript
const pointSystem = await stack.createPointSystem("my new point system");
// Initialize a new client to begin tracking events
const newClient = new StackClient({
apiKey: process.env.STACK_API_KEY_TEST as string,
pointSystemId: pointSystem.systemId,
});