0.0.7 • Published 2 years ago

@b2network/aa-utils v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
  }
})
0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago