diff --git a/react/src/actions/actions/addCoin.js b/react/src/actions/actions/addCoin.js index 02c8528..ab2e218 100644 --- a/react/src/actions/actions/addCoin.js +++ b/react/src/actions/actions/addCoin.js @@ -60,7 +60,7 @@ export function shepherdElectrumAuth(seed) { body: JSON.stringify({ seed, iguana: true, - }) + }), }) .catch((error) => { console.log(error); diff --git a/react/src/actions/actions/electrum.js b/react/src/actions/actions/electrum.js index 5a5fd22..548f5b1 100644 --- a/react/src/actions/actions/electrum.js +++ b/react/src/actions/actions/electrum.js @@ -66,11 +66,16 @@ export function shepherdElectrumCheckServerConnection(address, port) { export function shepherdElectrumKeys(seed) { return new Promise((resolve, reject) => { - fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/keys?seed=${seed}&active=true&iguana=true`, { - method: 'GET', + fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/keys`, { + method: 'POST', headers: { 'Content-Type': 'application/json', - } + }, + body: JSON.stringify({ + seed, + active: true, + iguana: true, + }), }) .catch((error) => { console.log(error);