MSafe | Aptos
  • Overview
    • MSafe Overview
    • What can you do with MSafe wallet?
      • Why Multi-Sig & Non-Custodial
      • MSafe Wallet Key Benefits
    • Use Cases
      • Treasury Management
      • Smart Contract Deployment & Update
      • Protocol Admin Control
      • dApp Store Integration
    • Security
  • Users
    • Glossary
    • Launch App
    • Connect Wallet
    • Navigation Bar
    • Address Book
    • Create an Account
      • Initiate Creation
      • Co-Managers to Accept
    • Switch btw Accounts
    • Deposit / Receive
    • View Assets
    • View Pending Txn
    • View Txn History
    • Propose Transaction (Enable NFT, Send, Register Coin)
      • Enable NFT
      • Send
      • Add Coin
    • Approve Transaction
      • Co-Managers to Approve Enable NFT
      • Co-Managers to Approve Send
      • Co-Manager to Approve Add Coin
    • Change Vote
    • Reject Transaction
      • Co-Managers to Reject
    • Execute Transaction
      • Execute Approval
      • Execute Rejection
    • App Store
      • Use dApps
    • MSafe 1.0 User guide
      • Connect Wallet
      • First time registration
      • Create an MSafe Account
      • Receive Coin
      • Coin Transfer (APT)
      • DAPP Store
      • Add a new coin
      • Address Book
      • Permissions
      • Wallet FAQs
  • Developers
    • Overview
    • System
      • Auth-key & Multi-Ed25519
      • Backend Walk Through
      • MSafe Contracts
    • Interactive CLI
      • Installation
      • CLI arguments
      • Register and View
      • Create a MSafe Wallet
      • Approve / execute a transaction
      • Transfer Coin
      • Smart Contract | Module Publish
      • Entry Function
      • Reject a transaction
      • Migration from MSafe 1.0 to MSafe 2.0
    • SDK
      • Smart Contract | Deploy a MOVE Module
      • Call An Entry Function
    • Integrate with MSafe (DAPP)
      • FAQ
    • Move Module Publish
  • Product updates
    • 2022 Q4
Powered by GitBook
On this page
  • Overview
  • Check and view pending transactions
  1. Developers
  2. Interactive CLI

Approve / execute a transaction

Overview

Execution of each transaction from a MSafe will require multiple signatures from owners.

For transaction request initialization, please check Transfer Coin, Smart Contract | Module Publish, and Entry Function to see how to initialize a function for different use cases.

To confirm with the transaction, you will need to have log in as owner of the MSafe and approve the transaction either in CLI or Web APP. The process of approving a transaction through the CLI interface will be walked through as follows:

Check and view pending transactions

When entering the interactive CLI, you will see a list of MSafe addresses owned by your account (both in pending creation, and already created).

My Momentum Safes

	1)	0xdcf84a91017c7e11ef3f7428152eb860b75e5c5b5dc87e8fd8cc13c5fd1ad7f6 (Pending Creation)
	2)	0x1908fe0d337d7bd718c8465030c5f306377ac396f3d7acce92f526ae41637cc0
	c)	Create MSafe
	r)	Refresh

Please input your option:

Enter the number with the Safe to view the details of the the Safe wallet. If there are any pending transactions, the transactions will be displayed in incrementing sequence number order.

Pending transactions:

		| SN	| Action			| Confirmation	|

	1)	| 4	| Entry function		| 1 / 2
	2)	| 5	| Transfer APT			| 1 / 2
	n)	New transaction
	r)	Refresh
	b)	Back

Please input your option:		1

For example here, we see two pending transactions. Select the transaction you want to view the details of the pending transaction:

Transaction details:

Action:			Entry function
Call function:		0x1908fe0d337d7bd718c8465030c5f306377ac396f3d7acce92f526ae41637cc0::message::set_message
Arguments (1):		[string]	"hello momentum safe"
Sender:			0x1908fe0d337d7bd718c8465030c5f306377ac396f3d7acce92f526ae41637cc0
Sequence Number:	4
Expiration:		Sun Oct 09 2022 11:58:45 GMT-0700 (Pacific Daylight Time)
Gas Price:		100
Max Gas:		5000

--------------------

Collected signatures from public keys: 1 / 2
	pk 0:	0x841a1ca8e47f78c03dc4ec61eb7a6f1aba5f3e4235389a20e7018388bf631f7d

--------------------

Waiting for my signature. Sign?

	s)	Sign
	v)	reVert
	r)	Refresh
	b)	Back

Please input your option:		s

The CLI will display transaction details (in this case, an entry function call), collected signatures, and action items to be executed.

Input s to approve the Momentum Safe transaction. If there are not enough signatures, a transaction of submit_signature will be called to add the signature to the momentum safe pending transaction. If there is already enough signatures, the Momentum Safe transaction will be executed right way.

Transaction 0xbca825566ad32ea25da861d92dec16f745abfc22bde740c0a9b049010e11e88e submitted. Waiting for confirmation
Transaction confirmed on chain.

After the transaction is submitted, you will not see the transactions in Momentum Safe details page.

Pending transactions:

		| SN	| Action			| Confirmation	|

	1)	| 5	| Transfer APT			| 1 / 2
	n)	New transaction
	r)	Refresh
	b)	Back

Please input your option:
PreviousCreate a MSafe WalletNextTransfer Coin

Last updated 2 years ago