# Core Features

Magmar redefines how users interact with blockchain by eliminating friction, maximizing control, and making advanced functionality accessible through an intuitive design. With an emphasis on composability, automation, and developer extensibility, Magmar reimagines how blockchain is accessed and utilized.

## **1. Gas Sponsorship: Eliminate Friction at Onboarding**

Gas fees are a persistent blocker for new users. Before interacting with a dApp, users must acquire native tokens, a multi-step, off-chain process that adds unnecessary complexity.

#### **Magmar’s Approach**

Magmar enables dApps to subsidize user gas costs through flexible sponsorship mechanisms:

| Sponsorship Model       | Description                                            |
| ----------------------- | ------------------------------------------------------ |
| Full Sponsorship        | dApp covers 100% of gas fees for specific actions      |
| Partial Sponsorship     | User and dApp split the cost                           |
| Conditional Sponsorship | Fees are sponsored after key events (e.g., onboarding) |

> **Compared to traditional wallets** like MetaMask, which place the full burden of gas acquisition on users, Magmar abstracts this step entirely, making onboarding seamless for both Web2-native users and institutions.

### **2. Self-Custody: Infrastructure Without Intermediaries**

Unlike custodial wallets that rely on centralized servers or MPC-based setups with shared key control, Magmar maintains a **pure self-custodial architecture**.

**Technical Characteristics**

* No centralized key recovery servers
* No hidden co-signers
* User-owned, smart contract-controlled accounts

> **Why It’s Different:** Wallets like Coinbase Wallet offer "semi-custodial" key recovery and backup features. Magmar ensures **100% non-custodial control**, without compromising usability.

## **3. ERC-4337 Account Abstraction: Smart Logic at the Core**

Magmar is built on Ethereum’s ERC-4337 standard, which redefines how wallet logic operates by introducing smart accounts that can execute arbitrary logic, replacing the limitations of Externally Owned Accounts (EOAs).

#### **Key Capabilities Unlocked**

* Native multi-signature approvals
* Programmable spending (e.g., rate limits, time locks)
* Session keys for dApp access with time-limited permissions
* Social recovery workflows via designated guardians

> **Magmar vs. EOAs**

| Feature             | EOAs                 | Magmar (ERC-4337 Smart Accounts) |
| ------------------- | -------------------- | -------------------------------- |
| Multi-sig           | Not supported        | Native                           |
| Spending limits     | Not supported        | Native                           |
| Gas abstraction     | Not supported        | Native                           |
| Recovery mechanisms | Manual (seed phrase) | Programmable via social recovery |

## **4. Batch Transactions: Workflow Compression at the Protocol Layer**

Traditional wallets require separate transactions for each DeFi action. Magmar collapses these steps using batched operations.

**Example Workflow**

* User wants to: **Swap → Stake → Claim rewards**
* With Magmar: A single transaction performs all three actions atomically

#### **Benefits**

* Fewer approvals and gas fees
* Elimination of mid-flow transaction failures
* Optimized UX for power users and protocols

This feature is especially relevant for strategy automation and DAO tooling, where multi-step flows are common.

## **5. Social Login: Web2 Onboarding for Web3 Infrastructure**

Magmar bridges Web2 familiarity with Web3 control by allowing wallet access via federated identity providers (Google, Apple, Facebook, etc.).

#### **Underlying Architecture**

* Social logins generate keys via secure enclave-backed or passkey-based systems
* Keys are mapped to on-chain smart accounts
* No centralized custody of login credentials

> **Advantage:** Platforms like Magic.link and Web3Auth offer similar login UX, but often rely on centralized key storage or third-party custodians. Magmar maintains full decentralization and user key control under the hood.

## **6. Modular Smart Contracts: Upgradable, Composable Wallet Logic**

Magmar wallets are not monolithic contracts. Instead, they follow a pluggable architecture where modules can be deployed, updated, or removed independently.

#### **Example Modules**

* Token allowlisting
* Multi-sig enforcement
* Transaction throttling
* Compliance filters (for regulated use cases)

{% content-ref url="broken-reference" %}
[Broken link](broken-reference)
{% endcontent-ref %}

## **7. Multi-Chain Support: Unified Access Across EVM Networks**

Magmar supports multiple EVM-compatible chains natively, with plans to support non-EVM networks via modular adapters.

| Chain               | Status         |
| ------------------- | -------------- |
| Ethereum Mainnet    | Supported      |
| Polygon             | Supported      |
| BNB Chain           | Supported      |
| Optimism / Arbitrum | In development |
| Avalanche / zkSync  | Roadmap 2025   |

#### **Key Multi-Chain Features**

* Unified portfolio view
* Native asset bridging and routing
* Chain-aware batch transactions

> Unlike siloed wallets such as MetaMask, which require manual network switching and RPC setup, Magmar provides a chain-agnostic UX out-of-the-box.

## **8. Developer SDK & APIs**

Magmar offers a robust SDK for builders to integrate programmable wallets, automate DeFi workflows, and extend smart account behavior.

**SDK Capabilities**

* Programmatically construct `UserOperations` for ERC-4337 execution
* Build dApps with embedded wallet functionality
* Simulate transactions off-chain before execution
* Plugin support for custom modules (e.g., identity, compliance, automation)
