Prepares a transaction to call the "setSharedMetadata" function on the contract.
import { sendTransaction } from "thirdweb";import { OpenEditionMetadataERC721 } from "thirdweb/modules"; const transaction = OpenEditionMetadataERC721.setSharedMetadata({ contract, metadata: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function setSharedMetadata( options: BaseTransactionOptions< | SetSharedMetadataParams | { asyncParams: () => Promise<SetSharedMetadataParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "setSharedMetadata" function.
let options: BaseTransactionOptions< | SetSharedMetadataParams | { asyncParams: () => Promise<SetSharedMetadataParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.