Closed kantai closed 4 years ago
The core-node now returns structured errors, see https://github.com/blockstack/stacks-blockchain/pull/1510/files#diff-98a3f84802c72cc9abbd3ecc208654e0R23
This lib should now be updated with improved broadcast results, see https://github.com/blockstack/stacks-transactions-js/pull/43#discussion_r409627824
Additionally this documentation was updated today: https://github.com/blockstack/stacks-blockchain/blob/feat/more-detail-tx-endpoint/docs/rpc-endpoints.md
It looks like tx.broadcast always succeeds:
https://github.com/blockstack/stacks-transactions-js/blob/master/src/transaction.ts#L158
Which leads to consumers like cli-blockstack to display TXIDs, when there was an error returned by the mempool, e.g.:
From branch feature/stacks-2.0-tx on cli-blockstack: