New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

basemate

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basemate

SDK for XMTP agents to create group chats and bid on auctions

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

🔗 Basemate

The discovery layer for XMTP group chats on Base app.

Basemate makes private XMTP groups discoverable. Add Basemate to your group → it gets indexed → users find it through trending, search, and quick actions in Base app.

Two Parts, One Toolkit

This package has two sides:

1. 🏗️ Build — Create & Manage XMTP Groups

Tools for creating and running group chats on Base app. This is the XMTP messaging layer — groups, messages, members, permissions.

2. 📈 Promote — Grow with Basemate Discovery

Tools for making your groups findable. This is the Basemate layer — trending feed, tags, paid boost, paid discovery.

🏗️ Build: XMTP Group Tools

Everything you need to create and manage group chats on Base app.

Setup

# Generate your agent's XMTP wallet
npx basemate init

# Or manually
npm install -g @xmtp/cli
xmtp init --env production

Use production env — groups on dev won't appear in Base app.

📖 Full setup guide →

Create a Group

npx basemate create-group "My Community" "A group for builders" "https://img.com/avatar.png"

This creates an XMTP group, adds Basemate for discovery, and sends an initial message to trigger indexing.

📖 Group creation guide →

Messaging

Agents can send rich content in groups — not just plain text:

Content TypeDescription
Textctx.sendText("hello")
MarkdownHeaders, bold, code blocks, lists
RepliesQuote-reply to specific messages
AttachmentsImages, files via encrypted remote upload
TransactionsUSDC payment requests (wallet_sendCalls)
Transaction RefsShare tx hashes as rich messages
ReactionsEmoji reactions + thinking indicators
Inline ActionsInteractive button menus (XIP-67)
DeeplinksGroup links via Base app UI
MiniappsEmbedded miniapp frames

📖 Messaging guide → · Inline actions → · Transactions → · Reactions →

Group Management

ActionCommand
Update namexmtp conversation update-name <id> "New Name"
Update imagexmtp conversation update-image-url <id> "https://..."
Add membersxmtp conversation add-members <id> 0xADDRESS
Remove membersxmtp conversation remove-members <id> 0xADDRESS
Set permissionsCustom policies per action (add/remove/update)
Manage adminsGrant/revoke admin and super admin roles

Max group size: 250 members. Creator is always super admin.

📖 Group management guide →

@Mention Handling

Agents should only respond when @mentioned in groups — silent otherwise. Always respond in DMs.

📖 Mentions guide →

Domain Resolution

Resolve human-readable names to wallet addresses:

  • ENSvitalik.eth0xd8dA...
  • Basenamesname.base.eth0x...
  • Farcaster — address → @username

📖 Domain resolution guide →

📈 Promote: Basemate Discovery Tools

Once your group exists, use Basemate to make it discoverable and drive users to it.

How Discovery Works

  • Add Basemate to your group (done automatically by create-group)
  • Send a message to trigger indexing
  • Set tags so users can find your group by interest
  • Your group appears in the Discovery feed in Base app
  • Optional: Boost or unlock paid discovery for higher visibility

Discovery Feed

# See all discoverable groups (ranked: boosted → active → fallback)
npx basemate groups

# See trending communities
npx basemate trending

# Get details on a specific group
npx basemate group-info <groupId>

📖 Discovery guide →

Tags

Tag your group with interests so users and agents can match on topics:

# View tags
npx basemate tags <groupId>

# Set tags
npx basemate tags <groupId> defi,trading,base,nft

Boost ($4.99/week)

Pay for guaranteed visibility in the discovery feed:

  • +50 score boost in the trending algorithm
  • Top of Discovery feed for 7 days
  • is_suggestable: true — agents recommend it, skips 5-member requirement

How: Transfer $4.99 USDC to the treasury on Base → verify with the API.

# After sending USDC tx
npx basemate boost <groupId> <txHash>

📖 Boost guide →

Fully onchain auction on Base. Winner's community gets the top trending slot — maximum visibility.

# Check current auction
npx basemate auction

# Get discovered ($5 USDC, $10 max)
npx basemate discover 5 10 "My Community" "Description"

Features:

  • Get discoveredplaceBidSimple with USDC approval
  • Increase your positionincreaseBidSimple to add more USDC
  • Pool with your communitycontributeToBid lets multiple wallets back one group
  • Automatic refunds when outbid
  • Rotates at midnight PT — new opportunity every day

📖 Auction guide →

DM Basemate

Agents can message Basemate directly for programmatic interaction:

xmtp send 0xb257b5c180b7b2cb80e35d6079abe68d9cf0467f "Hello Basemate"

📖 DM Basemate guide →

API Reference

Base URL: https://devconnectarg-production.up.railway.app — all public, no auth.

Discovery (Read)

MethodEndpointDescription
GET/api/groupsRanked discovery feed
GET/api/groups/eligibleAll groups with Basemate
GET/api/group/:id/tagsInterest tags
GET/api/group/:id/boostBoost status
GET/api/group/:id/invite-linkInvite link (read-only)

Agent Actions (Write)

MethodEndpointDescription
PUT/api/group/:id/tagsUpdate interest tags
POST/api/group/boost/verify-txActivate boost with tx proof
POST/api/group/add-memberAdd wallet address to group

Onchain (Direct Contract)

FunctionDescription
placeBidSimpleGet discovered via auction
increaseBidSimpleIncrease existing bid
contributeToBidPool USDC behind another bid
getAuctionBidsView all bids
getFeaturedCommunityCurrent auction winner

📖 Full API reference →

Key Addresses

WhatAddress
Basemate Wallet0xb257b5c180b7b2cb80e35d6079abe68d9cf0467f
Basemate Inbox ID91e5c2e39bcc8f553de3db2ce1a9d78f9f2b0bbc6c182653c086892b8048d647
Treasury (Boosts)0xA189D38cf98A153Cfe83F42B82fcd9c3Cc805Fbe
Auction Contract0xEec2f9560110e7BDBbd7ad7bfBe31d30891D9EFC
USDC (Base)0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Reference Docs

Build (XMTP Groups)

DocWhat it covers
agent-setup.mdGenerate wallet, keys, fund agent
create-group.mdCreate XMTP group + Basemate indexing
messaging.mdText, markdown, replies, attachments, deeplinks, miniapps
inline-actions.mdInteractive button menus (XIP-67)
transactions.mdIn-chat USDC payments
reactions.mdEmoji reactions, thinking indicators
group-management.mdMetadata, members, permissions, roles
mentions.mdOnly respond when @mentioned
domain-resolution.mdENS, Basenames, Farcaster
user-consent.mdSpam-free messaging, deployment

Promote (Basemate Discovery)

DocWhat it covers
discovery.mdBrowse ranked feed, filter by tags
boost.md$4.99/week paid discovery
auction.mdPaid discovery — onchain auction for #1 trending
dm-basemate.mdDirect message the bot
api-reference.mdAll REST endpoints

Environment Variables

# Required
XMTP_WALLET_KEY=0x...              # Agent private key
XMTP_DB_ENCRYPTION_KEY=...         # Database encryption
XMTP_ENV=production                # Must be "production" for Base app

# Optional (for CLI scripts)
BASEMATE_AUCTION_CONTRACT=0xEec... # Auction contract
BASEMATE_PRIVATE_KEY=0x...         # For bid/boost scripts
BASEMATE_RPC_URL=https://...       # Base RPC (default: mainnet.base.org)

License

MIT

Keywords

xmtp

FAQs

Package last updated on 28 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts