Welcome to AptosEdge, a powerful and secure multisig wallet built on the Aptos Blockchain. AptosEdge ensures secure collaborative fund management by requiring multiple approvals to authorize transactions. Designed for DAOs, enterprises, and shared asset management, the wallet supports customizable approval thresholds, cross-chain transactions, batch processing, and recovery mechanisms.
- Live Demo: AptosEdge
- Smart Contract Explorer: Aptos Explorer
- Secure Admin Management: Add, remove, and recover admins to ensure smooth wallet operation. Prevents accidental removal of the last admin.
- Batch Transaction Execution: Execute multiple transactions efficiently to save time and reduce gas costs.
- Transaction Lifecycle: Create, confirm, execute, cancel, and track transactions.
- Meta-Confirmation: Supports third-party confirmations for gasless transactions.
- Transaction Expiry: Ensures old transactions are invalidated automatically after a set duration.
Ensure you have the following installed:
- Node.js (v16 or higher)
- npm or yarn
- Aptos Wallet (e.g., Petra Wallet) for blockchain interactions
Clone the project repository to your local machine and navigate to the project folder:
git clone https://github.com/kunaldhongade/AptosEdge.git
cd AptosEdge
Install the required dependencies:
npm install
Create a .env
file in the project root and add the following configuration:
PROJECT_NAME=AptosEdgeMultisig
VITE_APP_NETWORK=testnet
VITE_MODULE_ADDRESS=0x339c4c822be7e7662b1f8ec7b61e51659fae8616121c890e35ef202f5f89b739
Replace 0xYOUR_SMART_CONTRACT_ADDRESS
with the actual deployed address.
To start the project in development mode:
npm run dev
Access the app at http://localhost:5173
.
-
Install Aptos CLI.
-
Update Move.toml with your wallet address:
my_addrx = "0xYOUR_ACCOUNT_ADDRESS"
-
Initialize Aptos CLI and compile the contract:
aptos init aptos move compile aptos move publish
Use the following command to create a multisig wallet with two admins and a threshold of two approvals:
create_multisig(&signer, vector[admin1, admin2], 2);
Admins can create a new transaction:
create_transaction(&signer, multisig_creator, 1000, recipient_address);
Then confirm the transaction:
confirm_transaction(&signer, multisig_creator, tx_id);
Admins can execute transactions after receiving sufficient confirmations:
execute_transaction(&signer, multisig_creator, tx_id);
For batch execution:
execute_batch_transactions(&signer, multisig_creator, vector[tx1, tx2, tx3]);
Cancel a pending or unexecuted transaction:
cancel_transaction(&signer, multisig_creator, tx_id);
npm run dev
: Start the development server.
- React: UI library for building interactive interfaces
- Aptos SDK: Blockchain interaction library
- Tailwind CSS: CSS framework for responsive design
- Petra Wallet Adapter: Wallet integration for Aptos
- Get Admins: View the list of current admins.
- Get Wallet Balance: Display the wallet’s current balance.
- Get Transaction Count: View the number of transactions created.
- Get Pending Transactions: List all pending (unexecuted) transactions.
- Check Admin Status: Verify if an address is an admin.
- Transaction Expiry: Ensures stale transactions cannot be executed.
- Batch Execution Safeguards: Prevents duplicate execution in parallel processing.
- Meta-Transactions: Supports gasless transactions through third-party confirmations.
- Wallet Not Connecting: Ensure your Aptos wallet (e.g., Petra) is properly installed and connected.
- Insufficient Funds: Ensure the wallet has enough APT tokens to complete transactions.
- Deployment Issues: Use Aptos CLI to check if the smart contract was deployed correctly.
- Use Private RPC Providers: Avoid public node limits by using services like QuickNode.
- Implement Real-Time Updates: Use WebSockets for better user experience.
- Optimize Batch Transactions: Minimize gas costs by grouping operations into batches.
AptosEdge offers a secure and flexible multisig wallet, designed for collaborative fund management on the Aptos blockchain. Its powerful governance tools, cross-chain readiness, and transparency features make it an ideal choice for DAOs, enterprises, and shared asset managers. With an intuitive interface and advanced smart contract logic, AptosEdge provides seamless, secure, and efficient asset management for the decentralized future.