📢Managing Audiences
Programs can set audiences for different tier payouts or allowlists. Each audience can have entries that are:
Type
Description
Static
Entered manually or via API
Dynamic
Users that matched a specific condition automatically
Getting user audiences
Use getUserAudiences to check which audiences a user belongs to:
import { Fuul } from '@fuul/sdk';
await Fuul.getUserAudiences({
user_identifier: '0x1234...',
user_identifier_type: 'evm_address',
});Updating audiences via API
Audience write operations (add, remove, batch, badges) are HTTP-only. The SDK exposes getUserAudiences only; all other audience management is done via the Fuul API:
Action
API endpoint
Reference
Example: add users to an audience
Last updated