# Whats the best way of capturing WETH details as part of a NFT trade?

**URL:** <https://forum.thegraph.com/t/whats-the-best-way-of-capturing-weth-details-as-part-of-a-nft-trade/3943>\
**Category:** Questions & Feedback\
**Tags:** subgraph-devs\
**Created:** [January 16, 2023, 2:37pm UTC](https://forum.thegraph.com/t/whats-the-best-way-of-capturing-weth-details-as-part-of-a-nft-trade/3943 "2023-01-16T14:37:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimbobbins](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/jimbobbins/32/1765_2.png) [@jimbobbins](https://forum.thegraph.com/u/jimbobbins)\
**Post date:** [January 16, 2023, 2:37pm UTC](https://forum.thegraph.com/t/whats-the-best-way-of-capturing-weth-details-as-part-of-a-nft-trade/3943/1 "2023-01-16T14:37:12Z")

</div>

Atm we successfully capture all ETH trade details by looking at transaction.value but a `Transfer` Event for a given NFT.

WETH is becoming a much bigger settle layer for NFT trading and we would like to capture the WETH value during a trade as well.

What would be the best way of doing this?

Would I need to index all WETH transactions and then in match them up to NFT Transfer transactions?

---

<div class="post-metadata">

**Author:** ![schmidsi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/schmidsi/32/592_2.png) [@schmidsi](https://forum.thegraph.com/u/schmidsi)\
**Post date:** [January 16, 2023, 10:05pm UTC](https://forum.thegraph.com/t/whats-the-best-way-of-capturing-weth-details-as-part-of-a-nft-trade/3943/2 "2023-01-16T22:05:33Z")

</div>

This is the main use-case behind the TransactionReceipt feature.

Read here how to activate them: [Creating a Subgraph - The Graph Docs](https://thegraph.com/docs/en/developing/creating-a-subgraph/#transaction-receipts-in-event-handlers)

In the AssemblyScript API it is documented how this data is exposed: [AssemblyScript API - The Graph Docs](https://thegraph.com/docs/en/developing/assemblyscript-api/#events-and-block-transaction-data)

I know there was someone that did something similar already but I can’t find the source right now. I’ll check.

---

<div class="post-metadata">

**Author:** ![itsjerryokolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/itsjerryokolo/32/117_2.png) [@itsjerryokolo](https://forum.thegraph.com/u/itsjerryokolo)\
**Post date:** [January 17, 2023, 7:04am UTC](https://forum.thegraph.com/t/whats-the-best-way-of-capturing-weth-details-as-part-of-a-nft-trade/3943/3 "2023-01-17T07:04:25Z")

</div>

> <https://github.com/franz101/mev-explore-subgraph/blob/main/src/mapping.ts>

This repo shows how it’s used.
