Replies: 15 comments
-
@webmaster128 anyone can help me. I think it's config problem of chain. |
Beta Was this translation helpful? Give feedback.
-
I don't know what this means, sorry |
Beta Was this translation helpful? Give feedback.
-
@webmaster128 Sorry, the problem lies in the fact that I don't know what is causing the error to be reported. It doesn't look like a problem with the contract code. I started a chain that supports cosmwasm, but the rpc says "post failed" when sending this transaction. What are the chain configurations(config.toml) that affect the contract method calls? I have a feeling that it's taking too long to process the transaction and that's causing the error. |
Beta Was this translation helpful? Give feedback.
-
@webmaster128 |
Beta Was this translation helpful? Give feedback.
-
I think that I'm here because a transaction body contains too many messages, so it's taking too long for the transaction to take place. |
Beta Was this translation helpful? Give feedback.
-
timeout_broadcast_tx_commit is relevant when you submit a transaction and wait for the block inclusion. Ideally you don't use that and just return once the transaction is in the mempool. The behaviour will depend a lot on the chain. If you have a 6s block time and your transaction takes too much gas to fit in the next block, it will be in the mempool a bit longer. You should track the gas usage as well as the chain's block gas limit to see how much you can do in one transaction. |
Beta Was this translation helpful? Give feedback.
-
Sure, here I should not put multiple duplicate transactions in a batch method, which would lead to an uncontrollable size of my transaction body. |
Beta Was this translation helpful? Give feedback.
-
@webmaster128 However, does
let msgs = [client.publish_message(A), client.publish_message(B), client.publish(C)...]
signTxAndSend(msgs, wallet.getSigner()) |
Beta Was this translation helpful? Give feedback.
-
Yeah, with |
Beta Was this translation helpful? Give feedback.
-
@webmaster128 I tried this and he still encapsulates multiple messages into a single transaction. so still running into the above problem. Is there a |
Beta Was this translation helpful? Give feedback.
-
Nope. Transacton execution is always atomic by design. I.e. it is either executed fully or not at all. |
Beta Was this translation helpful? Give feedback.
-
@webmaster128 But some large number of polls and transfers demand this method? Because there is no correlation between each message. |
Beta Was this translation helpful? Give feedback.
-
It's up to your use case to decide in how many transactions you split your messages |
Beta Was this translation helpful? Give feedback.
-
But this doesn't seem to be user friendly as he needs to do many times to repeat the signature and send the transaction. |
Beta Was this translation helpful? Give feedback.
-
@webmaster128 I actually just want to make it possible for a user to initiate multiple transactions by just evoking the wallet once during a frontend interaction. |
Beta Was this translation helpful? Give feedback.
-
my code:
I need to batch execute a method, but I'm getting this error when calling it.
my command:
log:
Beta Was this translation helpful? Give feedback.
All reactions