Wallet hooks
useReportTransactionEffects
Use the useReportTransactionEffects
hook can be used to report the effects of a transaction to the
connected wallet. The useSignAndExecuteTransaction
hook automatically reports effects, and the
useSignTransaction
hook provides a reportTransactionEffects
callback to report effects manually,
so this hook is only needed when using a non-standard flow for executing transactions.
Arguments
effects
: The effects of an executed transaction. This can either be therawEffects
returned from the JSON-RPCexecuteTransactionBlock
method (returned when showRawEffects is set to true), or theeffects.bcs
when executing with the GraphQL API.chain
: (optional) The chain identifier the transaction was executed on.account
(optional) the account that signed the transaction, defaults to the currently connected account