hashgraph / hashgraph/hedera-sdk-reference
Add stats for transaction failures
- Dominant language
- HTML
- Stars
- 7
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
### Problem
There are times when transactions fail with INVALID_NODE_ACCOUNT_ID, TRANSACTION_EXPIRED, or other errors where transactions do not succeed. In order to debug these transaction failures the SDK needs to provide some stats.
### Solution
Log the transactions that were submitted in the last 30 minutes.
Stored locally and default is not enabled.
This should include:
- Transaction ID
- Node the transaction was submitted to from transaction receipt
- Network response (either the network error or success response)
- The network is was submitted to (mainnet, testnet, previewnet)
- Transaction body (json format TBD)
Tasks
- [ ] Design the APIs
- [ ] Approval from SDK API review team
- [ ] Implement the APIs
- [ ] Test the APIs when transactions fail
- [ ] Validate the API works as intended
- [ ] Release the API
### Alternatives
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.