UNPKG

@tangle-js/anchors

Version:

Anchoring messages to the Tangle. Powered by IOTA Streams

23 lines (22 loc) 809 B
import { Address, Subscriber } from "@tangle.js/streams-wasm/node/streams.js"; export declare class ChannelHelper { /** * Converts an address representing as a two component string (channel addr: message Id) * into an Address object * * @param addressStr the address string * @returns the Address object */ static parseAddress(addressStr: string): Address; /** * Finds an anchorage message on the channel by going through the messages * * @param subs Subscriber * @param anchorageID The anchorage identifier * @returns whether it has been found and the link to the anchorage on the Channel */ static findAnchorage(subs: Subscriber, anchorageID: string): Promise<{ found: boolean; anchorageLink?: Address; }>; }