@b2network/aa-utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

aa-utils

Wagmi-compliant hooks to ease integration with BSquared Network AA.

Getting Started

  • Install the package
// with yarn
yarn add @b2network/aa-utils
// with npm
npm i @b2network/aa-utils

Hooks

useSCAAddress

useWaitForUserOperation

Examples

// Required addresses and endpoints can be retrived from our doc

const { data: scaData } = useSCAAddress({
  owner: someAddress,
  scaFactoryAddress: KERNEL_FACTORY_ADDRESS,
  scaRegistryAddress: SCA_REGISTRY_ADDRESS
});

const { data: receipt } = useWaitForUserOperation({
  hash: someUOHash,
  opts: {
    baseUrl: BUNDLER_BASE_URL
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @b2network/aa-utils

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

116 kB

Total Files

22

Last publish

Collaborators

  • lance10030
  • bsquared_pat