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:
GetAnnouncementsReturnType
An array of
Announce
event log data emitted from theERC5564Announcer
contract.
Parameters
ERC5564Address
-
Type:
HexString
The address of the
ERC5564Announcer
contract.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});
args
-
Type:
AnnouncementArgs
The arguments to filter the
Announce
event logs.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});
fromBlock
-
Type:
BlockType
The block number to start fetching logs from.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});
toBlock
-
Type:
BlockType
The block number to stop fetching logs at.
const announcements = await stealthClient.getAnnouncements({
ERC5564Address,
args,
fromBlock,
toBlock,
});