The purpose of this release is to introduce additional safety into the blockchain.transaction.broadcast
RPC call to validate if a transaction, which contains FT (ARC20) tokens, correctly balances input and output quantities. This safety check will give an error message informing the client that the broadcast would result in burned tokens.
An additional method is added blockchain.atomicals.validate
which does the same functionality validation checks asblockchain.transaction.broadcast
but which does not broadcast the transaction if the validation is successful. This new validate method can be used to check a raw transaction to see if it passes the safety checks.
Note: This does not check mempool, as mempool tracking of Atomicals is still not implemented. In other words this method still carries risk if the UTXOs are unconfirmed. This deficiency will be addressed in a future PR to track Atomicals in the mempool.
PRs Included:
- Add safety for broadcast when detected invalid FT transfer rules PR