Ideas for future development
readcash opened this issue · 1 comments
readcash commented
- Document all errors that server returns and parse them or work with BCHD team to get better errors?
- tx rejected: already have transaction 0905f65ae3d5adeef841882b86541908c25ef10c903e0ffdc142531
- tx rejected: transaction 47d61323f87312c2bfe4cffe5a9354c520452fe34f6ff64ce939d964176d78a2 has insufficient priority (2313.6190476190477 <= 5.76e+07)
- Decode transaction function similar to https://live.blockcypher.com/btc-testnet/decodetx/
2qx commented
Looking at the error messages in bchd, it seems like the error codes they return are limited by an agreed upon predetermined set, but the string messages could be clarified there.
Jason has a function for decoding transaction we can wrap:
https://github.com/bitauth/libauth/blob/3b891e237c5dbdc23731a4ceb852cb1be6a64a3e/src/lib/transaction/transaction-serialization.ts#L200