🎲Any

In the Typescript SDK Any is a utility toolset that allows fetching any kind of messages present on the Aleph network. You can use it in three different ways to help you build applications:

  • GetMessage: Designed to find a particular message on the network. You must know its unique hash to be able to retrieve it.

  • GetMessages: Allows you to search for messages with some query parameters like message type, range of date, channels, and more.

  • Typeguards: This tool provides you with a way to manipulate more easily messages fetched from GetMessages by retrieving their type to allow auto-completion.

The main utility of this helper is to retrieve messages that can't be fetched yet from their own definition is this SDK like Program or Forget. It can also help to get additional information on a message by getting all its context (sender, date, chain) along with its data, for Store messages for example.

Last updated