Skip to main content

Claim Rewards as a Smart Contract

To claim rewards when the Earner is a smart contract, generate either:

note

To be eligible for a reward submission, an Operator must have been registered to the AVS for at least a portion of the reward duration. If rewards submitted to them, the rewards are refunded back to the AVS address. To claim rewards as an AVS, you must set a claimer for the AVS, which can be done using setClaimerFor on the ServiceManagerBase contract.

JSON Object

To generate the JSON object, use:

    ./bin/eigenlayer rewards claim \
--network mainnet \
--eth-rpc-url <mainnet-eth-rpc-url> \
--earner-address <earner-address> \
--recipient-address <address-to-send-rewards-to> \
--path-to-key-store /path/to/key/store-json \
--token-addresses <comma-separated-list-of-token-addresses> \
--output-type json

Calldata

To generate the calldata, use:

    ./bin/eigenlayer rewards claim \
--network mainnet \
--eth-rpc-url <mainnet-eth-rpc-url> \
--earner-address <earner-address> \
--recipient-address <address-to-send-rewards-to> \
--path-to-key-store /path/to/key/store-json \
--token-addresses <comma-separated-list-of-token-addresses> \
--output-type calldata