Use case · Staking
Launch a staking app.Stake ETH or your own token, with reward math anyone can check.
Stake ETH
- APR
- ~3.2%
- You receive
- 1.5 nuETH
- Staked
- 12.4 ETH
- Rewards
- +0.38 ETH
- StakedSigned by Alice1.5 ETH1.5 nuETH minted
- Epoch 52 postedSigned by the rewards key25.8 ETHto 3 214 stakers
- Unstake requestedSigned by Bob2 ETHin the withdrawal queue
The build
What a staking app needs. Your team builds it from BaaS SDK, for ETH or your own token, with no keeper or indexer of your own to run.
Authentication
Holders connect in seconds
The wallet they already use, or Face ID for newcomers. Either way, they sign every stake themselves.
Nautil
Stake ETH, earn every week
Smart contract
The rules of the pool
Who may stake, deposit to validators, post each week’s rewards, claim or unstake, written once in Solidity and deployed on Ethereum.
NautilStakingWho can do it
- Stake ETH, mint nuETH 1:1Anyone
- Deposit to and exit validatorsThe operator; exits pay back to the pool
- Post each week’s rewards and rootThe rewards key, under an APR cap
- Veto them before claims openThe multisig, 3 of 5
- Claim, unstake, withdrawThe holder
- Move a holder’s stakeNo one
See NautilStaking.sol
// no proxy: these rules can't be upgraded contract NautilStaking { mapping(uint => bytes32) public epochRoot; // stake ETH, get nuETH 1:1, signed by the holder function stake() external payable { … } // pooled ETH goes only to the deposit contract, checked // against a fresh deposit root, with this pool as the // validators' withdrawal address, so every exit pays back // to it; the pool can trigger exits too (EIP-7002) function deposit(bytes calldata pubkey, bytes calldata sig) external onlyOperator { … } function exit(bytes calldata pubkey) external onlyOperator { … } // the week's rewards, reported under an APR cap, and the // root of every staker's share; for 24 hours the multisig // can veto them, and the rewards key reposts, on-chain function postEpoch(uint epoch, bytes32 root, uint rewards) external onlyRewardsKey { … } // the multisig vetoes epochs and rotates both keys; it // never touches a stake function setKeys(address rewardsKey, address operator) external onlyMultisig { … } // epochs not yet claimed, in one call, each against its // own root, paid from the reported rewards; once claims // open, an epoch stays payable, whatever happens next function claim(uint[] calldata epochs, uint[] calldata amounts, bytes32[][] calldata proofs) external { … } // burn nuETH and queue; withdraw when it's your turn, 1:1. // a slashing loss is made up from the next epochs, so // everyone staked meanwhile bears it; until it is, exits // are paid pro rata function requestUnstake(uint amount) external { … } function withdraw(uint request) external { … } }
CLI and SDK
Deployed in one command
Deploy the contract to Ethereum with one command, a token-staking pool to any other EVM chain you enable, and call it from your app in one line.
$ baas deploy --key deployer \ --chain 1 → live on Ethereum
app.ts
// Alice stakes 1.5 ETH // and gets 1.5 nuETH await staking .function('stake') .sendTransaction({ value: SmartUnits('1.5'), });
Ethereum
Every epoch on Ethereum
Stakes, roots and claims, on-chain where anyone can check them on Etherscan. Once claims open, an epoch stays payable. Your app reads each holder’s history through the SDK.
EthereumMainnet
- Block 26 431 208Epoch 52 root12s
- Block 26 431 188Claim · Alice4m
- Block 26 431 173Stake · Alice, 1.5 ETH7m
Alice’s rewards, from her claims and the epoch files+0.38 ETH
Automations
Epochs closed on schedule
Every Monday the week’s rewards are split, pinned to IPFS and posted on Ethereum, and each staker is told, with no keeper of your own to host.
- WhenEpoch 52 endsnowMondays, 00:00 UTC
- ThenSplit the week’s rewards1.8s25.8 ETH after fees, by time-weighted nuETH balance
- Pin the epoch file to IPFS0.6sinputs, shares, proofs and the split code
- Post the root on Ethereum12sclaims open after the 24-hour veto window
- Tell each staker their share0.9sone push per staker
Run 52Done in 15s
Good to know
The questions people ask first.
- What does it cost?
- Free to start: 90 compute hours and 0.5 GB a month, no credit card. Gas on Ethereum is paid by whoever signs: holders for their stakes and claims, your operator and rewards keys for deposits, exits and roots. Then from €99 a month plus the hours it runs; pushes to every staker come with Scale, at €399.
- Can holders stake our own token?
- Yes. The contract is yours: your ERC-20 or LP token, on Ethereum, Base or any EVM chain you enable, with your lock tiers, boosts and cooldown. Put the emission schedule in a vesting contract: the same weekly run releases one epoch, splits it by time-weighted, boosted stake and posts the root.
- Do you run the validators?
- No. Your node operators or your staking provider run them. BaaS runs the app around them: sign-in, epochs, holder history and alerts.
- Is the contract audited?
- By the auditors you choose. The contract is yours: build it on audited pieces such as OpenZeppelin’s libraries, then have the pool audited. BaaS deploys it with your Vault key, but doesn’t write or audit it.
- Who holds the keys?
- Holders keep theirs: their own wallet, or a passkey on their device. Your rewards and operator keys sit in your project’s Vault, in Google Cloud KMS for production, and can only call what your contract grants them.
- Can holders check the math?
- Yes. Each weekly run pins the epoch’s inputs, shares and split code to IPFS, and its root sits on Ethereum: anyone can rerun the epoch and get the same root.
- What if BaaS goes down?
- Stakes, claims and funded withdrawals live in your contract on Ethereum and keep working from any client, with proofs from IPFS. New epochs and exits wait until your multisig rotates the keys to another signer.
- Will it scale?
- Yes. Each epoch is one root on Ethereum and a claim takes one proof per epoch, a few hashes longer at 300 000 stakers than at 3 214, and one call claims every epoch not yet claimed. The split runs off-chain in the weekly automation, and the Scale plan sends one push per staker in a batch.
Three steps
Your first app starts free. Get started in three steps. No credit card needed.
1Create a project
Sign-in, automations and Ethereum, ready to use.
New projectFree planProject name
my-app
Face ID sign-inAutomationsEthereum and EVM chains2Connect MCP
Use Claude Code, Codex or build it yourself.
Claude CodeCodexConnectedBaaS MCP
my-app.mcp.baas.sh
Your agent can
Read the BaaS docs
See your project
Set up automations
3Build your app
Code with the SDK, then deploy from the CLI.
baas deploy4smy-app
LiveDeployed from the CLI
Built with @baas.sh/sdk
Runs onEthereum
Signed with Your Vault key
- 1
Create a project
Sign-in, automations and Ethereum, ready to use.
- 2
Connect MCP
Use Claude Code, Codex or build it yourself.
- 3
Build your app
Code with the SDK, then deploy from the CLI.
Free plan, no credit card.