diff --git a/package.json b/package.json index 0f1f866..9a6f8e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ainize-team/ainize-js", - "version": "1.1.3", + "version": "1.2.0", "main": "dist/ainize.js", "types": "dist/ainize.d.ts", "scripts": { diff --git a/src/constants.ts b/src/constants.ts index bc9f189..91bc1d8 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,11 +1,11 @@ import { appBillingConfig } from "./types/type" -export const getBlockChainAPIEndpoint = (chainId: number) =>{ +export const getBlockChainAPIEndpoint = (chainId: number) => { return chainId === 1 ? "https://mainnet-api.ainetwork.ai" : "https://testnet-api.ainetwork.ai" } -export const getBlockChainEventEndpoint = (chainId: number) =>{ - return chainId === 1 ? "https://mainnet-event.ainetwork.ai" : "https://testnet-event.ainetwork.ai" +export const getBlockChainEventEndpoint = (chainId: number) => { + return chainId === 1 ? "wss://mainnet-event.ainetwork.ai" : "wss://testnet-event.ainetwork.ai" } export const Path = {