batchRent

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

Example

import { sendTransaction } from "thirdweb";
import { batchRent } from "thirdweb/extensions/farcaster";
const transaction = batchRent({
contract,
fids: ...,
units: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function batchRent(
BatchRentParams | { asyncParams: () => Promise<BatchRentParams> }
>,

Parameters

The options for the "batchRent" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.