Phalcon has been updated to 2.0. Fly with Phalcon and dive into transactions!
Phalcon is a powerful transaction explorer designed for DeFi community. It provides comprehensive data on invocation flow, balance changes, and fund flows for transactions. It also supports transaction simulation.
Phalcon aims to help developers, security researchers, and traders intuitively understand transactions.
This user guide will introduce you to the various features and functions of Phalcon. For better illustration, we use this transaction on Ethereum as an example.
To search for a transaction, go to the Phalcon homepage and enter the transaction hash in the search box. Click on the result to view the transaction parsing details page.
Phalcon currently supports the analysis of transactions on Ethereum, Binance Smart Chain, Polygon, Cronos, and Avalanche C-Chain. More chains are on the way.
The transaction result page is divided into four main modules for a transaction.
The Basic Info
module displays the basic information of the transaction, including the execution status (Status
), the sender (Sender
), and the recipient (Receiver
).
The internal transaction count indicates the number of internal transactions, which can be used to determine the complexity of the transaction. The higher the value, the more complex the transaction.
The [Simulate This Tx
] button in the top right corner allows you to quickly simulate the results of the current transaction at different Block Number [BlockNum
] and position [position in the block
] (The transaction simulation be explained in this Section).
The Fund Flow module illustrates the flow of tokens involved in the transaction as a directed graph. Different nodes represent different account addresses, and a different background color distinguishes nodes representing the sender or recipient of a transaction.
The directed edge and the information on the edge show the transfer direction, the token, and the number of tokens transferred.
The module also provides the ability to zoom in and out of the flow chart in the top right corner. The fund flow graph can be downloaded as SVG or PNG file.
The Balance Changes
module shows the accounts that have a change in the token balance after the transaction is executed.
Invocation Flow displays the sequence of function calls in a transaction as a tree structure.
Each node represents a function call or event trigger and includes information such as call stack depth, call type, and call parameters. A search box and a drop-down selection box for call type and expansion are provided at the top of the module to assist users in interpreting the transaction execution flow.
Users can search for and filter desired call flow information by entering an address, function signature, or function selector in the search box. The following figure shows the result of filtering through the WETH address.
The call stack depth can be selected by the user using the drop-down selection box. The following figure shows the call flow display after selecting a call stack depth of 2.
During the analysis, the code of the verified contract can be shown in the code view. Our code view supports different layouts with the trace, including the support of a separate code view.
Besides, users can quickly switch between different modules at the top of the code view on the right. The history of source code viewing within that transaction is provided so that other source codes can be viewed easily.
Phalcon supports customizations to facilitate the analysis.
During the analysis, the address, function, and event can be highlighted with a custom color.
The address, function, and event can be set with custom labels.
For the calldata
of a contract, a custom function signature can be provided to decode the calldata
.
To simulate a transaction, click the [Simulation
] button and fill in the required information in the Transaction Simulator panel. Then click the [Simulate
] button to view the simulation results on the details page. You can also change the website theme by clicking the icon next to the [Simulation
] button.
The [Simulate This Tx
] button in the top right corner of the transaction detail page allows a user to quickly simulate the results of the current transaction at different Block Number [BlockNum
] and position [position in the block
].