add DGB wallet

This commit is contained in:
QuickMythril
2022-04-21 11:30:05 -04:00
parent d494827d71
commit 326185d226
7 changed files with 379 additions and 2 deletions

View File

@@ -101,3 +101,17 @@ export const sendDoge = (requestObject) => {
body: JSON.stringify(requestObject)
})
}
// Send DGB
export const sendDgb = (requestObject) => {
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node];
return request(`/crosschain/dgb/send?apiKey=${myNode.apiKey}`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify(requestObject)
})
}