TypeScript SDK

TOKENS.position

Calls the "position" function on the contract.

Example

import { position } from "thirdweb/extensions/tokens";
const result = await position({
contract,
owner: ...,
asset: ...,
});
function position(
options: BaseTransactionOptions<PositionParams>,
): Promise<{
data: `0x${string}`;
developer: string;
developerBps: number;
positionId: bigint;
recipient: string;
}>;

Parameters

The options for the position function.

Type

let options: BaseTransactionOptions<PositionParams>;

Returns

let returnType: Promise<{
data: `0x${string}`;
developer: string;
developerBps: number;
positionId: bigint;
recipient: string;
}>;

The parsed result of the function call.