Skip to main content

Questions tagged [batch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

How to determine the maximum number of batch methods in a single transaction?

How many batch methods can I add in a single transaction? Is there a byte limit, or should I calculate it another way? I get a signature error when I try to send transactions larger than 285 bytes (...
Mohsen Haydari's user avatar
0 votes
1 answer
13 views

Batch insert into StorageMap without iterations

Is there a way to do batch inset operation into a StorageMap without iteration or using a Vec[] type or best workarounds. and if its not whats the reason for not supporting this? For example there's a ...
Rehan's user avatar
  • 167
0 votes
1 answer
51 views

Uncaught (in promise) Error: Cannot convert 'InBlock' via asFinalized

I am trying to sign and send some transactions using the batch function. Here are some code snippets for reproduction. const nftMinting = async (item) => { try { let collection = 1 ...
Alan Ma's user avatar
  • 47
2 votes
0 answers
70 views

How to create a preimage which is the batch of other preimages?

I am wondering whether, and if so how, it is possible to submit a preimage which batches over other preimages, e.g. const pre1= '0x09401eb25e90bf587fbde8d2a9be8af5ac0f3187f02f4e9e9f1f178b0314ebe5'; ...
William Freudenberger's user avatar
2 votes
1 answer
100 views

What is this strange balance transfer that occurs during utility.batch?

I'm putting a single transaction into a batch utility call with zero value. The batch extrinsic is shown below. Each time I submit the batch transaction, a huge value is submitted to an unknown ...
forgetso's user avatar
  • 1,514
2 votes
1 answer
162 views

How to create a RuntimeCall with custom values and submit it to the utility pallet's batch function?

I have a custom pallet that is tightly coupled to the utility pallet. I am trying to call the batch function to perform a batch of balance transfers. The tests of the utility pallet (that create ...
Paul Neale's user avatar
1 vote
0 answers
40 views

Using original origin's call filter for proxy pallet's proxy

In the proxy pallet's do_proxy function, a newly authenticated origin is constructed from the real account. This is explicitly done. Is there a particular reason for this? Can I just use the same ...
Shoeb Siddiqui's user avatar
0 votes
1 answer
23 views

Unexpected Events from parainherit(enter) extrinsic

Can anyone explain why this module call parainherent(enter) ended up emitting a BatchCompleted and a couple ItemCompleted events? I'm unable to find any similar cases in westend.
sporkins's user avatar
1 vote
1 answer
39 views

batched transactions are not all executed, but no error are thrown

I am doing a balance upload (copying and modifying the balances from a chain to another) I have a json file containing all i need, i compute the new balance, and i batch calls doing a setBalance(). I ...
Nathan's user avatar
  • 454
0 votes
1 answer
54 views

Batching limitations

I am trying to understand the constrains in the batching function. fn batched_calls_limit() -> u32 { let allocator_limit = sp_core::MAX_POSSIBLE_ALLOCATION; let call_size = ((sp_std::mem::...
Yatusabes's user avatar
  • 778
2 votes
2 answers
53 views

Best way to make user sign N number of transactions

In a dApp, I want the users to be able to do N number of transactions. Those N transactions will be batched in a batchAll call. If N exceeds the maximum benchmarked amount of transactions in one batch,...
Leouarz's user avatar
  • 353
5 votes
2 answers
251 views

What is the best way to batch ~20 000 calls to a chain?

What should I choose between these two options: utility.batch() I can batch multiple calls into one call, so it avoids making too many calls, but I'm afraid this will exceed the size of the block if ...
Nathan's user avatar
  • 454
3 votes
1 answer
72 views

Is it possible to create multiple anonymous proxies in the same transaction?

I guess I have to make use of the utility.batch call but I am not sure how to pass the different anonymous proxy TXs in the batch call. I am also not sure of the use of the variable index in the ...
dominique's user avatar
  • 1,718