Create a MSafe Wallet
Initialize Creating Momentum Safe
After entering the interactive CLI from CLI arguments, you shall see momentum safe that has been created by this account as an owner.
Input information about new momentum safe wallet:
Number of owners is the number of addresses that is authorized to access and sign on the momentum safe wallet.
Confirmation threshold is the number of signatures need to be collected for submitting a transaction.
Initial fund is the fund sent by the current user to the momentum safe wallet to pay for gas fees.
For the owner addresses, the first address is default to the current wallet address. And you are able to add other owner addresses as the prompt.
All owner addresses are expected to have been previously registered to Momentum Safe. Otherwise, the momentum safe creation will fail with error.
After inputing all essential information, the wallet address as well as the creation nonce are displayed along with the confirmation:
Hit enter, and a transaction calling entry function of msafe::creator::init_wallet_creation
is submitted and then confirmed on blockchain.
Thus a wallet creation request is submitted and stored on chain. On the other hand, the creation of wallet also requires confirmation from other owners to finish the registration process.
Confirm the wallet creation
Get into another terminal with the other owner (0xbb3fc
...4ab7
in this case). Select 1. View my MSafes
to view all momentum safe wallets owned by the address.
You are able to see momentum safe both pending creation and already created. Select the first wallet that we just initiated creation and in pending status.
CLI will check whether there is enough signatures collected, and prompt you to sign the wallet creation transaction. Input s to sign and submit the transaction.
If the transaction is already signed by the current wallet, the sign option will not be available here.
After the transaction is confirmed on-chain, the momentum safe wallet is successfully created and registered.
You may check the status of the momentum safe wallet by checking View My MSafe:
The address we just created does not have pending creation
in suffix, meaning the wallet is created.
Last updated