1.1.0 • Published 1 year ago
@derachain/aa-sdk v1.1.0
Account Abstraction SDK
SDK for Account Abstraction integration on DERA chain with support for smart accounts, user operations, bundler service, paymaster service that comply with ERC-4337.
Installing
Install by yarn
yarn add @derachain/aa-sdkor using npm
npm i @derachain/aa-sdkNote: node version should be greater than v20 LTS
Quick start
import {createSmartAccountClient, sendUserOps} from '@derachain/aa-sdk';
const smartAccount = await createSmartAccountClient(
index, // Index to create new Smart Account
privateKey, // Private key for the account
true // Optional default true: Set to true if using paymaster
);
// Send transaction
const userOpResponse = await sendUserOps(
smartAccount,
{to: '0x...', value: 1},
false // Optional default false: Set to true if using paymaster
);
const userOpReceipt = await userOpResponse.wait();
const {
receipt: {transactionHash},
success,
} = userOpReceipt;1.0.19
1 year ago
1.1.0
1 year ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.24
1 year ago
1.0.23
1 year ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.12
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago