getStoragePrice

Retrieves the current cost to register a Farcaster fid in wei.

Example

import { getStoragePrice } from "thirdweb/extensions/farcaster";
const price = await getStoragePrice({
client,
});
function getStoragePrice(
): Promise<bigint>;

Parameters

An object containing a client to use to fetch the price and the amount of extra storage to include in the returned price.

Type

let options: {
chain?: Chain;
client: ThirdwebClient;
disableCache?: boolean;
units?: bigint | number | string;
};

Returns

let returnType: Promise<bigint>;

A promise that resolves to the current cost of a Farcaster fid in USD.