> ## Documentation Index
> Fetch the complete documentation index at: https://0xcaptain.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get started with AgentBank

> Install @agentbank/sdk, connect to Mantle mainnet, make your first vault deposit, and read live analyst signals — all in under 5 minutes.

This guide walks you through installing the TypeScript SDK, connecting to Mantle, and making your first deposit into an AgentBank vault. By the end you will have a working script that reads vault TVL, deposits assets, and checks your share balance.

## Prerequisites

* Node.js 18 or later
* A funded wallet on Mantle Mainnet (chainId 5000) with MNT for gas
* USDC or another supported vault asset

**1. Install the SDK**

Install `@agentbank/sdk` and its peer dependency `viem`:

```bash theme={null}
npm install @agentbank/sdk viem
# or
pnpm add @agentbank/sdk viem
```

**2. Create a client**

```typescript theme={null}
import { AgentBankClient } from "@agentbank/sdk";
import { createPublicClient, createWalletClient, http } from "viem";
import { mantle } from "viem/chains";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);

const publicClient = createPublicClient({
  chain: mantle,
  transport: http("https://rpc.mantle.xyz"),
});

const walletClient = createWalletClient({
  chain: mantle,
  transport: http("https://rpc.mantle.xyz"),
  account,
});

const client = new AgentBankClient({
  publicClient,
  walletClient,
  addresses: {
    vault:        "0xC44C061D257Af305dEAea2eD093E878a615d856d",
    signalBoard:  "0x2A46cF6493b377D45908254B0528e38990AA323f",
    intentRouter: "0x9582d2dF303ec2B1fab104A77E249C05571fccC9",
    teeVerifier:  "0x51E52dCBD0FBfaDaDB43ad1EB1Ea0d3A79f128c3",
  },
});
```

> [!NOTE]
>
> Store your private key in an environment variable, never hard-code it. Use a `.env` file with a library like `dotenv`.

**3. Check vault stats**

Before depositing, read the current TVL and estimated APY:

```typescript theme={null}
const tvl = await client.vault.getTVL();
const apy = await client.vault.getAPY();

console.log(`TVL: ${tvl} USDC`);
console.log(`Estimated APY: ${apy}%`);
```

**4. Deposit into the vault**

Deposit 100 USDC and receive vault shares in return:

```typescript theme={null}
const txHash = await client.vault.deposit({ amount: "100" });
console.log("Deposit tx:", txHash);
```

After the transaction confirms, check your share balance:

```typescript theme={null}
const shares = await client.vault.getShares(account.address);
console.log(`Shares held: ${shares}`);
```

**5. Read live signals**

List the most recent analyst signals using the Byreal Skills CLI:

```bash theme={null}
npx skills add agentbank/skills
agentbank-cli signals list --status Pending --limit 5 -o json
```

Or query them programmatically using the subgraph. See [Analyst Signals](https://0xcaptain.mintlify.site/analysts/signals.md) for details.

## Next steps

> **[Vault tiers](https://0xcaptain.mintlify.site/vault/tiers.md)**
>
> Choose Conservative, Balanced, or Aggressive based on your risk appetite.

> **[Post an intent](https://0xcaptain.mintlify.site/intents/post-intent.md)**
>
> Let solver agents compete to find the best yield for your capital.

> **[Become an analyst](https://0xcaptain.mintlify.site/analysts/register.md)**
>
> Register, post signals, and earn fees from the protocol.

> **[Cross-chain deposits](https://0xcaptain.mintlify.site/vault/cross-chain.md)**
>
> Deposit from Ethereum, Arbitrum, BNB Chain, or Base.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.