An introduction to Account Abstraction on Flare using the Etherspot Prime SDK
On this page we’ll run through some introductory code on getting
set up with using Etherspot Prime on Flare.
Installing packages
Prerequisite You should have installed Node.js (version 18.10.0 or
higher).
Install Etherspot Prime SDK with this command
npm i @etherspot/prime-sdk --save
yarn add @etherspot/prime-sdk
A look into the code
Importing the SDK
import { PrimeSdk } from '@etherspot/prime-sdk';
Getting the smart account address
If you’re unsure about the difference between key based accounts and smart contract
accounts, please take a look at this pageIn this example we simply create a key based wallet with ethers.js like so:
Then we use this key based wallet to instantiate the SDK on Coston2 and get the wallet address.
const primeSdk = new PrimeSdk({ privateKey: privateKey}, { chainId: 114, bundlerProvider: new EtherspotBundler(114, bundlerApiKey) });const address: string = await primeSdk.getCounterFactualAddress();console.log(address);
Sending funds to another address
Now that we have a smart contract account on Coston2, we can fund
it using Flare’s offical faucet.Once we have funds on our account (you can check this here)
we can try a simple send operation. This can be done through creating a sendFunds function like so:We’ll want to save destinationAddress and amount in some input field within the dapp.
const sendFunds = async () => { const primeSdk = new PrimeSdk({ privateKey: eoaPrivateKey}, { chainId: 114, bundlerProvider: new EtherspotBundler(114, bundlerApiKey) }); // clear the transaction batch await primeSdk.clearUserOpsFromBatch(); // add transactions to the batch const transactionBatch = await primeSdk.addUserOpsToBatch({to: destinationAddress, value: ethers.utils.parseEther(destinationAddress)}); // estimate transactions added to the batch and get the fee data for the UserOp const op = await primeSdk.estimate(); // sign the UserOp and send to bundler const uoHash = await primeSdk.send(op); console.log(`UserOpHash: ${uoHash}`);}
Next steps
For next steps you can look at functions or examples
to tailor the dapp to what you’re trying to achieve.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Etherspot Developer Documentation","colors":{"primary":"#3C3761","light":"#4b4579","dark":"#3C3761"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/etherspot/H2UQS5QvokClTYDR/logo/light.png?fit=max\u0026auto=format\u0026n=H2UQS5QvokClTYDR\u0026q=85\u0026s=7d9a2f3cd691d20dd659816d80abae90","dark":"https://mintcdn.com/etherspot/H2UQS5QvokClTYDR/logo/dark.png?fit=max\u0026auto=format\u0026n=H2UQS5QvokClTYDR\u0026q=85\u0026s=b5a86b0e1d031726a106d726503b9fd9"},"appearance":{"default":"dark","strict":false},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/etherspot/background.png","decoration":null},"navbar":{"links":[{"label":"V1 Docs","href":"https://v1.etherspot.io/"}],"primary":{"type":"button","label":"Etherspot","href":"https://etherspot.io"}},"footer":{"socials":{"twitter":"https://twitter.com/etherspot","github":"https://github.com/etherspot","discord":"https://discord.etherspot.io","linkedin":"https://www.linkedin.com/company/etherspotsdk"}},"navigation":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/etherspot","icon":"github"},{"anchor":"Discord","href":"https://discord.etherspot.io","icon":"discord"},{"anchor":"System Status","href":"https://status.etherspot.io/","icon":"check"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"etherspot","hasAudioNarration":false,"actualSubdomain":"etherspot","customDomains":["etherspot.fyi"],"gitSource":{"type":"github","owner":"etherspot","repo":"prime-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae919a41581386fb3125b49:success","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Prime SDK","count":73},{"language":"default","tag":"API Endpoints","count":38},{"language":"default","tag":"Modular SDK","count":37},{"language":"default","tag":"Arka","count":35},{"language":"default","tag":"Arka Paymaster","count":35},{"language":"default","tag":"Arka (Paymaster) API calls","count":30},{"language":"default","tag":"Arka API calls","count":30},{"language":"default","tag":"Prime SDK examples","count":23},{"language":"default","tag":"TransactionKit","count":17},{"language":"default","tag":"Transaction Kit","count":17}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"prime-sdk/other-chains/getting-started-on-flare","slug":"/prime-sdk/other-chains/getting-started-on-flare","pageMetadata":{"title":"Etherspot Prime on Flare","description":"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK","icon":"fire","href":"/prime-sdk/other-chains/getting-started-on-flare","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Info}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`On this page we’ll run through some introductory code on getting\nset up with using Etherspot Prime on Flare.`}),`\n`,_jsx(Heading,{level:`2`,id:`installing-packages`,children:`Installing packages`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Prerequisite`}),` You should have installed Node.js (version 18.10.0 or\nhigher).`]})}),`\n`,_jsx(_components.p,{children:`Install Etherspot Prime SDK with this command`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`npm`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @etherspot/prime-sdk`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --save`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`yarn`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`yarn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @etherspot/prime-sdk`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`a-look-into-the-code`,children:`A look into the code`}),`\n`,_jsx(Heading,{level:`3`,id:`importing-the-sdk`,children:`Importing the SDK`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PrimeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@etherspot/prime-sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`getting-the-smart-account-address`,children:`Getting the smart account address`}),`\n`,_jsxs(_components.p,{children:[`If you’re unsure about the difference between key based accounts and smart contract\naccounts, `,_jsx(_components.a,{href:`/account-abstraction/eoa-vs-scw`,children:`please take a look at this page`})]}),`\n`,_jsx(_components.p,{children:`In this example we simply create a key based wallet with ethers.js like so:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` randomWallet`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ethers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createRandom`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setEoaPrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`randomWallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`privateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then we use this key based wallet to instantiate the SDK on Coston2 and get the wallet address.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` primeSdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PrimeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`privateKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` privateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chainId:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 114`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bundlerProvider:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` EtherspotBundler`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`114`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bundlerApiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` address`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` primeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCounterFactualAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`sending-funds-to-another-address`,children:`Sending funds to another address`}),`\n`,_jsxs(_components.p,{children:[`Now that we have a smart contract account on Coston2, we can fund\nit using `,_jsx(_components.a,{href:`https://coston2-faucet.towolabs.com/`,children:`Flare’s offical faucet.`})]}),`\n`,_jsxs(_components.p,{children:[`Once we have funds on our account (`,_jsx(_components.a,{href:`https://coston2-explorer.flare.network/`,children:`you can check this here`}),`)\nwe can try a simple send operation. This can be done through creating a sendFunds function like so:`]}),`\n`,_jsxs(_components.p,{children:[`We’ll want to save `,_jsx(_components.strong,{children:`destinationAddress`}),` and `,_jsx(_components.strong,{children:`amount`}),` in some input field within the dapp.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` sendFunds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` primeSdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PrimeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`privateKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` eoaPrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`chainId:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 114`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bundlerProvider:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` EtherspotBundler`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`114`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bundlerApiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // clear the transaction batch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` primeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`clearUserOpsFromBatch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // add transactions to the batch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` transactionBatch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` primeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addUserOpsToBatch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`to:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` destinationAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ethers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`utils`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`parseEther`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`destinationAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)});`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // estimate transactions added to the batch and get the fee data for the UserOp`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` op`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` primeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`estimate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // sign the UserOp and send to bundler`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` uoHash`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` primeSdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`op`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`UserOpHash: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`uoHash`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(_components.p,{children:[`For next steps you can look at `,_jsx(_components.a,{href:`/prime-sdk/functions`,children:`functions`}),` or `,_jsx(_components.a,{href:`/prime-sdk/examples/intro`,children:`examples`}),`\nto tailor the dapp to what you’re trying to achieve.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Etherspot Prime on Flare","description":"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK","icon":"fire","href":"/prime-sdk/other-chains/getting-started-on-flare","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Installing packages","slug":"installing-packages","depth":2,"children":[]},{"title":"A look into the code","slug":"a-look-into-the-code","depth":2,"children":[{"title":"Importing the SDK","slug":"importing-the-sdk","depth":3,"children":[]},{"title":"Getting the smart account address","slug":"getting-the-smart-account-address","depth":3,"children":[]},{"title":"Sending funds to another address","slug":"sending-funds-to-another-address","depth":3,"children":[]},{"title":"Next steps","slug":"next-steps","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"etherspot","siteName":"Etherspot Developer Documentation","title":"Etherspot Prime on Flare - Etherspot Developer Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T12:59:50.098Z","originalFileLocation":"prime-sdk/other-chains/getting-started-on-flare.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK\">\u003cmeta data-mint-head name=\"application-name\" content=\"Etherspot Developer Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Etherspot Prime on Flare - Etherspot Developer Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Etherspot Developer Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://etherspot.mintlify.site/_mintlify/api/og/v2?division=Chain+Specific+Tutorials\u0026amp;title=Etherspot+Prime+on+Flare\u0026amp;description=An+introduction+to+Account+Abstraction+on+Flare+using+the+Etherspot+Prime+SDK\u0026amp;theme=ee676a970ddcf310397cfe83\u0026amp;signature=4e5b1c627af537eebea7feb21254b3170a3545afdeaf83b42b753c9dce1de8c3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Etherspot Prime on Flare - Etherspot Developer Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://etherspot.mintlify.site/_mintlify/api/og/v2?division=Chain+Specific+Tutorials\u0026amp;title=Etherspot+Prime+on+Flare\u0026amp;description=An+introduction+to+Account+Abstraction+on+Flare+using+the+Etherspot+Prime+SDK\u0026amp;theme=ee676a970ddcf310397cfe83\u0026amp;signature=4e5b1c627af537eebea7feb21254b3170a3545afdeaf83b42b753c9dce1de8c3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/etherspot/ZWnIjRvZNxvLlDpp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Etherspot Developer Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3C3761\">\u003clink data-mint-head rel=\"canonical\" href=\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/prime-sdk/other-chains/getting-started-on-flare.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://etherspot.fyi/#organization\",\"name\":\"Etherspot Developer Documentation\",\"url\":\"https://etherspot.fyi\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/etherspot/H2UQS5QvokClTYDR/logo/light.png?fit=max\u0026auto=format\u0026n=H2UQS5QvokClTYDR\u0026q=85\u0026s=7d9a2f3cd691d20dd659816d80abae90\"}},{\"@type\":\"WebSite\",\"@id\":\"https://etherspot.fyi#website\",\"name\":\"Etherspot Developer Documentation\",\"url\":\"https://etherspot.fyi\",\"publisher\":{\"@id\":\"https://etherspot.fyi/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare#webpage\",\"url\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare\",\"name\":\"Etherspot Prime on Flare\",\"description\":\"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK\",\"dateModified\":\"2026-01-06T12:59:50.098Z\",\"isPartOf\":{\"@id\":\"https://etherspot.fyi#website\"},\"breadcrumb\":{\"@id\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Chain Specific Tutorials\",\"item\":\"https://etherspot.fyi/prime-sdk/other-chains/intro\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Etherspot Prime on Flare\",\"item\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare#article\",\"headline\":\"Etherspot Prime on Flare\",\"name\":\"Etherspot Prime on Flare\",\"description\":\"An introduction to Account Abstraction on Flare using the Etherspot Prime SDK\",\"url\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare\",\"mainEntityOfPage\":{\"@id\":\"https://etherspot.fyi/prime-sdk/other-chains/getting-started-on-flare#webpage\"},\"dateModified\":\"2026-01-06T12:59:50.098Z\",\"publisher\":{\"@id\":\"https://etherspot.fyi/#organization\"},\"isPartOf\":{\"@id\":\"https://etherspot.fyi#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Etherspot Developer Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Etherspot Developer Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/prime-sdk/other-chains/getting-started-on-flare.md","siteName":"Etherspot Developer Documentation","nav":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/etherspot","icon":"github"},{"anchor":"Discord","href":"https://discord.etherspot.io","icon":"discord"},{"anchor":"System Status","href":"https://status.etherspot.io/","icon":"check"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/introduction"}]},{"tab":"Prime SDK","groups":[{"group":"Prime SDK","pages":[{"title":"Introduction","icon":"wrench","href":"/prime-sdk/intro"},{"title":"Chains Supported","icon":"link","href":"/prime-sdk/chains-supported"},{"title":"Installation","icon":"download","href":"/prime-sdk/installation"},{"title":"Instantiation","icon":"play","href":"/prime-sdk/instantiation"},{"title":"Functions","icon":"code","href":"/prime-sdk/functions"},{"title":"Arka Paymaster","icon":"money-bill-transfer","href":"/prime-sdk/arka"},{"title":"SDK Reference","icon":"magnifying-glass","href":"/prime-sdk/sdk-reference"},{"title":"Get an API key","icon":"key","href":"/prime-sdk/api-key-portal"},{"title":"Data Service","icon":"database","href":"/prime-sdk/data-service"},{"title":"Batching Transactions","icon":"layer-group","href":"/prime-sdk/batching-transactions"},{"title":"Sponsored Transactions","icon":"money-bill-transfer","href":"/prime-sdk/sponsored-transactions"},{"title":"Fiat Onramp","icon":"file-invoice-dollar","href":"/prime-sdk/fiat-onramp"},{"title":"Guardians","icon":"shield","href":"/prime-sdk/guardians"},{"title":"Changing Wallet Factory","icon":"money-bill-transfer","href":"/prime-sdk/wallet-factories"},{"title":"User Specific callGasLimit","icon":"gas-pump","href":"/prime-sdk/callGasLimit"}]},{"group":"Prime SDK examples","pages":[{"title":"Run Prime SDK examples","icon":"person-chalkboard","href":"/prime-sdk/examples/intro"},{"title":"Get Address","icon":"address-card","href":"/prime-sdk/examples/getaddress"},{"title":"Transfer Funds","icon":"money-bill-transfer","href":"/prime-sdk/examples/transferfunds"},{"title":"Transfer ERC20","icon":"money-bill-transfer","href":"/prime-sdk/examples/transfererc20"},{"title":"Transfer NFT","icon":"money-bill-transfer","href":"/prime-sdk/examples/transferNFT"},{"title":"Social Logins","icon":"twitter","href":"/prime-sdk/examples/social-logins"},{"title":"Get Account Balances","icon":"scale-balanced","href":"/prime-sdk/examples/get-account-balances"},{"title":"Get Transaction","icon":"magnifying-glass","href":"/prime-sdk/examples/get-transaction"},{"title":"Get Token List","icon":"coins","href":"/prime-sdk/examples/get-token-list"},{"title":"Get NFT List","icon":"palette","href":"/prime-sdk/examples/get-nft-list"},{"title":"Show gas fee in fiat","icon":"gas-pump","href":"/prime-sdk/examples/gas-fee-in-usd"},{"title":"Get Exchange Rates","icon":"coins","href":"/prime-sdk/examples/get-exchange-rates"},{"title":"Get Exchange Supported assets","icon":"coins","href":"/prime-sdk/examples/get-exchange-supported-assets"},{"title":"Use Paymaster","icon":"money-bill-transfer","href":"/prime-sdk/examples/use-paymaster"},{"title":"Paymaster valid until after specified time","icon":"money-bill-transfer","href":"/prime-sdk/examples/paymaster-valid-until-after-time"},{"title":"Swap","icon":"rotate","href":"/prime-sdk/examples/swap"},{"title":"Get bridging quotes (LiFi)","icon":"bridge","href":"/prime-sdk/examples/get-bridging-quotes-lifi"},{"title":"Get bridging quotes (other)","icon":"bridge","href":"/prime-sdk/examples/get-bridging-quotes-other"},{"title":"Get Zerodev Address","icon":"address-card","href":"/prime-sdk/examples/get-zerodev-address"},{"title":"Get SimpleAccount Address","icon":"address-card","href":"/prime-sdk/examples/get-simpleaccount-address"},{"title":"User Specific callGasLimit","icon":"gas-pump","href":"/prime-sdk/examples/call-gas-limit"},{"title":"Concurrent UserOps","icon":"money-bill-transfer","href":"/prime-sdk/examples/concurrent-userops"},{"title":"Add Guardians","icon":"shield-halved","href":"/prime-sdk/examples/add-guardians"}]},{"group":"Third Party libraries","pages":[{"title":"Intro","icon":"cake-candles","href":"/prime-sdk/third-party/intro"},{"title":"Metamask","icon":"mask","href":"/prime-sdk/third-party/metamask"},{"title":"Ethers.js","icon":"ethereum","href":"/prime-sdk/third-party/ethers"},{"title":"Viem","icon":"ethereum","href":"/prime-sdk/third-party/viem"},{"title":"Web3Auth","icon":"twitter","href":"/prime-sdk/third-party/web3auth"},{"title":"Privy","icon":"ghost","href":"/prime-sdk/third-party/privy"}]},{"group":"Integrations","pages":[{"title":"Aarc","icon":"archway","href":"/prime-sdk/integrations/aarc"}]},{"group":"Chain Specific Tutorials","pages":[{"title":"Intro","icon":"link","description":null,"href":"/prime-sdk/other-chains/intro"},{"title":"Etherspot Prime on Flare","icon":"fire","href":"/prime-sdk/other-chains/getting-started-on-flare"},{"title":"Account Abstraction on Mantle","description":"An introduction to Account Abstraction on Mantle using the Etherspot Prime SDK","icon":"globe","href":"/prime-sdk/other-chains/getting-started-on-mantle"},{"title":"Account Abstraction on Scroll","icon":"scroll","href":"/prime-sdk/other-chains/getting-started-on-scroll"},{"title":"Account Abstraction on Linea","icon":"grip-lines","href":"/prime-sdk/other-chains/getting-started-on-linea"},{"title":"Account Abstraction on Fuse","icon":"bomb","href":"/prime-sdk/other-chains/getting-started-on-fuse"},{"title":"Account Abstraction on Rootstock","icon":"square-root-variable","href":"/prime-sdk/other-chains/getting-started-on-rootstock"}]},{"group":"Contracts","pages":[{"title":"Contract Deployments","icon":"address-card","href":"/prime-sdk/contracts/deployments"},{"title":"EtherspotWallet","icon":"wallet","href":"/prime-sdk/contracts/etherspotwallet"},{"title":"Whitelist","icon":"list","href":"/prime-sdk/contracts/whitelist"},{"title":"Paymaster","icon":"money-bill","href":"/prime-sdk/contracts/etherspotpaymaster"},{"title":"AccessController","icon":"universal-access","href":"/prime-sdk/contracts/accesscontroller"},{"title":"Entrypoint Contract Error Codes","icon":"bug","href":"/prime-sdk/contracts/error-codes"}]}]},{"tab":"Modular SDK","pages":[{"title":"Modular SDK","href":"/modular-sdk/intro"}]},{"tab":"RemoteSigner SDK","pages":[{"title":"RemoteSigner SDK","href":"/remote-signer-sdk/intro"}]},{"tab":"Skandha","pages":[{"title":"Skandha","href":"/skandha/intro"}]},{"tab":"Arka","pages":[{"title":"Arka","href":"/arka/intro"}]},{"tab":"TransactionKit","pages":[{"title":"TransactionKit","href":"/transaction-kit/intro"}]},{"tab":"API Endpoints","pages":[{"title":"API Endpoints","href":"/api-endpoints/arka/api-calls/get-erc20-token-quotes"}]}]},"basePath":"","title":"Etherspot Prime on Flare - Etherspot Developer Documentation","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}