Uploads metadata for a batch of NFTs.
import { BatchMetadataERC721 } from "thirdweb/modules"; const transaction = BatchMetadataERC721.uploadMetadata({ contract, metadatas: [{ name: "My NFT", description: "This is my NFT" }],}); await sendTransaction({ transaction, account,});
function uploadMetadata( options: BaseTransactionOptions<UploadMetadataParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the transaction.
let options: BaseTransactionOptions<UploadMetadataParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
The transaction to upload the metadata.