SDK Reference
The @tribe-protocol/sdk is the primary way to interact with the Tribe Protocol.
TribeClient
The main entry point for all protocol interactions.
import { TribeClient } from "@tribe-protocol/sdk";
// Initialize for Devnet
const tribe = TribeClient.forDevnet(provider);
// Initialize for Mainnet
const tribe = TribeClient.forMainnet(provider);Modules
identity
TID registration, app key management, and username registration.
social
Follow/unfollow actions and social profile queries.
tweets
Publishing content and querying the feed.
hub
Low-level access to Hub API and gossip status.
Execution Providers
Configure how operations are executed (L1 vs ER).
ER Provider Example
const tribe = TribeClient.forDevnet(provider, {
execution: new EphemeralRollupProvider({
erServerUrl: "http://localhost:3003",
custodyPubkey: wallet.publicKey.toBase58(),
signFn: (msg) => wallet.signMessage(msg),
}),
});