TypeScript SDK

TOKENS.getRewards

Calls the "getRewards" function on the contract.

Example

import { getRewards } from "thirdweb/extensions/tokens";
const result = await getRewards({
contract,
asset: ...,
});
function getRewards(options: BaseTransactionOptions<GetRewardsParams>) : Promise<readonly Array<{ developer: string; developerBps: number; positionId: bigint; positionManager: string; recipient: string; rewardLocker: string }>>

Parameters

The options for the getRewards function.

Type

let options: BaseTransactionOptions<GetRewardsParams>;

Returns

let returnType: Promise<readonly Array<{ developer: string; developerBps: number; positionId: bigint; positionManager: string; recipient: string; rewardLocker: string }>>

The parsed result of the function call.