From af9fa42522ca7dc6d1a13679192150d3554881c6 Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Wed, 20 Nov 2024 18:01:19 +0530 Subject: [PATCH] changed the api base --- utils/api.ts | 4 ++-- utils/json-rpc.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/api.ts b/utils/api.ts index 6efa613..424b1a7 100644 --- a/utils/api.ts +++ b/utils/api.ts @@ -5,7 +5,7 @@ import axios from 'axios'; import { CREDENTIALKEYS } from './constants'; const API_BASE = 'https://backend.epns.io/apis/v1'; -const API_ANODE_BASE = 'https://anode2.push.org/' +const API_ANODE_BASE = 'https://aa1.dev.push.org/'; export const login = async ({ user, pass }) => { try { @@ -137,4 +137,4 @@ export const getHeathCheck = async () => { } catch (e) { console.log('Error occured in health-check', e); } -}; \ No newline at end of file +}; diff --git a/utils/json-rpc.ts b/utils/json-rpc.ts index 930de4b..cbb0227 100644 --- a/utils/json-rpc.ts +++ b/utils/json-rpc.ts @@ -1,6 +1,6 @@ import axios from 'axios'; -const API_BASE = 'https://anode2.push.org/rpc'; +const API_BASE = 'https://aa1.dev.push.org/rpc'; const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); @@ -9,7 +9,7 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => { jsonrpc: '2.0', method: `RpcService.${method}`, params: params, - id + id, }; try { @@ -22,4 +22,4 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => { } catch (error) { throw new Error('JSON-RPC Error: ' + error.message); } -}; \ No newline at end of file +};