You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the ability to simulate a transaction that would be proposed to a multisig account without requiring the transaction to be actually proposed first.
Motivation
Is your feature request related to a problem? Please describe you use case.
When working with multisig accounts, it's currently not possible to simulate what would happen if a proposed transaction were to be executed by the multisig account without first creating the proposal transaction. This means developers have to:
Create and submit a proposal transaction (costing gas)
Wait for proposal transaction to be committed
Try to execute the transaction to see if it would succeed
If the execution would fail, create another transaction to cleanup/remove the failed proposal
Having the ability to simulate before proposal would:
Save gas costs from failed proposals
Save time in development/testing
Improve UX by catching errors before proposals are made
Allow better estimation of gas costs for multisig executions
Pitch
Describe the solution you would like
Add a new simulation method specifically for multisig transactions that:
Takes a would-be proposal's payload
Simulates it as if it were being executed by the multisig account
Returns simulation results without requiring an actual proposal to exist
This would simulate the transaction as if it were being executed by the multisig account without requiring a proposal to exist first.
Describe alternatives you've considered
Current approach of simulating with multisig payload - fails with MULTISIG_TRANSACTION_NOT_FOUND because it expects a proposal to exist
Simulating as direct execution from multisig account - fails with INVALID_AUTH_KEY because auth validation can't be bypassed
Creating temporary proposals for simulation - works but costly and requires cleanup
Are you willing to open a pull request?
I suspect this will require changes to Aptos core, and I don't have much familiarity with rust and that codebase so I wouldn't be as effective as a core dev.
Additional context
This is particularly important for dApps that use multisig accounts for protocol operations. Being able to simulate transactions before proposal would significantly improve the development experience and reduce costs from failed proposals.
Related code showing current limitations:
// Currently fails with MULTISIG_TRANSACTION_NOT_FOUNDconsttx=awaitaptosClient.transaction.build.simple({sender: deployer.accountAddress,data: {
multisigAddress,
...entryPayload}});const[response]=awaitaptosClient.transaction.simulate.simple({signerPublicKey: deployer.publicKey,transaction: tx});
The text was updated successfully, but these errors were encountered:
🚀 Feature Request Description
Add the ability to simulate a transaction that would be proposed to a multisig account without requiring the transaction to be actually proposed first.
Motivation
Is your feature request related to a problem? Please describe you use case.
When working with multisig accounts, it's currently not possible to simulate what would happen if a proposed transaction were to be executed by the multisig account without first creating the proposal transaction. This means developers have to:
Having the ability to simulate before proposal would:
Pitch
Describe the solution you would like
Add a new simulation method specifically for multisig transactions that:
Example API:
This would simulate the transaction as if it were being executed by the multisig account without requiring a proposal to exist first.
Describe alternatives you've considered
MULTISIG_TRANSACTION_NOT_FOUND
because it expects a proposal to existINVALID_AUTH_KEY
because auth validation can't be bypassedAre you willing to open a pull request?
I suspect this will require changes to Aptos core, and I don't have much familiarity with rust and that codebase so I wouldn't be as effective as a core dev.
Additional context
This is particularly important for dApps that use multisig accounts for protocol operations. Being able to simulate transactions before proposal would significantly improve the development experience and reduce costs from failed proposals.
Related code showing current limitations:
The text was updated successfully, but these errors were encountered: