> For the complete documentation index, see [llms.txt](https://docs.chiliz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chiliz.com/ko/gaebal/goseup/gyejeong-chusanghwa.md).

# 계정 추상화 사용

## 계정 추상화란 무엇인가요?

계정 추상화는 사용자가 스마트 컨트랙트를 계정으로 사용할 수 있게 해주는 블록체인 기술로, 계정을 완전히 프로그래밍 가능하게 만듭니다.

사용자 계정을 더욱 유연하고 기능적으로 만들어 사용자 경험을 향상시키는 것을 목표로 합니다.

## Chiliz Chain 개발자에게 무엇을 의미하나요?

AA를 구현함으로써 개발자는 프로젝트의 사용자 경험을 향상시킬 수 있습니다. 더 간단한 Chiliz Chain 상호작용은 더 사용자 친화적인 앱을 의미합니다.

## Chiliz Chain에서 Biconomy 사용하기

[Biconomy](https://www.biconomy.io/)는 자사의 **MEE**(Modular Execution Environment)와 **AbstractJS** SDK를 중심으로 구축된 풀스택 계정 추상화 툴킷을 제공합니다. Chiliz Chain은 [메인넷과 Spicy 테스트넷 모두](https://docs.biconomy.io/contracts-and-audits/supported-chains)에서 지원됩니다.

Biconomy의 스택을 사용하면 사용자에게 다음을 제공할 수 있습니다.

* 가스 없는 트랜잭션
* 일괄 및 크로스체인 트랜잭션
* 스마트 컨트랙트 지갑 (소셜 로그인 포함)
* session keys, 계정 복구 등의 모듈

### 왜 고전적인 계정 추상화 모델이 아닌 MEE인가요?

Biconomy의 이전 스택은 각 체인에서 별도의 bundler와 paymaster 인프라에 의존하는 고전적인 **ERC-4337** 모델을 기반으로 구축되었습니다. 이후 Biconomy는 완전한 ERC-4337 동등성을 유지하면서 주요 한계를 제거하는 **MEE**로 전환했습니다. 그 이유는 Biconomy의 [MEE vs ERC-4337](https://docs.biconomy.io/new/learn-about-biconomy/mee-vs-4337) 비교에서 설명합니다.

* **동적 조합성(Dynamic composability)**: ERC-4337은 모든 호출 데이터를 사전에 알아야 하는 정적 배칭만 허용합니다. MEE는 각 단계가 이전 단계의 출력(조건부 로직, 런타임 값)을 참조할 수 있게 합니다.
* **네이티브 크로스체인 오케스트레이션**: 체인마다 별도의 트랜잭션과 서명을 사용하는 대신, MEE는 단일 서명으로 복잡한 멀티체인 흐름을 승인합니다.
* **범용 가스 추상화**: 사용자는 체인별로 가스를 관리하는 대신, 지원되는 모든 체인에서 다른 체인의 토큰을 사용하여 가스를 지불할 수 있습니다.
* **자동화**: MEE는 ERC-4337에 없는 예약 및 반복 실행을 지원합니다.
* **기본 EOA 지원**: 스마트 컨트랙트 지갑(또는 EIP-7702)이 반드시 필요하지 않습니다.

### Chiliz Chain에서의 가스 없는 트랜잭션

AA의 가장 영향력 있는 활용 사례 중 하나는 사용자가 dApp과 상호작용하기 위해 CHZ를 보유해야 할 필요성을 없애는 것입니다. **후원(가스 없는) 트랜잭션**을 사용하면 애플리케이션이 사용자를 대신하여 가스를 부담하므로, 온보딩 시 사용자가 먼저 CHZ를 확보할 필요가 없습니다. MEE의 범용 가스 추상화와 결합하면, 체인의 네이티브 자산이 아닌 다른 토큰으로도 가스를 지불할 수 있습니다. 이를 활성화하는 방법은 Biconomy의 [가스 후원](https://docs.biconomy.io/gasless-apps/sponsorship) 가이드를 참고하세요.

### 시작하기

[Biconomy 대시보드](https://dashboard.biconomy.io/)에 로그인하여 프로젝트를 생성하세요. 각 프로젝트는 앱에서 사용할 자격 증명을 제공합니다.

* **API Key** (예: `mee_LDxnuNsXYfvNUGsz6sJbHn`)
* **Project ID** (예: `1sp767r4-5rrs-9o1s-3s6s-4s0r6nrq3647`)

AbstractJS와 [viem](https://viem.sh/)을 설치하세요.

```bash
npm install @biconomy/abstractjs viem
```

그런 다음 체인 구성을 Chiliz Chain으로 설정하여 Nexus 계정과 MEE 클라이언트를 생성하세요. Chiliz Chain ID는 다음과 같습니다.

* `Chiliz Mainnet = 88888`
* `Chiliz Spicy Testnet = 88882`

```typescript
import { createMeeClient, toMultichainNexusAccount, getMEEVersion, MEEVersion } from "@biconomy/abstractjs";
import { http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { chiliz, spicy } from "viem/chains";

const eoa = privateKeyToAccount("0xYOUR_PRIVATE_KEY");

// Create a Nexus account configured for Chiliz Chain (and Spicy Testnet)
const orchestrator = await toMultichainNexusAccount({
  chainConfigurations: [
    { chain: chiliz, transport: http(), version: getMEEVersion(MEEVersion.V2_1_0) },
    { chain: spicy, transport: http(), version: getMEEVersion(MEEVersion.V2_1_0) },
  ],
  signer: eoa,
});

// Create the MEE client using your Biconomy dashboard API key
const meeClient = await createMeeClient({
  account: orchestrator,
  apiKey: "mee_LDxnuNsXYfvNUGsz6sJbHn",
});
```

참고: Biconomy의 SDK는 계속 발전하므로, 최신 완전한 예제는 [AbstractJS 설정하기](https://docs.biconomy.io/new/getting-started/set-up-abstractjs) 가이드와 [소개](https://docs.biconomy.io/overview/introduction)를 참고하세요.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.chiliz.com/ko/gaebal/goseup/gyejeong-chusanghwa.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
