Open mshakeg opened 1 week ago
Thanks for the request @mshakeg
Check out this example https://github.com/aptos-labs/aptos-ts-sdk/blob/main/examples/typescript-esm/multisig_v2.ts#L144-L162 it was updated a week ago, and the feature flag for mainnet was turned on I think today. It allows you to simulate as other accounts, without necessarily having the public key / transactions.
Let us know if you have any feedback or it doesn't solve your problem cc @junkil-park
🚀 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: