Quickstart guide for leveraging Particle’s AA stack in web applications.
@particle-network/aa
.
BICONOMY
), CyberConnect (CYBERCONNECT
), or SimpleAccount (SIMPLE
) instance. In this same configuration, you’ll be able to define the usage of either Particle Network’s native Paymaster (will be active if paymasterApiKeys
is left blank), or Biconomy’s paymaster (only active if paymasterApiKeys
is defined). An example of this configuration is below:
smartAccount
object, or through a traditional Web3 library such as ethers or Web3.js; the latter is done through the construction of an 1193 provider object, AAWrapProvider
.
smartAccount
, see the table below, or for more usage information, take a look at the AA Web SDK rundown at AA Web SDK.
Class | Methods | Parameters (* indicates optional) |
---|---|---|
SmartAccount | constructor | provider, config |
SmartAccount | setSmartAccountContract | contract |
SmartAccount | getChainId | |
SmartAccount | getAccountConfig | |
SmartAccount | getPaymasterApiKey | |
SmartAccount | getFeeQuotes | tx |
SmartAccount | buildUserOperation | tx, feeQuote, tokenPaymasterAddress |
SmartAccount | signUserOperation | userOpHash, userOp |
SmartAccount | sendUserOperation | userOpHash, userOp |
SmartAccount | sendSignedUserOperation | userOp, sessionDataParams* |
SmartAccount | sendTransaction | tx, feeQuote, tokenPaymasterAddress |
SmartAccount | getAccount | |
SmartAccount | getAddress | |
SmartAccount | getOwner | |
SmartAccount | isDeployed | |
SmartAccount | deployWalletContract | |
SmartAccount | sendRpc | arg |
SmartAccount | createSessions | options |
SmartAccount | validateSession | targetSession, sessions |