You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior
The Qtum Web Wallet has an API call URL pointing to a .../qrc20/${contractAddress} [1], I should be able to find this URL call in this package file, qtuminfo-api/app/router.js [2]
Steps to Reproduce
Read links 1 and 2, deploy qtuminfo-api(etc) and find that the call is missing.
Context (Environment)
I'm trying to reproduce the qtum explorer and api calls.
Detailed Description
The GET /qrc/:contract end-point is not represented in the github code. The GET /contract/:contract was the original call that was replaced but the code never made it to this github project.
The text was updated successfully, but these errors were encountered:
I was able to produce a workaround. The problem that this causes is when running the web wallet on the info api rather than the insight api, a user is not able to add a custom token to send. I was able to produce a workaround by sending that getTokenInfo command to the insight api in qtumInfo.js by adding
const _getOld = async url => {
return (await axios.get('https://explorer.qtum.org/insight-api' + url)).data
}
and modifying
async getTokenInfo(contractAddress) {
return (await _getOld(/erc20/${contractAddress}))
},
Expected Behavior
The Qtum Web Wallet has an API call URL pointing to a .../qrc20/${contractAddress} [1], I should be able to find this URL call in this package file, qtuminfo-api/app/router.js [2]
[1] - https://github.com/qtumproject/qtum-web-wallet/blob/9a5f2405ae6a30ab2c493074abd3b2a99b028a68/src/libs/nodes/qtumInfo.js#L31
[2] - https://github.com/qtumproject/qtuminfo-api/blob/master/app/router.js
Current Behavior
The current explorer has access to the missing API call code. [3] But the code can not be found in the github.
[3] - https://qtum.info/api/qrc20/5a4b7889cad562d6c099bf877c8f5e3d66d579f8
Steps to Reproduce
Read links 1 and 2, deploy qtuminfo-api(etc) and find that the call is missing.
Context (Environment)
I'm trying to reproduce the qtum explorer and api calls.
Detailed Description
The GET /qrc/:contract end-point is not represented in the github code. The GET /contract/:contract was the original call that was replaced but the code never made it to this github project.
The text was updated successfully, but these errors were encountered: