Skip to main content

index/interfaces/UpdateTokenConfigOptions.md

Options for updating token configuration (PATCH /v1/tokens/:tokenName/config)

Supports all fields on the backend's UpdateTokenConfigDto:

  • Chat/comments/streaming toggles
  • Stream countdown (nextLiveStreamAt) and language
  • Social link URLs (null clears one: the backend skips its pattern check for null)

At least one field must be provided. The bonding curve's fees are not configurable after launch.

Example​

// Disable chat for a token
await sdk.updateTokenConfig('anime', { chatEnabled: false });

// Clear the website link
await sdk.updateTokenConfig('anime', { websiteUrl: null });

Since​

7.1.0

Properties​

PropertyTypeDescription
chatEnabled?booleanWhether chat messages are enabled for this token
commentsEnabled?booleanWhether comments are enabled for this token
facebookUrl?string | nullFacebook URL (null to clear)
instagramUrl?string | nullInstagram URL (null to clear)
nextLiveStreamAt?string | nullISO 8601 timestamp for next scheduled live stream (countdown UX). Set to null to clear.
redditUrl?string | nullReddit URL (null to clear)
streamingEnabled?booleanWhether streaming is enabled for this token
streamLanguage?stringISO 639-1 language code for the stream (e.g. 'en', 'es', 'ja')
telegramUrl?string | nullTelegram URL (null to clear)
tiktokUrl?string | nullTikTok URL (null to clear)
twitterUrl?string | nullTwitter/X URL (null to clear)
websiteUrl?string | nullWebsite URL (null to clear)