Send Broadcast
Send announcements to all holders of your loyalty program. Broadcasts are visible to every pass holder and are perfect for program-wide updates and promotions.
Overview
The sendBroadcast function sends a message to all loyalty pass holders in your program simultaneously, ideal for announcements and promotions.
import { sendBroadcast } from '@verxioprotocol/core'
// Send to all holders
const result = await sendBroadcast(context, {
collectionAddress: publicKey('COLLECTION_ADDRESS'),
message: 'New rewards program launching next month!',
sender: programAuthority.publicKey,
signer: updateAuthority
})
// Send to specific tier holders
const tierResult = await sendBroadcast(context, {
collectionAddress: publicKey('COLLECTION_ADDRESS'),
message: 'VIP announcement for Gold members',
sender: programAuthority.publicKey,
signer: updateAuthority
})Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| collectionAddress | PublicKey | ✅ | The collection address of your loyalty program |
| message | string | ✅ | The broadcast message content |
| sender | PublicKey | ✅ | Public key of the broadcast sender |
| signer | Signer | ✅ | Program authority required for sending broadcasts |
Broadcast Use Cases
📢 Program Updates
Notify all members about program changes, new features, or policy updates
"We're updating our rewards structure effective next month"🎉 Promotions
Announce special offers, sales, or limited-time promotions
"Double points weekend - earn 2x rewards on all purchases!"🏆 Achievements
Celebrate community milestones and program achievements
"We've reached 10,000 members! Thank you for your loyalty"⚠️ Important Notices
Share critical information about system maintenance or changes
"System maintenance scheduled for this weekend"Best Practices
✅ Do
- Keep messages concise and clear
- Include relevant dates and deadlines
- Use engaging, friendly language
- Test on devnet first
❌ Don't
- Send too many broadcasts (spam)
- Use overly technical language
- Forget to include call-to-actions
- Send without proofreading