Questions tagged [batch]
The batch tag has no usage guidance.
13
questions
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 (...
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
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
...
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';
...
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 ...
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 ...
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 ...
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.
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
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,...
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 ...
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 ...