Skip to main content

Claim Rewards as a Smart Contract

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

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