🏟️ BUIDL where legends play. Join our Hackathon at Parc des Princes, Paris – July 2025 •
Register Now
Chiliz Chain Developer Docs
Chiliz ChainBlock ExplorerCommunitySocios.com
한국어 / Korean
한국어 / Korean
  • Chiliz 체인 개발자 문서
  • 빠른 시작
    • Chiliz 체인의 핵심 요약
    • 메인넷 및 테스트넷 연결
    • 테스트넷 토큰 획득
    • 스마트 계약 배포 및 검증
      • Remix IDE로 배포
      • Thirdweb로 배포
      • Chiliscan으로 검증
      • Chiliz Block Explorer으로 검증
    • Chiliz 체인 노드 실행
    • 지갑 가이드
    • 무료 온라인 강좌
    • 인플레이션 공급 할당 주소
  • 학습
    • Chiliz 체인 소개
      • 2024 Dragon8 하드 포크
      • Tokenomics
      • 보안 감사
      • Chiliz Labs
    • Chiliz 브리지
      • CHZ를 브리지하는 방법
    • Chiliz 체인에서 스테이킹
      • CHZ 스테이킹
      • CHZ 언스테이킹
      • Staking 보상
      • Chiliz 스테이킹 FAQ
    • Validator가 되기
      • Validator 노드 실행
      • Validator 슬래싱
  • 개발
    • 기본
      • MetaMask 사용하기
        • MetaMask 설치하기
        • Chiliz 체인을 MetaMask에 연결하기
      • Chiliz 체인에 연결하기
        • RPC 사용하여 연결하기
        • Chiliz 체인 노드 실행
        • 하드웨어 지갑 사용
      • 블록 탐색기
      • Spicy 파셋
        • Tatum 파셋을 사용하여 testCHZ 받기
        • Spicy 파셋을 사용하여 testCHZ 받기
        • Spicy 파셋을 사용하여 테스트 팬 토큰 받기
      • 래핑된 CHZ 받기
    • 고급
      • Account Abstraction 사용 방법
      • 팬 토큰의 USD 가격 가져오기
      • 무작위 숫자 생성 방법
Powered by GitBook
On this page
  • Account Abstraction이란 무엇인가요?
  • Chiliz 체인 개발자에게 의미하는 바는 무엇인가요?
  • Biconomy를 사용하여 구현하는 방법은?

Was this helpful?

  1. 개발
  2. 고급

Account Abstraction 사용 방법

Last updated 10 months ago

Was this helpful?

Account Abstraction이란 무엇인가요?

Account Abstraction은 스마트 계약을 계정으로 사용할 수 있게 하여 이를 완전히 프로그래밍 가능하게 하는 블록체인 기술입니다.

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

Chiliz 체인 개발자에게 의미하는 바는 무엇인가요?

AA를 구현함으로써 개발자는 프로젝트의 사용자 경험을 향상시킬 수 있습니다. Chiliz 체인 상호작용이 간단해질수록 더 사용자 친화적인 앱이 됩니다.

Biconomy를 사용하여 구현하는 방법은?

Biconomy는 스마트 계정에 접근할 수 있는 전체 스택 Account Abstraction SDK를 제공합니다:

Biconomy에 따르면, Chiliz 체인에서 AA 스택을 활용하는 4가지 방법이 있습니다:

  • 가스 없는 트랜잭션

  • 배치된 트랜잭션

  • 스마트 계약 지갑(소셜 로그인 포함)

  • 세션 키, 멀티체인 검증자, 계정 복구 등을 포함한 모듈

Biconomy에는 유용한 빠른 시작 페이지가 있습니다:

샘플 코드는 Polygon Mumbai 네트워크를 사용하며, 이를 Chiliz에 맞게 다음과 같이 조정할 수 있습니다:

import {
  Hex,
  createWalletClient,
  encodeFunctionData,
  http,
  parseAbi,
  zeroAddress,
} from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { ChainId } from '@biconomy/core-types'
import { createSmartAccountClient } from "@biconomy/account";

const bundlerUrl =
  "https://bundler.biconomy.io/api/v2/80001/nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"; // Found at https://dashboard.biconomy.io

export const createAccountAndMintNft = async () => {
  // ----- 1. Generate EOA from private key
  const account = privateKeyToAccount("0x" + "PRIVATE_KEY");
  const client = createWalletClient({
    account,
    chainId: ChainId.CHILIZ_TESTNET, // or ChainId.CHILIZ_MAINNET,
    transport: http(),
  });
  const eoa = client.account.address;
  console.log(`EOA address: ${eoa}`);

  // ------ 2. Create biconomy smart account instance
  const smartAccount = await createSmartAccountClient({
    signer: client,
    bundlerUrl,
  });
  const saAddress = await smartAccount.getAccountAddress();
  console.log("SA Address", saAddress);
};
createAccountAndMintNft();

Chiliz 체인 ID를 기억하십시오:

  • CHILIZ_MAINNET = 88888

  • CHILIZ_TESTNET = 88882

또한, Biconomy를 사용할 때 Chiliz에는 메인넷과 테스트넷 모두에 대해 고유한 엔트리포인트 주소가 있습니다: 0x00000061FEfce24A79343c27127435286BB7A4E1

이는 Biconomy Bundler 또는 Paymaster를 사용할 때 중요합니다:

// CC2 has its own entrypoint address
const CHILIZ_BUNDLER_ENTRYPOINT_ADDRESS='0x00000061FEfce24A79343c27127435286BB7A4E1'

const bundler = new Bundler({
    bundlerUrl: `https://bundler.biconomy.io/api/v2/${ChainId.CHILIZ_TESTNET}/nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44`,
    chainId: ChainId.CHILIZ_TESTNET,
    entryPointAddress: CHILIZ_BUNDLER_ENTRYPOINT_ADDRESS,
})
Biconomy 문서
Biconomy 빠른 시작