@b2network/aa-utils
v0.0.7
Published
Wagmi-compliant hooks to ease integration with BSquared Network AA.
Downloads
5
Readme
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
}
})