Browse Source

spv get keys get -> post

v0.25
pbca26 7 years ago
parent
commit
4178dc88be
  1. 2
      react/src/actions/actions/addCoin.js
  2. 11
      react/src/actions/actions/electrum.js

2
react/src/actions/actions/addCoin.js

@ -60,7 +60,7 @@ export function shepherdElectrumAuth(seed) {
body: JSON.stringify({ body: JSON.stringify({
seed, seed,
iguana: true, iguana: true,
}) }),
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error);

11
react/src/actions/actions/electrum.js

@ -66,11 +66,16 @@ export function shepherdElectrumCheckServerConnection(address, port) {
export function shepherdElectrumKeys(seed) { export function shepherdElectrumKeys(seed) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/keys?seed=${seed}&active=true&iguana=true`, { fetch(`http://127.0.0.1:${Config.agamaPort}/shepherd/electrum/keys`, {
method: 'GET', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
} },
body: JSON.stringify({
seed,
active: true,
iguana: true,
}),
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error);

Loading…
Cancel
Save