# StellarSdkRequiredError (https://dev.cosmospay.lat/docs/sdk/definitions/web/stellar-sdk-required-error/)

> Building a pay transaction (or submitting to Horizon) requires the Stellar SDK, which is an optional peer dependency.

Building a `pay` transaction (or submitting to Horizon) requires the Stellar SDK, which is an optional peer dependency. Thrown when it is neither installed nor injected.

## Constructor

### StellarSdkRequiredError

```ts
constructor(detail?: string)
```

**Parameters**

- `detail` _(optional)_: `string`

## Related

- [CosmosPayWebError](https://dev.cosmospay.lat/docs/sdk/definitions/web/cosmos-pay-web-error/)
