signAndSubmit
sign and submit transaction
signAndSubmit
is used to sign the transaction and then submit it to the blockchain.
It takes two parameters:
payload
- mandatory parameter containing the transaction body.For arguments of type vector, you can pass in an array.
For
vector<u8>
, you can pass inUint8Array
.You can also pass in a BCS serialized transaction as payload(
Uint8Array
), which ignores option.
option
- optional parameter that overrides transaction parameters.
In the current implementation, `signAndSubmitTransaction` call is expected to never resolve. This is because when a transaction is initiated, MSafe is actually submitting a transaction to initiate a transaction proposal. It will require other owner's approval until the specific transaction can be executed from the MSafe wallet.
Thus upon a transaction proposal being successfully submitted, the application page will be closed, and the user is redirected to transaction queue page waiting for confirmation from other owners.
Example:
Last updated