> For the complete documentation index, see [llms.txt](https://docs.leather.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.leather.io/developers/stacks-methods/stacks-libraries.md).

# Stacks libraries

Call Leather methods from a Stacks app with @stacks/connect

[`@stacks/connect`](https://github.com/stx-labs/connect/tree/main/packages/connect) calls Leather through the same RPC methods these pages document. Its `request` function sends a method name and its parameters to the wallet the user selects. Checked against `@stacks/connect` 8.2.7.

```typescript
import { request } from "@stacks/connect";

const response = await request("stx_getAddresses");
```

The library's [README](https://github.com/stx-labs/connect/tree/main/packages/connect#readme) lists the methods it types and shows how to connect a wallet.

## Legacy libraries

Leather rejects the legacy `StacksProvider` methods, such as `authenticationRequest` and `transactionRequest`. The error asks the app to use `LeatherProvider.request()` instead. Libraries built on those methods do not work with Leather. micro-stacks 1.2.1, its last release, is one of them.

<figure><img src="https://2085786563-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41U87FfDFo2dIKYr0ZNX%2Fuploads%2FSYnkHC3paqNT9vscR2T8%2FSCR-20240419-quht.png?alt=media&amp;token=4c33ac78-0a67-43e4-9885-83fc6363a9bf" alt=""><figcaption></figcaption></figure>
