Tracking the Protocol

A reference for portfolio trackers and other supplementary tools to track information in the protocol, such as staking and locked tokens.

Tracking Staked Balance

The total tokens staked by a wallet can be called from a single read function of the protocol EVM contract on Ethereum Mainnet. It's contract address is as below and the source code can be found here.

Ethereum Mainnet Hodler Contract Address
0x0d9a1ca7bc756ae009672db626cde3c9bef583ef

Note that the staked tokens do not include tokens that have been unstaked and are under the cooldown period before they can be withdrawn.

The value can be fetched by calling the getStake function which returns a uint256 value. Note that $ANYONE has 18 decimals.

Function to Query Total Staked
getStake(address _address); 
ABI Reference for Total Staked function in Hodler
[
	{
			"inputs": [
				{
					"internalType": "address",
					"name": "_address",
					"type": "address"
				}
			],
			"name": "getStake",
			"outputs": [
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				}
			],
			"stateMutability": "view",
			"type": "function"
		}
]

See an example code snippet for fetching this values with ethers.js:

Last Updated: 29-Dec-2025

Last updated