rent

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

Example

import { sendTransaction } from "thirdweb";
import { rent } from "thirdweb/extensions/farcaster";
const transaction = rent({
contract,
fid: ...,
units: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.