Skip to main content
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:
2

Create a client

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:
4

Deposit into the vault

Deposit 100 USDC and receive vault shares in return:
After the transaction confirms, check your share balance:
5

Read live signals

List the most recent analyst signals using the Byreal Skills CLI:
Or query them programmatically using the subgraph. See Analyst Signals for details.

Next steps

Vault tiers

Choose Conservative, Balanced, or Aggressive based on your risk appetite.

Post an intent

Let solver agents compete to find the best yield for your capital.

Become an analyst

Register, post signals, and earn fees from the protocol.

Cross-chain deposits

Deposit from Ethereum, Arbitrum, BNB Chain, or Base.