add

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

Example

import { add } from "thirdweb/extensions/thirdweb";
const transaction = add({
contract,
deployer: ...,
deployment: ...,
chainId: ...,
metadataUri: ...,
overrides: {
...
}
});
// Send the transaction
...
function add(
AddParams | { asyncParams: () => Promise<AddParams> }
>,

Parameters

The options for the "add" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.