tokensMintedWithSignatureEvent

Creates an event object for the TokensMintedWithSignature event.

Example

import { getContractEvents } from "thirdweb";
import { tokensMintedWithSignatureEvent } from "thirdweb/extensions/erc1155";
const events = await getContractEvents({
contract,
events: [
tokensMintedWithSignatureEvent({
signer: ...,
mintedTo: ...,
tokenIdMinted: ...,
})
],
});
function tokensMintedWithSignatureEvent(
filters: Partial<{
mintedTo: string;
signer: string;
tokenIdMinted: bigint;
}>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "signer";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "mintedTo";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "tokenIdMinted";
readonly type: "uint256";
},
{
readonly components: readonly [
{ readonly name: "to"; readonly type: "address" },
{
readonly name: "royaltyRecipient";
readonly type: "address";
},
{ readonly name: "royaltyBps"; readonly type: "uint256" },
{
readonly name: "primarySaleRecipient";
readonly type: "address";
},
{ readonly name: "tokenId"; readonly type: "uint256" },
{ readonly name: "uri"; readonly type: "string" },
{ readonly name: "quantity"; readonly type: "uint256" },
{ readonly name: "pricePerToken"; readonly type: "uint256" },
{ readonly name: "currency"; readonly type: "address" },
{
readonly name: "validityStartTimestamp";
readonly type: "uint128";
},
{
readonly name: "validityEndTimestamp";
readonly type: "uint128";
},
{ readonly name: "uid"; readonly type: "bytes32" },
];
readonly name: "mintRequest";
readonly type: "tuple";
},
];
readonly name: "TokensMintedWithSignature";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{
mintedTo: string;
signer: string;
tokenIdMinted: bigint;
}>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "signer";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "mintedTo";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "tokenIdMinted";
readonly type: "uint256";
},
{
readonly components: readonly [
{ readonly name: "to"; readonly type: "address" },
{
readonly name: "royaltyRecipient";
readonly type: "address";
},
{ readonly name: "royaltyBps"; readonly type: "uint256" },
{
readonly name: "primarySaleRecipient";
readonly type: "address";
},
{ readonly name: "tokenId"; readonly type: "uint256" },
{ readonly name: "uri"; readonly type: "string" },
{ readonly name: "quantity"; readonly type: "uint256" },
{ readonly name: "pricePerToken"; readonly type: "uint256" },
{ readonly name: "currency"; readonly type: "address" },
{
readonly name: "validityStartTimestamp";
readonly type: "uint128";
},
{
readonly name: "validityEndTimestamp";
readonly type: "uint128";
},
{ readonly name: "uid"; readonly type: "bytes32" },
];
readonly name: "mintRequest";
readonly type: "tuple";
},
];
readonly name: "TokensMintedWithSignature";
readonly type: "event";
}>;

The prepared event object.