bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 37쪽 중 13쪽
" id="defillama"></a>
[DefiLlama](https://defillama.com/chain/Mantle) is a multi-chain TVL stats dashboard, where data connectors are contributed and maintained by a community. Follow the link below to see data for Mantle Network.
### DEXTools[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/monitors#dextools) <a href="#dextools" id="dextools"></a>
[DEXTools](https://www.dextools.io/app/en/pairs) is a platform that provides users with a comprehensive set of tools and resources to navigate the DeFi ecosystem. It supports swapping and trading assets that are deployed to Mantle Network and other chains using different decentralized exchanges.
### DEX Screener[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/monitors#dex-screener) <a href="#dex-screener" id="dex-screener"></a>
[DEX Screener](https://dexscreener.com/) is an online tool that supports real-time blockchain analytics and allows users to filter through a variety of assets across decentralized exchanges to perform price analysis.
### Dune[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/monitors#dune) <a href="#dune" id="dune"></a>
[Dune](https://dune.com/) is crypto's data platform. Teams and individuals alike use Dune to explore, query, access, and export blockchain data. Dune's community of data engineers, researchers, and analysts use the platform to gain deeper insights into blockchain activity. Dune provides organized, decoded and human-readable blockchain data, across 15+ chains and 1.5M datasets.
<details>
<summary><code>Read more</code></summary>
**Features**[****](https://docs-v2.mantle.xyz/devs/dev-guides/tools/monitors#features)
* **Data exploration**: Dune Analytics allows you to explore and analyze blockchain data using SQL queries. You can easily filter, aggregate, and visualize data to gain insights into blockchain activity.
* **Dashboards**: Create interactive dashboards to monitor key metrics and visualize data trends. Dune Analytics provides a drag-and-drop interface for designing custom dashboards.
* **Collaboration**: Share your queries, dashboards, and insights with others. Dune Analytics supports collaboration features, allowing you to work together with your team or the wider community.
* **API access**: Access blockchain data programmatically using Dune's API. You can integrate blockchain data into your applications, tools, and services.
* **Snowflake datashare**: Dune's Snowflake datashare allows you to access and analyze blockchain data directly in your Snowflake account. You can query and join blockchain data with your existing datasets in Snowflake.
**Resources**[****](https://docs-v2.mantle.xyz/devs/dev-guides/tools/monitors#resources)
Here are some resources to help you learn more about Dune Analytics:
* [Documentation](https://docs.dune.com/): The official documentation provides detailed guides and tutorials on using Dune Analytics.
* [API Docs](https://docs.dune.com/api): The API documentation provides detailed information on how to access blockchain data programmatically using Dune's API.
* [YouTube](https://www.youtube.com/@dunecom) : The Dune YouTube channel features video tutorials and demos of the platform.
* [Blog](https://dune.com/blog): The Dune blog features articles, case studies, and updates about the platform.
* [Twitter](https://twitter.com/duneanalytics): Follow Dune Analytics on Twitter for the latest news and announcements.
</details>
<br>
# Indexing
In the blockchain field, to better understand and analyze blockchain data, often use Graph service or some Indexer service to process the data. Mantle Network supports a large number of data-related tools, providing users and developers with convenient data service infra.
## Graph Service[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/indexers#graph-service) <a href="#graph-service" id="graph-service"></a>
### Mantle Subgraph Studio[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/indexers#mantle-subgraph-studio) <a href="#mantle-subgraph-studio" id="mantle-subgraph-studio"></a>
[Subgraph](https://subgraph.mantle.xyz/) is a customized, open-source solution for indexing and accessing real-time blockchain data through the GraphQL API. They provide developers with powerful tools to build, customize and access blockchain data according to their needs. Check their [documentation](https://docs.ormi.xyz/dedicated-env/mantle/subgraphs/overview) for more details.
## Indexer[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/indexers#indexer) <a href="#indexer" id="indexer"></a>
### Lithosphere[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/indexers#lithosphere) <a href="#lithosphere" id="lithosphere"></a>
Lithosphere serves as the data hub of the Mantle Network, providing comprehensive data services to the infrastructure (bridge and explorer) and dApps, etc. in the ecosystem, by synchronizing the data from layer 1, layer 2, and Mantle DA, processing it before storing it in the main database, and ultimately exposing interfaces to the ecosystem through APIs.
### Birdeye Data Services
[**Birdeye Data Services (BDS)** ](https://bds.birdeye.so/)is a blockchain data infrastructure platform that provides fast and reliable multi-chain on-chain data through APIs and real-time streams. It aggregates token, trading, DeFi, and wallet data across major networks, enabling developers to easily integrate price feeds, analytics, and market insights into their applications.
### Covalent[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/indexers#covalent) <a href="#covalent" id="covalent"></a>
[Covalent](https://www.covalenthq.com/?utm_source=mantle\&utm_medium=partner-docs) collects and indexes historical data points from over 100 different chain networks and makes them available via one unified API. This can come in handy for developers working on multi-chain dApps. You can use Covalent if you need:
* Structured and enhanced on-chain data well beyond what you get from RPC providers
* Broad and deep multi-chain data at scale
* Enterprise-grade performance
### Dune Echo
[**Dune Echo**](https://dune.com/echo) is Dune’s new multichain real-time developer platform designed to provide real-time data processing and infrastructure support, enabling developers to efficiently build and scale blockchain applications.
* Echo consolidates data from **30+ blockchain networks** into a single API.
* Echo ensures that developers receive data within **300ms** of block propagation.
### Unmarshal[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/indexers#unmarshal) <a href="#unmarshal" id="unmarshal"></a>
[Unmarshal](https://console.unmarshal.io/) provides an API, TS, and Golang SDK, and a data parser to fetch indexed on-chain data and conveniently plug it into your dApps. You can also find analytics data available at a glance for multiple chains, including Mantle. Follow the link below to navigate to the Unmarshal console and get started.
### SimpleHash
[SimpleHash](https://simplehash.com/) is a platform that provides access to Token balances, DEX prices, and transfers, along with NFT metadata, media, collection details, sales, floor prices, listings and bids across multiple chains. SimpleHash now powers Mantle devs with real-time token data and transactions, full NFT metadata and balances and flexible access via API and bulk data streams.
### SubQuery[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/indexers#subquery) <a href="#subquery" id="subquery"></a>
[SubQuery](https://academy.subquery.network/quickstart/quickstart_chains/mantle.html) is a fast, flexible, and reliable open-source data indexer that provides custom APIs for dApps and web3 systems across multiple chains, including Mantle Network. Follow the link below to get started.
<br>
# Development Framework
## Mantle Own Librarys <a href="#hardhat" id="hardhat"></a>
### Mantle SDK
Mantle SDK is a fork of the `optimism-sdk` designed to support core functionalities of the Mantle network, such as deposits and withdrawals. For more details, please check this [page](/network/for-developers/how-to-guides/how-to-use-mantle-sdk).
### Mantle Viem
**Mantle Viem** is an extension package built on top of the [`viem`](https://viem.sh/) library, designed to simplify the development process on the Mantle network. For more details. please check this [page](/network/for-developers/how-to-guides/how-to-use-mantle-viem).
## Third-party Frameworks <a href="#hardhat" id="hardhat"></a>
### Hardhat[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/frameworks#hardhat) <a href="#hardhat" id="hardhat"></a>
[Hardhat](https://hardhat.org/hardhat-runner/docs/getting-started#overview) is a smart contract development environment that comes with tools that can be used to compile, debug, and deploy Solidity smart contracts and dApps on Ethereum and other EVM-compatible chains like Mantle Network.
### Foundry[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/frameworks#foundry) <a href="#foundry" id="foundry"></a>
[Foundry](https://book.getfoundry.sh/) is a fast, portable, and modular toolkit for EVM application development written in Rust. Foundry manages your dependencies, compiles your project, runs tests, deploys, and lets you interact with the chain from the command line and via Solidity scripts.
### Thirdweb[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/frameworks#thirdweb) <a href="#thirdweb" id="thirdweb"></a>
[Thirdweb](https://portal.thirdweb.com/) is a complete web3 development framework that provides everything you need to connect your apps and games to decentralized networks like Mantle Network, which will empower you to seamlessly build, launch, and manage web3 applications and games across any EVM-compatible blockchain.
# Account Abstraction
## Etherspot[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/aa/overviews#etherspot) <a href="#etherspot" id="etherspot"></a>
[Etherspot](https://etherspot.fyi/introduction) is a multi-chain ERC4337 developer platform that provides solutions for dApps, games, and wallets to deliver frictionless Web3 UX for their end-users. Etherspot leverages Account Abstraction to enable smooth onboarding for new users and abstract away complex blockchain operations. Here is a [tutorial](/network/for-developers/resources-and-tooling/account-abstraction/create-a-smart-account-by-using-etherspot) of how to use Etherspot to build a smart wallet on Mantle.
## Particle Network[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/aa/overviews#particle-network) <a href="#particle-network" id="particle-network"></a>
[Particle Network](https://docs.particle.network/) is an intent-centric, modular access layer of web3 applications. With Particle's Smart Wallet-as-a-Service, developers can curate an unparalleled user experience through modular and customizable EOA/AA embedded wallet components. Using MPC-TSS for key management, Particle can streamline user onboarding via familiar web2 accounts , such as Google accounts, email addresses, and phone numbers. This is a [tutorial](/network/for-developers/resources-and-tooling/account-abstraction/social-login-by-using-particle) of how to build an AA component on a Mantle Network using Particle Networks.
# Create a Smart Account by using Etherspot
## Prerequisites[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/aa/etherspot#prerequisites) <a href="#prerequisites" id="prerequisites"></a>
Before you start, ensure you have the following:
1. Basic Knowledge: Familiarity with Ethereum and smart contracts.
2. Development Environment: Node.js and npm installed
3. Framework: React Native
## Code Tutorial[](https://docs-v2.mantle.xyz/devs/dev-guides/tools/aa/etherspot#code-tutorial) <a href="#code-tutorial" id="code-tutorial"></a>
In this tutorial, we’ll get set up with the very basics of using the [Prime SDK](https://etherspot.fyi/prime-sdk/instantiation).
We’ll set up a React app, install the Etherspot Prime SDK, and create an Etherspot smart contract wallet.
Start by creating a react app like this:
```sh
npx create-react-app etherspot-starter
```
Then enter the directory and install the Etherspot Prime SDK and Ethers.
```sh
cd etherspot-starter/
npm i @etherspot/prime-sdk --save
npm i ethers --save
```
Now open the code in your editor, and open up App.js.
Paste in the following code:
```javascript
'use client';
import React from 'react';
import {PrimeSdk} from '@etherspot/prime-sdk';
import {ethers} from 'ethers';
import './App.css';
const App = () => {
const [etherspotWalletAddress, setEtherspotWalletAddress] = React.useState(
'0x0000000000000000000000000000000000000000',
);
const [eoaWalletAddress, setEoaWalletAddress] = React.useState(
'0x0000000000000000000000000000000000000000',
);
const [eoaPrivateKey, setEoaPrivateKey] = React.useState('');
const generateRandomEOA = async () => {
// Create random EOA wallet
const randomWallet = ethers.Wallet.createRandom();
setEoaWalletAddress(randomWallet.address);
setEoaPrivateKey(randomWallet.privateKey);
};
const generateEtherspotWallet = async () => {
// Initialise Etherspot SDK
const primeSdk = new PrimeSdk(
{privateKey: eoaPrivateKey},
{chainId: 5000, projectKey: ''},
);
const address = await primeSdk.getCounterFactualAddress();
setEtherspotWalletAddress(address);
console.log('\x1b[33m%s\x1b[0m', `EtherspotWallet address: ${address}`);
};
return (
<div className="App-header">
<h1 className="App-title">Getting started with Etherspot Prime</h1>
<p>
{' '}
To initialise the SDK, it requires a Key Based Wallet(KBW) to be passed in.
</p>
<button className="App-button" onClick={() => generateRandomEOA()}>
First click here to generate a random KBW.
</button>
<a
target="_blank"
href={'https://mantlescan.info/address/' + eoaWalletAddress}>
KBW Address: {eoaWalletAddress}
</a>
<p>
Now we can intialise the SDK with this address as the owner, and create
an Etherspot smart contract wallet.
</p>
<button onClick={() => generateEtherspotWallet()}>
Generate Etherspot Smart Contract Wallet
</button>
<a
target="_blank"
href={'https://mantlescan.info/address/' + etherspotWalletAddress}>
Etherspot Smart Account Address: {etherspotWalletAddress}
</a>
<p>
<a target="_blank" href="https://etherspot.fyi/prime-sdk/intro">
Now you have a wallet created on Mantle you can explore what else we
can do with the Prime SDK.
</a>
</p>
</div>
);
};
export default App;
```
And that’s it! We’ve now created a random key-based wallet on Mantle on page load, and then using this KBW we pass it into the Etherspot Prime SDK, creating an Etherspot Smart Contract Wallet.
# Social Login by Using Particle
Particle Network offers Wallet Abstraction services through its Account Abstraction stack, optimizing user onboarding with a set of SDKs. Comment Edit from here
Integrating customizable modules for Externally Owned Accounts (EOA) and Account Abstraction (AA), Particle facilitates quick onboarding in just 2-clicks via social login options like Google, email, and phone, alongside traditional Web3 login methods.
Particle Network is compatible with Mantle Mainnet and Testnet, supporting EOA interactions and native ERC-4337 via implementations like SimpleAccount, Biconomy V2, and Cyber Connect.
This tutorial guides you through the steps for building a demo application on Mantle Sepolia using the [Particle Connect SDK](https://developers.particle.network/api-reference/connect/desktop/web) — Particle's flagship onboarding SDK. The Particle Connect SDK enables quick 2-click onboarding with social and Web3 login options in a single modal. In this demo, we'll onboard users through a SimpleAccount instance of a smart account via social login and execute a gasless (sponsored) transaction.
## Getting Started 
This tutorial is based on a [Next.js app](https://nextjs.org/docs/getting-started/installation) with TypeScript and Tailwind CSS to demonstrate wallet creation on Mantle using social logins.
The Particle Connect SDK simplifies wallet creation, user authentication, and blockchain interactions, providing a streamlined interface that supports social logins and traditional Web3 wallets.
### Prerequisites 
To integrate Particle Connect into your Mantle application, you'll need just a few dependencies. Particle Connect includes built-in Account Abstraction (AA) support, but in this example, we’ll also install the [Particle AA SDK](https://developers.particle.network/api-reference/aa/sdks/desktop/web) to use EIP-1193 providers like ethers.
```sh
yarn add @particle-network/connectkit viem@^2 @particle-network/aa ethers
```
### Configuring the Particle Dashboard 
To get started with the setup, visit the [Particle dashboard](https://dashboard.particle.network/) to retrieve three essential values for your project.
When using any Particle Network SDK, you'll need a projectId, clientKey, and appId to authenticate your project and establish a connection between your Particle Auth instance and the Particle dashboard. This setup allows you to customize in-app modals, track users, manage your Paymaster funds, and more.
Once you're in the Particle dashboard, follow these steps:
{% stepper %}
{% step %}
###
Go to **Add New Project** to create a new project.
{% endstep %}
{% step %}
###
Under Your Apps, select Web (for other platforms, refer to the [platform-specific guides in Particle's documentation](https://developers.particle.network/reference/introduction-to-api-sdk-reference)).
{% endstep %}
{% step %}
###
Choose a name and domain for your app. You can use a placeholder here if you haven't finalized your deployment domain.
{% endstep %}
{% step %}
###
Copy your **Project ID**, **Client Key**, and **App ID**.
{% endstep %}
{% endstepper %}
For security, it's best to store these values in a .env file in this format:
```
NEXT_PUBLIC_PROJECT_ID='PROJECT_ID'
NEXT_PUBLIC_CLIENT_KEY='CLIENT_KEY'
NEXT_PUBLIC_APP_ID='APP_ID'
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID='WALLETCONNECT_PROJECT_ID'
```
## Configuring Particle Connect 
First, let’s configure and initialize Particle Connect. Create a new file called `ConnectKit.tsx` in your `src` directory. In this file, we’ll define the `ParticleConnectKit` component, which wraps the configured `ConnectKitProvider` instance and acts as the primary interface for handling configuration.
```javascript
"use client";
import React from "react";
import { ConnectKitProvider, createConfig } from "@particle-network/connectkit";
import { authWalletConnectors } from "@particle-network/connectkit/auth";
import { evmWalletConnectors } from "@particle-network/connectkit/evm";
import { mantleSepoliaTestnet } from "@particle-network/connectkit/chains";
import { wallet, EntryPosition } from "@particle-network/connectkit/wallet";
import { aa } from "@particle-network/connectkit/aa";
const config = createConfig({
projectId: process.env.NEXT_PUBLIC_PROJECT_ID!,
clientKey: process.env.NEXT_PUBLIC_CLIENT_KEY!,
appId: process.env.NEXT_PUBLIC_APP_ID!,
walletConnectors: [
authWalletConnectors({}), // Social logins
// Default Web3 logins
evmWalletConnectors({
walletConnectProjectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID, // optional, retrieved from https://cloud.walletconnect.com
}),
],
plugins: [
wallet({
entryPosition: EntryPosition.BR, // Positions the modal button at the bottom right on login
visible: true, // Determines if the wallet modal is displayed
}),
aa({
name: "SIMPLE",
version: "2.0.0",
}),
],
chains: [mantleSepoliaTestnet],
});
export const ParticleConnectkit = ({ children }: React.PropsWithChildren) => {
return <ConnectKitProvider config={config}>{children}</ConnectKitProvider>;
};
```
This code configures Particle Connect to enable wallet authentication and blockchain interactions on Mantle Sepolia. It supports social logins and standard Web3 options via WalletConnect and includes Account Abstraction (AA) with a `simpleAccount` instance, versio프로젝트로 돌아가기