Hop
Search…
⌃K

Staking

Stake command

Add liquidity for bonding transfers.
Example: Stake on 100 USDC on Arbitrum
Docker
Node
docker run -it -v ~/.hop-node:/root hopprotocol/hop-node stake --config /root/config.json --chain=arbitrum --token=USDC --amount=100
hop-node stake --chain=arbitrum --token=USDC --amount=100

Unstake command

Remove liquidity any unused liquidity
Example: Unstake on 100 USDC on Arbitrum
Docker
Node
docker run -it -v ~/.hop-node:/root hopprotocol/hop-node unstake --config /root/config.json --chain=arbitrum --token=USDC --amount=100
hop-node unstake --chain=arbitrum --token=USDC --amount=100

Stake status command

Show staked amounts as credit and debit balances
Example: Show USDC amount staked on Arbitrum
Docker
Node
docker run -it -v ~/.hop-node:/root hopprotocol/hop-node stake-status --config /root/config.json --chain=arbitrum --token=USDC
hop-node stake-status --chain=arbitrum --token=USDC

Stake options

Argument
Example
Description
chain
arbitrum
Chain to stake hTokens on. On Layer-1, canonical tokens are staked.
Options are: ethereum, arbitrum, optimism, polygon, gnosis
token
USDC
Asset to stake for.
Options are: USDC, USDT, DAI, MATIC, ETH
amount
15000
Amount to stake, in human readable format. Example: --amount=100 is exactly 100 USDC

Notes

Staking requires hTokens on Layer-2. If you don't have hTokens but have the canonical token, you can still stake. The bonder will send canonical tokens over the Hop bridge on Layer-1 to mint hTokens at the destination Layer-2 chain which will then be used for staking.