This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@gelatonetwork/gasless-wallet
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Gasless Wallet

GaslessWallet 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/gasless-wallet

npm install @gelatonetwork/gasless-wallet

Usage

Imports

import {
  GaslessWallet,
  GaslessWalletConfig,
} from "@gelatonetwork/gasless-wallet";
import { ethers } from "ethers";

Initialization

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

const gaslessWalletConfig: GaslessWalletConfig = {
    apiKey: "1BALANCE_API_KEY",
};


const gaslessWallet = new GaslessWallet(eoaProvider, gaslessWalletConfig);
await gaslessWallet.init();

Get Gasless Wallet Contract [Gnosis Safe Proxy] Address

const gaslessWalletContractAddress = gaslessWallet.getAddress();

Helper Functions

const isGaslessWalletAlreadyDeployed = await gaslessWallet.isDeployed();
const isGaslessWalletAlreadyInitiated = gaslessWallet.isInitiated();

Sponsor Transaction

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

const { taskId } = await gaslessWallet.sponsorTransaction(
  TARGET_ADDRESS,
  TX_DATA
);

Readme

Keywords

none

Package Sidebar

Install

npm i @gelatonetwork/gasless-wallet

Weekly Downloads

2

Version

0.0.4

License

ISC

Unpacked Size

191 kB

Total Files

40

Last publish

Collaborators

  • nestor-gelato
  • denispanov
  • benprice
  • mkykadir
  • luisgelato
  • yazidgelato
  • denis_gelato
  • opatavi-gelato
  • aless-io
  • alxdc
  • brandon.cs
  • hilmarx
  • gitpusha
  • pedrogelato