1.1.0 • Published 7 months ago

@derachain/aa-sdk v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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.

License

Installing

Install by yarn

yarn add @derachain/aa-sdk

or using npm

npm i @derachain/aa-sdk

Note: 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

12 months ago

1.1.0

7 months ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.22

10 months ago

1.0.21

10 months ago

1.0.20

12 months ago

1.0.24

8 months ago

1.0.23

10 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.12

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago