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 +};