# spoByPoolId

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

Get SPO with metadata by pool ID.

```
spoByPoolId(

  poolIdHex: String!

): Spo
```

### Arguments[​](#arguments "Direct link to Arguments")

#### [`spoByPoolId.poolIdHex`](#pool-id-hex) ● [`String!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/string.md) non-null scalar[​](#pool-id-hex "Direct link to pool-id-hex")

### Type[​](#type "Direct link to Type")

#### [`Spo`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/spo.md) object[​](#spo- "Direct link to spo-")

SPO with optional metadata.
