Skip to content

Commit

Permalink
Merge pull request #8 from push-protocol/f_push_scan
Browse files Browse the repository at this point in the history
changed the api base
  • Loading branch information
rohitmalhotra1420 authored Nov 20, 2024
2 parents 26a37db + af9fa42 commit afe1b97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -137,4 +137,4 @@ export const getHeathCheck = async () => {
} catch (e) {
console.log('Error occured in health-check', e);
}
};
};
6 changes: 3 additions & 3 deletions utils/json-rpc.ts
Original file line number Diff line number Diff line change
@@ -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));

Expand All @@ -9,7 +9,7 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => {
jsonrpc: '2.0',
method: `RpcService.${method}`,
params: params,
id
id,
};

try {
Expand All @@ -22,4 +22,4 @@ export const makeJsonRpcRequest = async (id, method, params = {}) => {
} catch (error) {
throw new Error('JSON-RPC Error: ' + error.message);
}
};
};

0 comments on commit afe1b97

Please sign in to comment.