Skip to main content

Questions tagged [batch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
158 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 ...
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 ...
0 votes
0 answers
24 views

Can a Substrate Runtime bulk-read many storage keys at once?

This question is about the Substrate host functions and storage implementation and is not specific to FRAME (although relevant FRAME-related information is welcome). Imagine that the runtime knows it ...
0 votes
1 answer
49 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 ...
0 votes
0 answers
26 views

batchall.sign throws TypeError: Cannot read properties of undefined (reading 'specVersion')

Trying to form a batchAll command that carries out 2 activities: Deposit 1 GLMR from wallet1 to wallet2 Cancel tokens' delegation revoke When I try to sign the batch with wallet1 (batchAllExtrinsic....
5 votes
2 answers
242 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 ...
2 votes
1 answer
99 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 ...
2 votes
0 answers
59 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'; ...
1 vote
0 answers
39 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 ...
0 votes
1 answer
22 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.
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 ...
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::...
2 votes
2 answers
52 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,...
3 votes
1 answer
71 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 ...