0.0.11 • Published 11 months ago
@0xgasless/smart-account v0.0.11
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
- Add the package and install dependencies:
bun add @0xGasless/smart-account ethers@5.7.2
- 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();