setSharedMetadata

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

Example

import { sendTransaction } from "thirdweb";
import { OpenEditionMetadataERC721 } from "thirdweb/modules";
const transaction = OpenEditionMetadataERC721.setSharedMetadata({
contract,
metadata: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setSharedMetadata(
| { asyncParams: () => Promise<SetSharedMetadataParams> }
>,

Parameters

The options for the "setSharedMetadata" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.