Open dtokens opened 4 years ago
This issue needs further investigation:
The reason the traceback error message is displayed is because the TXID is not an SLP transaction.
Here is the endpoint which re-creates this issue: https://rest.bitcoin.com/v2/slp/txDetails/d70af8576a059b24d831450ea9e4f6c192089212fc7469e3a51d2a771362e5d8
Here on the block explorer you can see that this is not an SLP transaction: https://explorer.bitcoin.com/bch/tx/d70af8576a059b24d831450ea9e4f6c192089212fc7469e3a51d2a771362e5d8
The scope of this issue is update the /v2/slp/txDetails/
endpoint to return an error message like 'not an slp transaction' in this scenario. Any PR fixing this issue should include unit and integration tests for this use case.
Call /slp/txDetails/d70af8576a059b24d831450ea9e4f6c192089212fc7469e3a51d2a771362e5d8 returns traceback data: