# getSectionsForBlock()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getSectionsForBlock()

> **getSectionsForBlock**(`blockName`): readonly [`SectionContract`](https://getpromptscript.dev/api-reference/core/src/interfaces/SectionContract/index.md)[]

Defined in: [core/src/section-registry.ts:253](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/section-registry.ts#L253)

## Parameters

### blockName

`string`

## Returns

readonly [`SectionContract`](https://getpromptscript.dev/api-reference/core/src/interfaces/SectionContract/index.md)[]