Parameters
- params: RewardKitProfileParams
creatorAddress
claimantAddress
budgetAccount
targetContract
chainId
Returns UseQueryResult<
{
activeBoosts: {
id: string;
chainId: number;
incentives: {
type: IncentiveTypeString;
assetAddress?: `0x${string}`;
rewardAmount?: string;
rewardAmountFormatted?: string;
rewardPercentage?: number;
maxReward?: string;
rewardUsdValue?: number;
tokenSymbol?: string;
tokenImageUri?: string;
metadata?: | null
| {
id: string;
chainId: number;
address: `0x${string}`;
decimals: number;
name: string;
symbol: string;
imageUri: string;
};
}[];
actionTemplate: | null
| {
id: string;
actionType: string;
projectId: string;
projectImage?: string;
};
boostName?: null
| string;
tokenImageUri?: null | string;
nftImageUri?: null | string;
nftName?: null | string;
status?: "active" | "claimable" | "claimed";
txHash?: string;
blockTimestamp?: string;
}[];
claimedBoosts: {
id: string;
chainId: number;
incentives: {
type: IncentiveTypeString;
assetAddress?: `0x${string}`;
rewardAmount?: string;
rewardAmountFormatted?: string;
rewardPercentage?: number;
maxReward?: string;
rewardUsdValue?: number;
tokenSymbol?: string;
tokenImageUri?: string;
metadata?: | null
| {
id: string;
chainId: number;
address: `0x${string}`;
decimals: number;
name: string;
symbol: string;
imageUri: string;
};
}[];
actionTemplate: | null
| {
id: string;
actionType: string;
projectId: string;
projectImage?: string;
};
boostName?: null
| string;
tokenImageUri?: null | string;
nftImageUri?: null | string;
nftName?: null | string;
status?: "active" | "claimable" | "claimed";
txHash?: string;
blockTimestamp?: string;
}[];
claimableBoosts: {
id: string;
chainId: number;
incentives: {
type: IncentiveTypeString;
assetAddress?: `0x${string}`;
rewardAmount?: string;
rewardAmountFormatted?: string;
rewardPercentage?: number;
maxReward?: string;
rewardUsdValue?: number;
tokenSymbol?: string;
tokenImageUri?: string;
metadata?: | null
| {
id: string;
chainId: number;
address: `0x${string}`;
decimals: number;
name: string;
symbol: string;
imageUri: string;
};
}[];
actionTemplate: | null
| {
id: string;
actionType: string;
projectId: string;
projectImage?: string;
};
boostName?: null
| string;
tokenImageUri?: null | string;
nftImageUri?: null | string;
nftName?: null | string;
status?: "active" | "claimable" | "claimed";
txHash?: string;
blockTimestamp?: string;
}[];
totalClaimedAmountUsd: number;
totalClaimableAmountUsd: number;
},
Error,
>
Query result containing boost lists and USD totals
A React Query hook for fetching a user's profile on RewardKit, containing active, claimed, and claimable boosts along with total amounts in USD.
See
useQuery
fromreact-query