@tangle-js/anchors
Version:
Anchoring messages to the Tangle. Powered by IOTA Streams
20 lines (19 loc) • 723 B
TypeScript
import { StreamsClient } from "@tangle.js/streams-wasm/node/streams.js";
export declare class ClientHelper {
static readonly DEFAULT_NODE = "https://chrysalis-nodes.iota.org";
static readonly DEFAULT_PERMANODE = "https://chrysalis-chronicle.iota.org/api/mainnet/";
/**
* Returns a client for Streams using the node and permanode
*
* @param node Node endpoint URL
* @param permanode endpoint URL
* @returns StreamsClient
*/
static getClient(node: string, permanode?: string): Promise<StreamsClient>;
/**
* Returns a client for the mainnet setting node and permanode
*
* @returns StreamsClient
*/
static getMainnetClient(): Promise<StreamsClient>;
}