0.0.11 • Published 9 months ago

@0xgasless/dev-account v0.0.11

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

0xGasless SDK 🚀

The 0xGasless SDK is your all-in-one toolkit for building decentralized applications (dApps) with ERC4337 Account Abstraction and Smart Accounts. It is designed for seamless user experiences and offers non-custodial solutions for user onboarding, sending transactions (userOps), gas sponsorship and much more.

🛠️ Quickstart

Installation

  1. Add the package and install dependencies:
bun add @0xGasless/smart-account ethers@5.7.2
  1. Install dependencies:
bun i
import { createSmartAccountClient } from "@0xGasless/smart-account";

const smartAccount = await createSmartAccountClient({
  signer: viemWalletOrEthersSigner,
  bundlerUrl: "", // From dashboard.0xGasless.com
  paymasterUrl: "", // From dashboard.0xGasless.com
});

const { wait } = await smartAccount.sendTransaction({ to: "0x...", value: 1 });

const {
  receipt: { transactionHash },
  success,
} = await wait();