> For the complete documentation index, see [llms.txt](https://resources.vaults.sentora.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.vaults.sentora.com/vault-integration-guide/overview.md). Agents can also search and read this documentation through its [MCP server](https://resources.vaults.sentora.com/~gitbook/mcp).

# Overview

Deposits and withdrawals for Sentora vaults.

This guide shows how to use the Sentora SDK to deposit, withdraw and check a user’s position in each vault family we support: **Morpho**, **Boring** and **Upshift**. All vaults are listed on [vaults.sentora.com](https://vaults.sentora.com/), with their APY, TVL and address.

Sentora vaults accept a token, such as USDC or PYUSD, and give the user a receipt token in return. The receipt token grows in value as the vault earns yield.

The SDK handles the vault-specific work for you. It reads balances, checks each action before the wallet opens, and builds the transactions to sign.

#### The Sentora SDK <a href="#the-sentora-sdk" id="the-sentora-sdk"></a>

The SDK has one package per vault family, plus two shared ones:

| Package                             | What it covers                                                                                                                    |
| ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `@sentora/vaults-morpho`            | Morpho vaults. Synchronous: a withdrawal pays out in the same transaction.                                                        |
| `@sentora/vaults-boring`            | Boring (Veda) vaults. Asynchronous: a withdrawal is a request that a solver fills later.                                          |
| `@sentora/vaults-upshift-financial` | Upshift vaults, like Sentora USD. Asynchronous: a withdrawal waits for the vault's timelock, or pays out at once for a small fee. |
| `@sentora/vaults-plan`              | The `Plan` type that all three families return.                                                                                   |
| `@sentora/yields-client`            | A client for Sentora's API: vaults, user balances and activity.                                                                   |

**How the family packages work**

Each family package does two things:

1. **Reads the vault.** Use `getPosition` to get the user’s position. Morpho and Upshift also provide `getVaultMeta`.
2. **Builds plans.** Use `planDeposit`, `planRedeem` and the other plan functions.

A **plan** lists:

* the transactions to send, in order
* its `blockers`, which are the reasons the action would fail

Plans are unsigned. All three families return the same `Plan` type, so a single `send` function in your app can send any of them, with any wallet.

**Your app adds three pieces:**

1. A wallet connection ([Connect a Wallet](https://resources.vaults.sentora.com/vault-integration-guide/connect-a-wallet.md)).
2. One vault module per vault you integrate, like `vaults/morpho.ts`. [Vault Modules](https://resources.vaults.sentora.com/vault-integration-guide/vault-modules.md) explains them, and each family's page has the code.
3. The `send` function that the vault modules share ([`send.ts`](https://resources.vaults.sentora.com/pages/WEqZpU3pKymSxDBTs555#send.ts)).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://resources.vaults.sentora.com/vault-integration-guide/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
