Skip to content

Commit

Permalink
add api.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneearth committed Feb 19, 2018
1 parent c6b6224 commit fd7e85a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/utilities/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ class Server {
res.send("0.00162556");
});

server.get('/estimatesmartfee', (req, res) => {
res.setHeader('Content-Type', 'application/json');

res.send("success");
});

server.get('/estimatesmartpriority', (req, res) => {
res.setHeader('Content-Type', 'application/json');

res.send("success");
});

server.get('/estimatepriority', (req, res) => {
res.setHeader('Content-Type', 'application/json');

Expand Down Expand Up @@ -380,6 +392,12 @@ class Server {
res.send(0);
});

server.get('/getexcessiveblock', (req, res) => {
res.setHeader('Content-Type', 'application/json');

res.send('success');
});

server.get('/getinfo', (req, res) => {
res.setHeader('Content-Type', 'application/json');

Expand Down Expand Up @@ -1220,6 +1238,12 @@ class Server {
res.send(JSON.stringify({ result: null }));
});

server.get('/setexcessiveblock', (req, res) => {
res.setHeader('Content-Type', 'application/json');

res.send('success');
});

server.get('/setnetworkactive', (req, res) => {
res.setHeader('Content-Type', 'application/json');

Expand Down

0 comments on commit fd7e85a

Please sign in to comment.