Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gelatonetwork/account-abstraction

Package Overview
Dependencies
Maintainers
15
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gelatonetwork/account-abstraction

SDK for Account Abstraction

  • 1.0.5
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Maintainers
15
Created
Source

Gelato Smart Wallet

GelatoSmartWallet is the main class where the developers can create smart contract wallets owned by their users' EOA and sponsor the transactions by using Gelato's 1Balance Service

Installation

yarn add @gelatonetwork/account-abstraction

npm install @gelatonetwork/account-abstraction

Usage

Imports

import { GelatoSmartWallet, SmartWalletConfig } from "@gelatonetwork/account-abstraction"
import { ethers } from "ethers";

Initialization

const eoaProvider:
    | ethers.providers.ExternalProvider
    | ethers.providers.JsonRpcFetchFunc = ...

const smartWalletConfig: SmartWalletConfig = {
    apiKey: "1BALANCE_API_KEY",
};


const smartWallet = new GelatoSmartWallet(eoaProvider, smartWalletConfig);
await smartWallet.init();

Get Smart Wallet Contract [Gnosis Safe Proxy] Address

const smartWalletContractAddress = smartWallet.getAddress();

Helper Functions

const isSmartWalletAlreadyDeployed = await smartWallet.isDeployed();
const isSmartWalletAlreadyInitialized = smartWallet.isInitialized();

Send Transaction

Sponsored Transaction that is sent through EOA's Gnosis Safe Proxy

const { taskId } = await smartWallet.sendTransaction("TO_ADDRESS", "DATA");

FAQs

Package last updated on 30 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc