@0xgasless/smart-account
v0.0.11
Published
SDK for 0xgasless integration with support for account abstraction, smart accounts, ERC-4337.
Downloads
30
Maintainers
Readme
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 [email protected]
- 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();