@vechain/sdk-network
Version:
This module serves as the standard interface connecting decentralized applications (dApps) and users to the VeChainThor blockchain
14 lines (11 loc) • 442 B
text/typescript
import { thorest } from '../thorest';
/**
* Returns the URL for subscribing to new transactions through a websocket connection.
*
* @param baseURL - The URL of the node to request the subscription from.
* @returns The websocket subscription URL.
*/
const getNewTransactionsSubscriptionUrl = (baseURL: string): string => {
return thorest.subscriptions.get.NEW_TRANSACTIONS(baseURL);
};
export { getNewTransactionsSubscriptionUrl };