Tutorial

How to Create Your First Onchain Basket

Alvara Protocol · · 6 min read
How to Create Your First Onchain ETF

We have watched hundreds of baskets get created on the platform. Some attract holders within days. Others sit empty. The difference usually comes down to a few decisions made before the deploy button gets clicked.

This is how we would build a simple thematic basket today, walking through the same interface you will use, and calling out the decisions that actually matter. If you have built a traditional ETF before (or tried to), the contrast will be obvious. If you haven't, that is sort of the point.

One thing to know upfront: on Ethereum, every BSKT must currently include an allocation to the ALVA token as part of its composition. This requirement is expected to change with the Base deployment, but for now, factor it into your allocation planning.

What Is an Onchain Basket?

An onchain basket is a basket token (BSKT) built on the ERC-7621 standard that bundles multiple ERC-20 tokens into a basket where investors receive ERC-20 LP shares representing their proportional stake. ERC-7621 extends ERC-721 (the NFT standard), meaning each BSKT is a unique, non-fungible token that holds a portfolio of ERC-20 assets inside it. It works similarly to a traditional ETF: investors get diversified exposure through one asset, and the underlying holdings are transparent and verifiable.

The key differences are what make it interesting. BSKTs are fully decentralized, meaning no custodian holds the underlying assets on your behalf. They are permissionless, so anyone can create one or invest in one. And as ERC-7621 tokens, they are composable with the rest of DeFi, so your basket token can be traded on DEXs, used as collateral, or integrated into other protocols.

Before You Start

You need three things:

Step 1: Choose Your Assets

Start by deciding which tokens belong in your basket. The best approach is to pick a theme and stick with it. Some examples:

When choosing assets, consider diversification (don't put everything in one sub-sector), liquidity (tokens with thin trading volume will make your basket harder to mint and redeem), and correlation (assets that all move in lockstep don't provide much diversification benefit).

For this walkthrough, we will build a "DeFi Core" basket containing AAVE, UNI, MKR, and LINK. This is a real allocation we have seen work well on the platform, not a hypothetical.

Step 2: Set Your Weights

Next, decide how much of each token should make up your basket. Weights are expressed as percentages and must add up to 100%. There are a few common approaches:

For our DeFi Core basket, we will go with a conviction-weighted approach:

Notice we are not equally weighting everything. The reasoning behind each weight matters more than the exact number. Holders want to see that you have a thesis, not just a coin flip. You can always rebalance later if your view changes.

Step 3: Configure Your Basket

Now give your basket an identity. You'll need to set a few things:

On management fees: keep them competitive. High fees discourage holders and make your basket less attractive compared to alternatives. Look at what similar products charge and price accordingly. A fee between 1-3% annually is a reasonable starting range for most strategies.

Step 4: Deploy

With everything configured, it's time to go live.

  1. Go to bskt.alvara.xyz and connect your wallet.
  2. Navigate to the basket creation interface.
  3. Enter your assets, weights, name, ticker, description, and fee.
  4. Review everything carefully. Once deployed, fees and core parameters are permanent and cannot be changed.
  5. Submit the transaction and confirm it in your wallet.
  6. Pay the gas fee and wait for the transaction to be confirmed onchain.

Your basket token is now live on Ethereum. It has its own contract address, and anyone can view the composition, mint new units, or redeem existing ones. It appears on the Explore page and the manager leaderboard, where potential investors can discover it. You will also receive a management NFT that grants you rebalancing control over the basket. Note that a creation fee (a percentage of the initial deposit defined by the protocol) applies when deploying.

Step 5: Share and Grow

A basket with no holders does not earn fees. Once your BSKT is deployed, you need to get it in front of people.

Build credibility through performance and consistent management. Your track record is fully onchain and verifiable, so every rebalance, every fee structure, and every allocation decision is visible to potential holders. Over time, a well-managed basket with transparent history speaks louder than any badge.

Your basket automatically appears on the manager leaderboard, ranked by performance, holder count, and total value locked. The leaderboard is the primary discovery mechanism on the platform, so how your basket performs in the first few weeks matters.

When someone mints your basket, they deposit ETH and the protocol automatically converts it into the basket's constituent tokens according to your allocation weights. They receive LP tokens in return. All deposits include automatic MEV protection. The more holders you attract, the more management fees accrue to you.

Some practical tips for growing your basket:

Managing Your Basket Over Time

Creating the basket is just the beginning. Good portfolio management is an ongoing process.

You can rebalance your basket's weights as market conditions change. If one asset has outperformed and now represents a larger share of the basket than intended, adjust the weights to bring it back in line. If your thesis on a particular token changes, update the allocation accordingly.

Management fees accrue automatically based on the total value held in your basket. You do not need to manually collect anything. The protocol handles fee accounting onchain.

Monitor your basket's performance regularly. Pay attention to how the underlying assets are doing individually and as a group. A well-managed basket that adapts to changing conditions will attract and retain more holders than one that gets deployed and forgotten.

Mistakes First-Time Creators Make

We have seen enough baskets launched on the platform to spot the patterns. Here is what trips people up:

Ready to build? Browse existing baskets on the leaderboard to see what works, then create your own.

See What Others Are Building

Browse the leaderboard, check the risk ratings, then create your own.

Mint BSKT →