Props for the RewardRoot component that manages reward state.

The unique identifier string for the reward boost (format: "chainId:contractAddress:boostId")

Optional wallet address of the reward claimant

React children or render function that receives reward data

// With standard children
<Reward.Root id="1:0x123:1" address="0xabc">
<Reward.Amount />
</Reward.Root>

// With render prop
<RewardRoot id="1:0x123:1">
{(reward) => <div>{reward.data?.boost.incentives[0]?.rewardAmount}</div>}
</RewardRoot>
interface RewardRootProps {
    id: string;
    children: RewardChildren;
    address?: `0x${string}`;
}

Properties

Properties

id: string
children: RewardChildren
address?: `0x${string}`