5 from zeth.cli.utils import open_web3_from_ctx, create_prover_client, \
 
    6     load_zeth_address_secret, open_wallet, do_sync, \
 
    7     load_mixer_description_from_ctx, zeth_note_short_print
 
    8 from click 
import command, option, pass_context, Context
 
    9 from typing 
import Optional
 
   13 @option(
"--wait-tx", help=
"Wait for tx hash")
 
   14 @option(
"--batch-size", type=int, help=
"Override blocks per query")
 
   16 def sync(ctx: Context, wait_tx: Optional[str], batch_size: Optional[int]) -> 
None:
 
   18     Attempt to retrieve new notes for the key in <key-file> 
   23     mixer_instance = mixer_desc.mixer.instantiate(web3)
 
   25     wallet = 
open_wallet(mixer_instance, js_secret, client_ctx)
 
   27     pp = prover_client.get_configuration().pairing_parameters
 
   29         web3, wallet, pp, wait_tx, zeth_note_short_print, batch_size)
 
   30     print(f
"SYNCED to {chain_block_number}")