SDK
Actions
getAnnouncements

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

Parameters

ERC5564Address

  • Type: HexString

    The address of the ERC5564Announcer contract.

const announcements = await stealthClient.getAnnouncements({
  ERC5564Address,
  args,
  fromBlock,
  toBlock,
});

args

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,
});