5 from zeth.cli.utils import load_mixer_description_from_ctx, open_web3_from_ctx
7 from click
import command, pass_context, Context, argument
11 @argument(
"transaction-id")
13 def wait(ctx: Context, transaction_id: str) ->
None:
15 Wait for a mix transaction and dump all log data. Does not update the
16 wallet. Use sync to scan the chain for new notes.
20 instance_desc = mixer_desc.mixer
24 instance = instance_desc.instantiate(web3)
25 tx_receipt = web3.eth.waitForTransactionReceipt(transaction_id, 10000) \
28 print(
"LogDebug events:")
32 f
" {log.args['message']}: {log.args['value']} "
33 f
"({hex(log.args['value'])})")
35 print(
"LogMix events:")