Skip to content

Add create-guild-profile example#37

Draft
Cybersoulja wants to merge 2 commits intoguildxyz:mainfrom
Cybersoulja:claude/create-guild-profile-HuAMw
Draft

Add create-guild-profile example#37
Cybersoulja wants to merge 2 commits intoguildxyz:mainfrom
Cybersoulja:claude/create-guild-profile-HuAMw

Conversation

@Cybersoulja
Copy link

Summary

This PR adds a new example demonstrating how to create a guild profile using the Guild SDK. The example showcases the creation of a "BeatinDaBlock" podcast community with a free-to-join listener role.

Changes

  • New example project: examples/create-guild-profile/
    • index.ts: Main example script that demonstrates guild creation workflow
    • package.json: Project configuration with required dependencies (@guildxyz/sdk, ethers)
    • tsconfig.json: TypeScript configuration for the example

Implementation Details

  • The example accepts a PRIVATE_KEY environment variable for wallet authentication, with a fallback to a random wallet for demonstration
  • Uses the Guild SDK's createGuildClient and createSigner utilities to authenticate and create a guild
  • Creates a guild with a single "Listener" role that has no requirements (free-to-join)
  • Outputs the created guild's ID, URL name, and full Guild.xyz URL upon successful creation
  • Includes proper error handling and console logging for user feedback

https://claude.ai/code/session_01CUJ8tVtqjxLpWxCN3fLYQk

claude added 2 commits March 19, 2026 07:55
…ild ideas

Adds a new `examples/create-guild-profile` script that demonstrates how to
create a guild profile using the Guild SDK.  The example:

- Initialises `createGuildClient` and `createSigner.fromEthersWallet`
- Provides five ready-to-use guild profile ideas (name + description) so a
  user can quickly pick one via the `PROFILE_INDEX` env var
- Accepts a `PRIVATE_KEY` env var for a real wallet, or falls back to a
  randomly generated wallet for local testing
- Creates the guild with a free-access "Member" role so anyone can join

Wallet used as reference: 0x99295ff548fe9760494a005855a46a958b02a33c

https://claude.ai/code/session_01CUJ8tVtqjxLpWxCN3fLYQk
Sets up the create-guild-profile example with BeatinDaBlock branding,
including a free-to-join Listener role so fans can join immediately.

https://claude.ai/code/session_01CUJ8tVtqjxLpWxCN3fLYQk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants