Account Abstraction を使う
BiconomyのAbstractJSとMEEを使ってChiliz Chainでaccount abstractionを実装する: gasless transaction、batched transactionやcross-chain transaction、そしてdAppのUXを向上させるSmart Account。
最終更新
役に立ちましたか?
役に立ちましたか?
npm install @biconomy/abstractjs viemimport { 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",
});