getAnnouncements
Get announcement event logs from the ERC5564Announcer contract.
Usage
import { stealthClient } from './client';
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock
});
/*
[
{
caller: "0x...",
ephemeralPubKey: "0x...",
metadata: "0x...",
schemeId: 1n,
stealthAddress: "0x...",
more log data...
}
]
*/Return Value
-
Type:
GetAnnouncementsReturnTypeAn array of
Announceevent log data emitted from theERC5564Announcercontract.
Parameters
ERC5564Address
-
Type:
HexStringThe address of the
ERC5564Announcercontract.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});args
-
Type:
AnnouncementArgsThe arguments to filter the
Announceevent logs.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});fromBlock
-
Type:
BlockTypeThe block number to start fetching logs from.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});toBlock
-
Type:
BlockTypeThe block number to stop fetching logs at.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});