This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import { ParticleNetwork } from '@particle-network/auth'; | |
import { ParticleProvider } from '@particle-network/provider'; | |
import { Avalanche } from '@particle-network/chains'; | |
import { AAWrapProvider, SmartAccount, SendTransactionMode } from '@particle-network/aa'; | |
import { ethers } from 'ethers'; | |
const config = { | |
projectId: process.env.REACT_APP_PROJECT_ID, | |
clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import { ParticleNetwork } from '@particle-network/auth'; | |
import { ParticleProvider } from '@particle-network/provider'; | |
import { Mantle } from '@particle-network/chains'; | |
import { AAWrapProvider, SmartAccount } from '@particle-network/aa'; | |
import { ethers } from 'ethers'; | |
const config = { | |
projectId: process.env.REACT_APP_PROJECT_ID, | |
clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import { ParticleNetwork } from '@particle-network/auth'; | |
import { ParticleProvider } from '@particle-network/provider'; | |
import { TaikoJolnir } from '@particle-network/chains'; | |
import { AAWrapProvider, SmartAccount } from '@particle-network/aa'; | |
import { ethers } from 'ethers'; | |
const config = { | |
projectId: process.env.REACT_APP_PROJECT_ID, | |
clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ParticleNetwork } from '@particle-network/auth'; | |
import { ParticleProvider } from '@particle-network/provider'; | |
import { EthereumGoerli } from '@particle-network/chains'; | |
import { AAWrapProvider, SmartAccount, SendTransactionMode } from '@particle-network/aa'; | |
import { ethers } from 'ethers'; | |
const config = { | |
projectId: process.env.REACT_APP_PROJECT_ID, | |
clientKey: process.env.REACT_APP_CLIENT_KEY, | |
appId: process.env.REACT_APP_APP_ID, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ParticleNetwork } from '@particle-network/auth'; | |
import { ParticleProvider } from '@particle-network/provider'; | |
import { AlchemyProvider } from "@alchemy/aa-alchemy"; | |
import { LightSmartContractAccount } from "@alchemy/aa-accounts"; | |
import { polygonMumbai } from "viem/chains"; | |
import { createWalletClient, custom } from "viem"; | |
import { WalletClientSigner, SmartAccountSigner } from "@alchemy/aa-core"; | |
const particle = new ParticleNetwork({ | |
projectId: process.env.REACT_APP_PROJECT_ID as string, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import axios from 'axios'; | |
import { ethers } from 'ethers'; | |
import { ParticleNetwork } from '@particle-network/auth'; | |
import { ParticleProvider } from '@particle-network/provider'; | |
import { EthereumGoerli } from '@particle-network/chains'; | |
import { createPublicClient, createClient, http } from 'viem'; | |
import { pimlicoBundlerActions, pimlicoPaymasterActions } from 'permissionless/actions/pimlico'; | |
import { getAccountNonce, getUserOperationHash, bundlerActions } from 'permissionless'; | |
import { goerli } from 'viem/chains'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import Web3 from 'web3'; | |
import { ParticleNetwork } from '@particle-network/auth'; | |
import { AvalancheTestnet } from "@particle-network/chains"; | |
import { ParticleProvider } from "@particle-network/provider"; | |
import { SmartAccount } from '@particle-network/aa'; | |
import './App.css'; | |
const config = { | |
projectId: process.env.REACT_APP_PROJECT_ID, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import { ParticleNetwork } from '@particle-network/auth'; | |
import { EthereumGoerli } from "@particle-network/chains"; | |
import { ParticleProvider } from "@particle-network/provider"; | |
import { AAWrapProvider, SmartAccount, SendTransactionMode } from '@particle-network/aa'; | |
import { ethers } from 'ethers'; | |
import './App.css'; | |
const App = () => { | |
const [userInfo, setUserInfo] = useState(null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import Web3 from 'web3'; | |
import { ParticleNetwork } from '@particle-network/auth'; | |
import { AvalancheTestnet } from "@particle-network/chains"; | |
import { ParticleProvider } from "@particle-network/provider"; | |
import { SmartAccount } from '@particle-network/aa'; | |
import './App.css'; | |
const App = () => { | |
const [userInfo, setUserInfo] = useState(null); |