Skip to main content
Hook to set the NFT of the current user in a stream. You should be validating if the NFT belongs to the user before setting it.

Imports

Definition

Source: useSetNft

Parameters

streamId

  • Type: string
The id of the stream to set the NFT of.

config

  • Type: ActionConfig<Myself["setNft"]>
  • Optional
Configuration options for the action.

Return Type

The setNft action and its loading state.