Calls the "getRewards" function on the contract.
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 }>>
The options for the getRewards function.
let options: BaseTransactionOptions<GetRewardsParams>;
let returnType: Promise<readonly Array<{ developer: string; developerBps: number; positionId: bigint; positionManager: string; recipient: string; rewardLocker: string }>>
The parsed result of the function call.