Skip to main content

Native Stake

This guide will walk you through the process of staking your own tokens.

📋 Prerequisites​

Before you begin, ensure that you have completed the following:

ℹī¸ Why: Ensuring all prerequisites are met guarantees that your environment is correctly configured and that your operator is recognized within the Kalypso network, which is essential for staking tokens and receiving proof requests.

đŸĒ™ Staking Tokens​

Follow these steps to stake your own tokens as an operator:

1. Create .env File​

Begin by creating a .env file in the root directory of your project. This file will store the necessary environment variables required for staking tokens.

touch .env

ℹī¸ Why: The .env file holds sensitive information and configuration settings needed for the staking process. Keeping this information in a separate file enhances security and manageability.

2. Configure Environment Variables​

Open the .env file in your preferred text editor and add the following contents:

warning

You must have STAKING_TOKENS on the Arbitrum One network.

PRIVATE_KEY=<<operator_private_key>>
RPC_URL=<<l2_rpc_url>>
STAKING_AMOUNT=<<amount_of_tokens_to_stake>>
OPERATOR_ADDRESS=<<operator_staking_address>>

⚠ī¸ Ensure All Variables Are Declared: Please ensure that you have properly configured the following variables in your .env file:

  • PRIVATE_KEY: Your operator's private key used to sign transactions. Keep this key secure and do not share it.
  • RPC_URL: The RPC URL of the L2 chain.
  • STAKING_AMOUNT: The amount of tokens you wish to stake.
  • OPERATOR_ADDRESS: The address where tokens will be staked.
warning
env variableNotes/Info
RPC_URLMainnet: Arbitrum One Rpc URL
Betanet/Stagenet: Arbitrum Sepolia Rpc URL
STAKING_AMOUNT1000000000000000000 refers to 1 unit of staking token, since current staking token has 18 decimals.
To check the mimumum stake required per job your can hit Read Stake Data on kalypso cli (or)

run ./start.sh read-stake in current repo

ℹī¸ Why: Proper configuration of environment variables is crucial for securely interacting with the staking process. These variables ensure that your stake request is authenticated and routed correctly.

3. Request Native Stake​

With the .env file configured, execute the following command to request a native stake:

./start.sh native-stake
note

You can do the same native staking explorer as well​

You will need to invoke approve an then stake

ℹī¸ Why: Running this command initiates the staking process, sending your operator's credentials to the Kalypso network. This step is essential to secure your position and enable proof generation within the ecosystem.

Once the operation is complete, you will start receiving proof requests. The prover terminal will display a status similar to the image below:

Prover Terminal

🎁 Rewards​

After successfully completing proof requests, you can claim the associated rewards. Follow these steps to claim your rewards:

1. Create .env File​

Start by creating a .env file in the root directory of your project. This file will store the necessary environment variables required for claiming rewards.

touch .env

2. Configure Environment Variables​

Open the .env file in your preferred text editor and add the following contents:

PRIVATE_KEY=<<operator_private_key>>
RPC_URL=<<l2_rpc_url>>
REWARD_ADDRESS=<<operator_reward_address>>

⚠ī¸ Ensure All Variables Are Declared: Please ensure that you have properly configured the following variables in your .env file:

  • PRIVATE_KEY: Your operator's private key used to sign transactions.
  • RPC_URL: The RPC URL of the L2 network.
  • REWARD_ADDRESS: The address where the rewards will be transferred from the contract.
warning
env variableNotes/Info
RPC_URLMainnet: Arbitrum One Rpc URL
Betanet/Stagenet: Arbitrum Sepolia Rpc URL

NOTE: you can use any PRIVATE_KEY to flush the reward accrued against REWARD_ADDRESS.

3. Request Claim Reward​

With the .env file configured, execute the following command to claim your rewards:

./start.sh claim-rewards

Running this command initiates the reward claiming process, transferring your earned rewards.

📈 Next Steps​

Check whether your operator has received stake using read-stake query. Ensure that you have Available Native Stake little more than the Requirement (Native)

With your tokens staked and rewards claimed, you are now fully integrated as a Hardware Operator within the Kalypso ecosystem. To continue maximizing your participation:

  • Monitor Performance: Regularly check your prover's performance to ensure optimal operation.
  • Engage with the Community: Join our Telegram channel to stay updated and seek assistance.

Need Help?

If you encounter any issues or have questions, feel free to reach out to our Telegram channel for assistance.


Happy Staking!