BTB
/

SSV Network

Stakingwebsite
Distributed validator network for Ethereum staking. An agent can register operators, create validator clusters from SSV operators, and deposit, withdraw or exit validators. Clusters are paid in SSV tokens.

What you can do

register-operatorRegister a new SSV operatorapprove nothing; call SSVNetwork.registerOperator(publicKey, fee, setPrivate). Fee is per block in SSV base units and must meet the network minimum.
create-validator-clusterRegister a validator to a cluster of operatorsapprove SSV token to SSVNetwork for the amount; call SSVNetwork.registerValidator(publicKey, operatorIds, sharesData, amount, cluster). sharesData comes from the SSV key split tool. Use the cluster snapshot from the SSV subgraph or scanner (zero values for a new cluster).
top-up-clusterAdd SSV to an existing clusterapprove SSV token to SSVNetwork; call SSVNetwork.deposit(owner, operatorIds, amount, cluster). amount divisible by 1e7.
withdraw-from-clusterTake SSV back out of a clustercall SSVNetwork.withdraw(operatorIds, amount, cluster). amount divisible by 1e7 and not above the liquidation collateral.
exit-validatorStart a voluntary exitcall SSVNetwork.exitValidator(publicKey, operatorIds). The operators sign the exit; the validator leaves on the Beacon chain.
set-fee-recipientSet where execution-layer tips gocall SSVNetwork.setFeeRecipientAddress(address).
read-cluster-stateGet the cluster snapshot needed for write callsuse the SSV subgraph or SSV scanner (see docs). The snapshot is the Cluster struct (validatorCount, networkFeeIndex, index, active, balance) that every cluster write needs.
Operators and clusters are funded in SSV. If a cluster balance runs out it can be liquidated, and the validators stop.
Cluster writes need the latest cluster snapshot. A stale snapshot makes the call revert or change the wrong cluster.
Validator withdrawals on the Beacon chain are separate from SSV. Exiting a validator does not return the ETH stake by itself.
SSV amounts must be divisible by 1e7 base units for deposit, withdraw and register calls.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
SSVNetworkstaking on ethereum0xDD9BC35aE942eF0cFa76930954a156B3fF30a4E1
write registerOperator(bytes,uint256,bool)
Register a new operator: (public key bytes, fee, setPrivate). Fee is per block in SSV base units and must be at or above the network minimum. The call reverts if the fee is below the minimum. Set setPrivate to true to start the operator as private.
write removeOperator(uint64)
Permanently remove an operator (caller must be the operator owner). Argument: operatorId.
write withdrawAllOperatorEarnings(uint64)
Withdraw all SSV earnings of an operator to its owner. Argument: operatorId.
write declareOperatorFee(uint64,uint256)
Declare a new fee for an operator: (operatorId, fee). The fee becomes active only after the declare waiting period and must be executed in its time window.
write reduceOperatorFee(uint64,uint256)
Lower an operator fee immediately: (operatorId, fee). Fee increases are not allowed through this function; use declareOperatorFee for raises.
write setFeeRecipientAddress(address)
Set the address that receives execution-layer tips for all validators of the caller. Argument: fee recipient address.
write registerValidator(bytes,uint64[],bytes,uint256,(uint32,uint64,uint64,bool,uint256))
Register one validator to a cluster: (publicKey, operatorIds, sharesData, amount, cluster). Approve the SSV token to SSVNetwork first. amount is SSV base units, divisible by 1e7, and can be 0. Cluster is the latest snapshot from the SSV subgraph or scanner (use zero values for a new cluster). Max 13 operators per cluster.
write bulkRegisterValidator(bytes[],uint64[],bytes[],uint256,(uint32,uint64,uint64,bool,uint256))
Register several validators to the same cluster in one call: (publicKeys, operatorIds, sharesData, amount, cluster). Same approval and amount rules as registerValidator.
write removeValidator(bytes,uint64[],(uint32,uint64,uint64,bool,uint256))
Remove one validator from the network: (publicKey, operatorIds, cluster). Cluster must be the latest snapshot.
write exitValidator(bytes,uint64[])
Ask the operators to sign a voluntary exit for one validator: (publicKey, operatorIds). This does not return funds by itself; the validator exits on the Beacon chain.
write deposit(address,uint64[],uint256,(uint32,uint64,uint64,bool,uint256))
Add SSV to a cluster: (owner, operatorIds, amount, cluster). Approve the SSV token to SSVNetwork for amount first. amount is SSV base units, divisible by 1e7. Cluster is the latest snapshot from the SSV subgraph or scanner.
write withdraw(uint64[],uint256,(uint32,uint64,uint64,bool,uint256))
Withdraw SSV from a cluster: (operatorIds, amount, cluster). amount is divisible by 1e7 and must not exceed the cluster's liquidation collateral. Reverts otherwise. To withdraw the full balance and stop the cluster, use liquidate() on the owner's own cluster instead.
write reactivate(uint64[],uint256,(uint32,uint64,uint64,bool,uint256))
Reactivate a liquidated cluster by depositing SSV: (operatorIds, amount, cluster). Approve the SSV token first. amount is divisible by 1e7.
write liquidate(address,uint64[],(uint32,uint64,uint64,bool,uint256))
Liquidate a cluster that is eligible for liquidation: (owner, operatorIds, cluster). Sends the cluster balance to the caller. Eligibility is set by the network liquidation threshold period.
SSVNetworkViewsother on ethereum0xafE830B6Ee262ba11cce5F32fDCd760FFE6a66e4
SSV Tokentoken on ethereum0x9D65fF81a3c488d585bBfb0Bfe3c7707c7917f54
read balanceOf(address)
SSV balance of an address.
write approve(address,uint256)
Approve SSVNetwork (or another spender) to pull SSV. Required before deposit, registerValidator, reactivate.
write transfer(address,uint256)
Transfer SSV tokens.
cSSV Tokentoken on ethereum0xe018D31F120A637828F46aFD6c64EC099d960546