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<_>>>(),
);
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communitySo 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.