rentStorage

Rent storage for the provided farcaster fid.

Example

import { rentStorage } from "thirdweb/extensions/farcaster";
import { sendTransaction } from "thirdweb";
const transaction = rentStorage({
client,
fid,
units,
});
await sendTransaction({ transaction, account });
function rentStorage(

Parameters

The options for calling the rentStorage function.

Type

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

Returns

let returnType: PreparedTransaction<
[],
AbiFunction,
>;

A prepared transaction object to rent the storage.