ASSETS.getReward

Calls the "getReward" function on the contract.

Example

import { getReward } from "thirdweb/extensions/assets";
const result = await getReward({
contract,
asset: ...,
});
function getReward(
options: BaseTransactionOptions<GetRewardParams>,
): Promise<{
positionManager: string;
recipient: string;
referrer: string;
referrerBps: number;
tokenId: bigint;
}>;

Parameters

The options for the getReward function.

Type

let options: BaseTransactionOptions<GetRewardParams>;

Returns

let returnType: Promise<{
positionManager: string;
recipient: string;
referrer: string;
referrerBps: number;
tokenId: bigint;
}>;

The parsed result of the function call.