uploadMetadata

Uploads metadata for a batch of NFTs.

Example

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(

Parameters

The options for the transaction.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

The transaction to upload the metadata.