Got it. Thanks for the clarification.
Thanks @benniledl and @psykro.
@psykra I mean the WordPress options available to the normal plugins.
In a normal plugin, I can let the user enter their API key by providing a form field in the plugin settings but for a block plugin for block directory how can I get a user defined API key.
Your block plugins should contain a block, and a minimum of other supporting code. It should not contain any UX outside of the editor, such as WordPress options or wp-admin menus. Server-side code should be kept to a minimum.
source: https://github.com/WordPress/wporg-plugin-guidelines/blob/block-guidelines/blocks.md