Skip to main content
The Zyfai Vault API provides methods for depositing, withdrawing, and managing shares in the Zyfai Vault on Base. The vault is a shared yield-generating pool where users deposit USDC and receive vault shares. The vault is redirecting the deposited assets to one globally shared safe subaccount for automated yield optimization. Full architecture documentation

API Organization

The Vault API methods are organized by operation type.

Deposits

Deposit assets into the vault.

Withdrawals

Request and claim withdrawals from the vault.

Shares

Check your vault share balance.

Common Patterns

Authentication Required

Vault methods require wallet connection via connectAccount():

Chain Support

The Vault is currently only available on Base (chain ID 8453).

Amount Formatting

Unlike Smart Wallet methods, vault deposit amounts are in human readable format:

Withdrawal Flow

Vault withdrawals are asynchronous and require two steps:

Type Safety

The SDK is fully typed with TypeScript. Import types as needed:

Response Format

All Vault methods return consistent response objects:

Support