8 from click
import option, command, pass_context, Context
12 @option(
"--name", required=
True, help=
"Target application name")
15 default=BATCH_PROOF_FILENAME_DEFAULT,
16 help=
"Batch proof output file")
21 batch_file: str) ->
None:
23 Request an aggregated transaction for the given application name.
26 cmd_ctx: CommandContext = ctx.obj
27 wrapper_snark = cmd_ctx.get_wrapper_snark()
28 aggregator_client = cmd_ctx.get_aggregator_client()
29 aggregated_tx = aggregator_client.get_aggregated_transaction(
31 with open(batch_file,
"w")
as batch_f:
32 json.dump(aggregated_tx.to_json_dict(), batch_f)