This library is compatible to wagmi hooks & viem publicProviders. It allows waiting for transaction receipts for Safe transactions. This is helpful when your users are connecting their Safe accounts using Walletconnect. A transaction submitted on that connection will return the safeTx
hash of the Safe's infrastructure. To wait for a regular transaction receipt, you first must resolve the onchain transaction that has been executed by the respective relayer or submitted by the final signer.
useIsSafeWallet(address: Address): boolean|undefined
figures out whether address is a Safe accountuseSafeWaitForTransaction(writeResult: WriteContractResult | undefined)
a drop in replacement foruseWaitForTransaction
safeWaitForTransactionReceipt(publicClient, {hash, address})
plain viem usage: takes a public client & an address and returns `Promise``
yarn add @moleculexyz/wagmi-safe-wait-for-tx
See the library Readme.
NPM package https://www.npmjs.com/package/@moleculexyz/wagmi-safe-wait-for-tx
Copyright (c) 2023 by Molecule AG