TxTrace
TxTrace is a logging service in the Go Gateway that records the time each transaction is first received by the gateway and the source from which the gateway received it. To enable TxTrace you need to start the gateway using the txtrace startup argument
The TxTrace log files are located in the logs directory. To navigate to the logs directory cd to the directory that holds your other bloxroute artifacts.
The most recent file is named txtrace-gateway-[external port of gateway].log.
Older TxTrace log files are named txtrace-gateway-[external port of gateway]-[end timestamp].log.
Each TxTrace entry is logged in the following format:
time="[Time Tx Received]" level=trace msg="[Tx Hash] - [Blockchain or BDN] [Source IP]"
​
Startup Example
Docker Argument
docker run --name bxgateway-go -d \
-v <LOG_FILE_PATH>:/app/bloxroute/logs \
-v <SSL_CERT_PATH>:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
--blockchain-network <Mainnet, BSC-Mainnet, or Polygon-Mainnet> \
--ws --port 1801 \
--txtrace \
--enodes enode://<BLOCKCHAIN_NODE_PUBLIC_KEY>@<NODE_IP>:<NODE_PORT>
Options
Gateway Parameter
Description
Value
txtrace
Enables TxTrace
[Disabled by default]
​
txtrace-max-file-size
Sets max size (megabytes) of individual TxTrace log files
integer [Default: 100]
txtrace-max-files
Sets max number of TxTrace log files stored
integer [Default: 3]
Copy link