useTransaction

Hook to fetch a single transaction.

This hook keeps a cache of transactions by chain and transaction hash so that you can use the hook freely in your application without worrying about sending duplicate network requests.

Examples

This hook shows how to fetch a transaction.