Skip to main content

Questions tagged [batch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

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
0 answers

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 ...
JoshOrndorff's user avatar
  • 1,191
0 votes
1 answer

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
0 votes
0 answers

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....
J B's user avatar
  • 1
2 votes
0 answers

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

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,502
2 votes
1 answer

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

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

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

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

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
  • 766
2 votes
2 answers

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

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

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,683