So far the team was aiming for doing something like this:
let batch_tx = subxt::dynamic::tx(
"Utility",
"batch",
txes.iter().map(|tx| tx.into_value()).collect::<Vec<Value<_>>>(),
);
So far the team was aiming for doing something like this:
let batch_tx = subxt::dynamic::tx(
"Utility",
"batch",
txes.iter().map(|tx| tx.into_value()).collect::<Vec<Value<_>>>(),
);
Something like this:
let tx = polkadot::tx()
.utility()
.batch(calls);
let hash = api.tx().sign_and_submit_default(&tx, &signer).await?;
println!("Extrinsic submitted: {}", hash);
Ok(())
where calls
is a vec!
of calls.