SDK
Glossary
Types

Types

Glossary of types in the Stealth Address SDK.

Announce

The event emitted from the announce function call on the ERC-5564 contract.

This is an informational Solidity event definition and isn't an actual type provided in the SDK.

event Announcement(
  uint256 indexed schemeId,
  address indexed stealthAddress,
  address indexed caller,
  bytes ephemeralPubKey,
  bytes metadata
);

AnnouncementArgs

The arguments used to announce a stealth address.

See Type (opens in a new tab)

AnnouncementLog

The log data associated with the Announce event.

See Type (opens in a new tab)

BlockType

A block number as bigint or block tag.

bigint | "latest" | "earliest" | "pending" | "safe" | "finalized";

clientParams

When passing in the clientParams object to an action, the following properties are required:

  • chainId: The chain ID of the network.
  • rpcUrl: The RPC URL of the network.

EthAddress

Represents an Ethereum address.

GetAnnouncementsForUserReturnType

The return type of the getAnnouncementsForUser action, which is an array of announcements relevant to the specified user.

See Type (opens in a new tab)

GetAnnouncementsReturnType

The return type of the getAnnouncements action, which is an array of Announce event log data emitted from the ERC5564Announcer contract.

See Type (opens in a new tab)

HexString

Signifies any length hexadecimal string, synonymous with 0x${string}

PrepareAnnounceArgs

The arguments used to prepare an announcement.

See Type (opens in a new tab)

PreparePayload

The prepared payload to send a transaction. This is the return type of the prepare-prefixed actions.

See Type (opens in a new tab)

RegisterKeysOnBehalfArgs

The arguments used to register a stealth meta-address (keys) on behalf of a user.

See Type (opens in a new tab)

VALID_CHAIN_IDS

Valid chain IDs for the SDK.

A valid chain id has deployed ERC5564Announcer and ERC6538Registry contracts.

VALID_SCHEME_ID

export enum VALID_SCHEME_ID {
  SCHEME_ID_1 = 1,
}

Signifies a valid scheme id; the only valid scheme id is currently 1.

WatchAnnouncementsForUserPollingOptions

The polling options used to watch for announcements relevant to the user.

See Type (opens in a new tab)