unitPrice

Calls the "unitPrice" function on the contract.

Example

import { unitPrice } from "thirdweb/extensions/farcaster";
const result = await unitPrice({
contract,
});
function unitPrice(options: BaseTransactionOptions): Promise<bigint>;

Parameters

The options for the unitPrice function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.