rent

Prepares a transaction to call the "rent" function on the contract.

Example

import { rent } from "thirdweb/extensions/farcaster";
const transaction = rent({
contract,
fid: ...,
units: ...,
overrides: {
...
}
});
// Send the transaction
...
function rent(
RentParams | { asyncParams: () => Promise<RentParams> }
>,

Parameters

The options for the "rent" function.

Type

RentParams | { asyncParams: () => Promise<RentParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.