#cashtokens
#app development
Welcome to our latest update on TX::Watch, our real-time tool that visualizes Bitcoin and Bitcoin Cash transactions. Each transaction is depicted as a colored circle, varying by properties such as value or type, including specialized CashToken transactions.
Our newest feature integrates CashTokens, part of the Bitcoin Cash network, allowing users to create both fungible and non-fungible tokens directly on the blockchain. This addition enhances TX::Watch by broadening the range of visualizable transactions, deepening user insights into blockchain dynamics.
CashTokens facilitate the creation of digital assets on the Bitcoin Cash blockchain, supporting a variety of applications from digital currencies to unique assets like NFTs. They are fully miner-verified and rely on the efficient UTXO network for scaling, making them ideal for complex transactions and smart contracts within the Bitcoin Cash ecosystem.
For more technical details on CashTokens, visit the GitHub repository:
To visualize CashTokens on TX::Watch, first we have to detect them. From reading the CashToken specification, we learned that there are two key components to identifying CashToken transactions:
PREFIX_TOKEN (0xef)
Our system processes transactions in real-time via a WebSocket, so as they come in, we'll add a check to classify them.
For this we used the JavaScript library @bitauth/libauth
for its utility functions which will be helpful when decoding the transactions script. There doesn't appear to be utility to decode the script hex into it's OpCodes directly, so we'll have to write our own. Below is the script we wrote which identifies OP_CODES
within a transaction script and gives them to us in an array:
When analyzing a CashToken transaction script, the output might look like this:
To detect a CashToken transaction from the decoded script:
This allows us to reliably detect CashToken transactions. Future updates will focus on classifying different token types and integrating visual indicators such as specific icons or animations to represent various tokens in TX::Watch. We welcome all feedback, suggestions and improvements.
Stay tuned for more updates on TX::Watch and other exciting developments in the Bitcoin Cash ecosystem. If you have feature suggestions, questions, or would like to support our work, feel free to reach out.
Tools
Contact
Buy Hodl Sell © 2019-2024
v5.0.0