Added Pirate Chain to wallet (unfinished)

- Address derivation isn't working yet as it appears to be different for Zcash derived coins
- Core APIs will be different for ARRR, and these aren't in place in the UI yet

IMPORTANT: Do not use this branch for anything other than development, or coins could be lost.
This commit is contained in:
CalDescent
2022-05-06 12:03:47 +01:00
parent ffa19210e0
commit 9b4a763bca
5 changed files with 374 additions and 7 deletions

View File

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