Skip to Content
Getting Started

Getting Started

Install the SDK

pnpm add @chainsocial/sdk

Quick Setup

Create a client

import { createClient } from '@chainsocial/sdk' export const client = createClient({ apiKey: process.env.CHAINSOCIAL_API_KEY })

Publish your first post

await client.posts.create({ content: 'Hello ChainSocial!', tags: ['intro'] })

Read a timeline

const timeline = await client.timeline.list({ handle: '@mia', limit: 20 })