Auto-compounding yield vaults on BNB Chain via Beefy Finance — browse 100+ yield strategies, deposit into vaults, track APY, and manage vault positions. Maximizes DeFi yields through automated compounding.
Auto-compounding yield vaults on BNB Chain via Beefy Finance — the multi-chain yield optimizer with 100+ strategies on BSC.
Beefy Finance is a decentralized yield optimizer that allows users to:
Beefy vaults automatically harvest farm rewards and compound them back into the deposited position, saving gas fees and maximizing returns through the power of compounding.
| Variable | Required | Description |
|---|---|---|
| BSC_WALLET_ADDRESS | Yes (for tx) | Your BSC wallet address |
| BSC_PRIVATE_KEY | Yes (for tx) | Private key for signing transactions |
| BSC_RPC_URL | No | Custom BSC RPC endpoint (default: bsc-dataseed1.binance.org) |
vaults [filter] — List BNB Chain VaultsList all active Beefy vaults on BNB Chain. Optionally filter by token name or platform.
# List all BSC vaults (top 50 by TVL)
node scripts/beefy.mjs vaults
# Filter vaults containing "USDT"
node scripts/beefy.mjs vaults USDT
# Filter vaults containing "CAKE"
node scripts/beefy.mjs vaults CAKE
# Filter vaults for "BNB"
node scripts/beefy.mjs vaults BNB
Output: Array of vault objects with id, name, token, platform, APY, TVL, status.
vault <vaultId> — Detailed Vault InfoGet comprehensive details about a specific vault including APY breakdown, strategy address, TVL, and underlying tokens.
node scripts/beefy.mjs vault cake-cakev2-pool
node scripts/beefy.mjs vault pancake-bnb-usdt
Output: Detailed vault object with APY breakdown (base, reward, trading fees), strategy details, TVL, token addresses.
deposit <vaultAddress> <amount> — Deposit into VaultDeposit tokens into a Beefy vault. You receive mooTokens (vault shares) representing your deposit.
# Deposit 100 USDT into a vault
node scripts/beefy.mjs deposit 0x1234...abcd 100
# Deposit 1 BNB into a vault
node scripts/beefy.mjs deposit 0x1234...abcd 1
Note: You must first approve the vault contract to spend your tokens (use standard ERC-20 approve). The vault address is the Beefy vault contract, not the underlying token.
withdraw <vaultAddress> <amount> — Withdraw from VaultWithdraw your position from a Beefy vault. Converts your mooTokens back to the underlying asset.
# Withdraw specific amount of vault shares
node scripts/beefy.mjs withdraw 0x1234...abcd 50
# Withdraw entire position
node scripts/beefy.mjs withdraw 0x1234...abcd max
Output: Transaction hash, amount of underlying tokens received.
balance <vaultAddress> [address] — Check Vault BalanceCheck your mooToken balance in a specific vault and the equivalent underlying asset value.
# Check your balance in a vault
node scripts/beefy.mjs balance 0x1234...abcd
# Check any address
node scripts/beefy.mjs balance 0x1234...abcd 0x5678...efgh
Output: mooToken balance, underlying asset value based on pricePerFullShare.
tvl — Total TVL Across BNB ChainGet the total value locked across all Beefy vaults on BNB Chain.
node scripts/beefy.mjs tvl
Output: Total BSC TVL in USD, number of active vaults, top vaults by TVL.
apy <vaultId> — Detailed APY BreakdownGet a detailed APY breakdown for a specific vault, including base APY, reward APY, and trading fee APY.
node scripts/beefy.mjs apy cake-cakev2-pool
node scripts/beefy.mjs apy pancake-bnb-usdt
Output: APY breakdown object with totalApy, vaultApr, tradingApr, compoundingsPerYear, details on yield sources.
The pricePerFullShare value continuously increases as compounding occurs, meaning each mooToken is worth more underlying tokens over time.
vaults USDT — Browse USDT-related vaultsvault pancake-usdt-busd — Get details on a specific vaultapy pancake-usdt-busd — Check detailed APY breakdowndeposit 0xVaultAddress 1000 — Deposit 1000 tokensbalance 0xVaultAddress — Confirm depositbalance 0xVaultAddress — Check current valueapy vaultId — Check if APY has changedtvl — See overall Beefy BSC healthbalance 0xVaultAddress — Check how much you havewithdraw 0xVaultAddress max — Withdraw everythingbalance 0xVaultAddress — Confirm zero balancevaults BNB — List all BNB-related vaultsapy vault-a — Check APY for option Aapy vault-b — Check APY for option B| Endpoint | Description |
|---|---|
| GET /vaults | All vaults across all chains |
| GET /apy | APY data for all vaults |
| GET /tvl | TVL data for all vaults |
| GET /lps | LP token prices |
Base URL: https://api.beefy.finance
Category:stocks-finance