Skip to content

Verifying and measuring

Confirm that the destination transaction came from the relayer key, and read the row it left in bridge_results.csv.

You will learn / You need

You will learn: the log lines that show a delivery, what to check in the explorer, and which CSV columns static mode fills. You need: a running static relayer and at least one source event, from Setting it up and sending events.

Handler log

Read the handler log as in Deployment. The stack name comes from the deploy mode (./deploy.sh defaults to bridge), not from EVENT_HANDLER_MODE, so a static relayer deployed with the default mode is in the bridge stack:

docker service logs -f stealth-name-service-backend_bridge_event_handler
Line Means
event_handler keystore loaded The signer is in the keystore.
gas pool ready Coins were read for the signer; the line shows how many.
event handler worker ready The worker is up; the line shows signer, network and target.
listening on http://0.0.0.0:5000/api/handle_event The handler accepts events.
batch confirmed A destination transaction succeeded. The line carries its digest.
batch partially or wholly unsuccessful The transaction was submitted and reverted. It still has a digest.
batch failed before submission No transaction was sent; the stage field says why.
queue full The handler could not queue an event. The listener retries it.

In static mode you will not see bridge mode ready; that line belongs to bridge mode. A "batch" is always one event here.

Explorer

Open the explorer for EVENT_HANDLER_NETWORK and search for the digest from batch confirmed. Check that:

  • The status is success.
  • The sender is the relayer address, EVENT_HANDLER_SIGNER. In bridge mode it would be the BridgeAA.
  • The transaction holds one move call to EVENT_HANDLER_TARGET.

bridge_results.csv

The handler writes data/bridge_results.csv, which is events_data/bridge_results.csv on the host, and deletes it at start. Column definitions are in CSV schemas. In static mode:

The table describes a row for a submitted transaction (on_chain_revert rows included, with success false).

Columns Static mode
request_number, agent_number, http_latency_seconds, response_code, digest, status, success, network_type Filled. response_code is 200.
tx_count 1.
Gas columns (computation_cost ... net_fees) Filled from the transaction's effects.
blockchain_processing_time, off_chain_time, pre_submission_time, network_latency, transaction_size_bytes, backend_send_time_ms, client_receive_time_ms, checkpoint_height, queue_residency_ms Filled.
source_event_tx_digest, source_event_seq, source_event_timestamp_ms, detection_lag_ms, total_bridge_time_seconds Filled when the event carries a timestamp.
request_id Filled only if the event's JSON has a request_id, as CrossChainRequest does. Empty for other events.
failure_stage Empty on success.
client_blockchain_time Always empty.
ack_tx_digest, ack_off_chain_time, ack_blockchain_processing_time, ack_client_receive_time_ms, total_3phase_time_seconds, ack_signer Empty: static mode has no acknowledgement.

The header still lists the acknowledgement columns, so the file has the same shape as a bridge run.

A failed event still gets a row. When no transaction was submitted (build_call, no_gas, execute_retry_exhausted), response_code is 500, tx_count is 0, success is false, status holds the error message, and digest, the gas columns and the timing columns are empty. The source-event columns and request_id stay filled. failure_stage is one of build_call, no_gas, execute_retry_exhausted or on_chain_revert (the last has a digest and response_code 200); see failure_stage. A bad EVENT_HANDLER_TARGET shows up as build_call.

total_bridge_time_seconds is the number to compare across runs: source event to destination confirmation. detection_lag_ms and queue_residency_ms split out the part before the transaction is built.

Check it worked

  • The handler log shows batch confirmed for each event you sent.
  • The explorer shows the transaction with the relayer as sender.
  • bridge_results.csv has one row per event. For successful events success is true, tx_count is 1 and the acknowledgement columns are empty.

Next