# How can i get transfers using  watch_getTransfersByAddress?

By [WatchData](https://paragraph.com/@gr0wth) · 2022-03-10

---

![](https://storage.googleapis.com/papyrus_images/55a4de3076a9d74bb4e46a49e4f65b15647ef060fb834e50bda010cc2dcc10be.jpg)

### Hello builders!

If you have ever tried to get data on translations, you probably had to handle numerous block calls for a long time 😡

We at WatchData 👀 can give you the ability to simplify this approach and get this data in 1 API call you only need to know the address you want to track. With our data you can create many different services, such as your monitoring service (pictured below):

![](https://storage.googleapis.com/papyrus_images/fb1af67e5b2fc8210343904e809b7de9b1677fc9aa0f7ca2ad365a14efe17624.png)

Looks interesting?
------------------

Well, let's look at the capabilities of the [watch\_getTransfersByAddress](https://docs.watchdata.io/structured-data/transfers-new/watch_gettransfersbyaddress-new) endpoint. To learn more, visit our [Documentation](https://bit.ly/34BlWNq).

![](https://storage.googleapis.com/papyrus_images/0ced46ea35de0a892a55a7ccb90e438401d2d79b7614922216fc9797ca2b744d.jpg)

All you have to do is make a request and get information on how ETH and ERC20 transfers are received.

### Let's now look at an example of how it all works.

Open the API client, we processed the request through Postman. If you're having trouble, check out our [Quick start guide](https://bit.ly/34BlWNq) on how to get started with our API.

Request:

    {
        "id": 1,
        "method": "watch_getTransfersByAddress",
        "jsonrpc": "2.0",
        "params": [
            {
            "addresses": "0xc7d15E3aE9442baD3E0B3689b835fDd035479B52",
            "transferDirection": "to",
            "fromBlock": 1,
            "offset": 0,
            "limit": 100
        }
        ]
    }
    

*   For example you want to monitor your address for sending transactions . Suppose it is `0xc7d15E3aE9442baD3E0B3689b835fDd035479B52`.
    
*   To get the transfers that were received at the specified address, add the parameter: "`transferDirection`": "`to`", and to get the transfers that were sent from this address, add the parameter "`transferDirection`": "`from`".
    

> By the way, in the "`addresses`" parameter you can use several address values to get more information in one query, for example "`addresses`": \["`0xc7d15E3aE9442baD3E0B3689b835fDd035479B52`","`0x6aE6d807E57964D5DaC79CF07D43AA0B458CB0dB`"\],

Now we make **1 request** to the API and get information on all transfers of a given address.

Let's find out what we get in response.

Response:

    {
        "id": 1,
        "jsonrpc": "2.0",
        "result": [
            {
                "blockNumber": 12591647,
                "blockTimestamp": "2021-06-08T04:07:30",
                "transactionIndex": 25,
                "logIndex": null,
                "contractAddress": null,
                "transferType": "trx",
                "from": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
                "to": "0xc7d15e3ae9442bad3e0b3689b835fdd035479b52",
                "value": 100055406833350373
            },
            {
                "blockNumber": 12664741,
                "blockTimestamp": "2021-06-19T12:13:15",
                "transactionIndex": 19,
                "logIndex": null,
                "contractAddress": null,
                "transferType": "trx",
                "from": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
                "to": "0xc7d15e3ae9442bad3e0b3689b835fdd035479b52",
                "value": 100050819506085117
            },
            {
                "blockNumber": 12731449,
                "blockTimestamp": "2021-06-29T21:56:32",
                "transactionIndex": 115,
                "logIndex": null,
                "contractAddress": null,
                "transferType": "trx",
                "from": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
                "to": "0xc7d15e3ae9442bad3e0b3689b835fdd035479b52",
                "value": 100022202551483258
     ............................................................................
            }
        ]
    }
    

We obtained a dataset that transmits information on transfers.

From these values, we can determine that the:

*   `transferType` "`trx`" - is the native ETH token transfer.
    
*   `Value` - parameter gives the value with the uint256 format.
    

To convert this value into a usable format, we need to divide it by **10^18, because the decimals parameter at ETH = 18.**

![](https://storage.googleapis.com/papyrus_images/50f286c3428c7acdeeacb70bd64e1c29425982e2e02aca4325201a76b75bf832.png)

**⚠️ For different tokens there is a different decimals parameter be careful!**

After processing the entire data set, we were able to get transfers that came and went from the address we specified. We have shown you just one example of how you can interact with a [watch\_getTransfersByAddress](https://docs.watchdata.io/structured-data/transfers-new/watch_gettransfersbyaddress-new) endpoint, try it yourself.

[**Log in to WatchData**](https://bit.ly/3CwltbD)**.**

Our API is available in a free format, you can read more about the limits here → [Documentation](https://docs.watchdata.io/rate-limits).

1.  Join to [our Discord server](https://discord.com/invite/TZRJbZ6bdn)
    
2.  Please leave your feedback in the #feedback channel. If you have any problems or you think that some functionality is not working correctly, we are waiting for your feedback.
    
3.  Want a new feature or you miss some functionality, tell us about it in the #general channel. We are always open to your ideas!
    

HELPFUL LINKS
-------------

*   [WatchData main](https://www.watchdata.io/)
    
*   [Raw Data](https://www.watchdata.io/raw-data)
    
*   [Structured data](https://www.watchdata.io/structured-data)
    
*   [Metrics for analysis](https://watchdata.notion.site/Metrics-for-analysis-98dea0a697764bc6ae51643828449dc9)
    
*   [For Miners](https://watchdata.notion.site/For-Miners-70367c9705ae482c90674d070eedea61)
    
*   [WatchData Twitter](https://twitter.com/Watchdata_web3)
    
*   [WatchData Discord](https://discord.com/invite/TZRJbZ6bdn)
    
*   [WatchData Docs](https://docs.watchdata.io/introduction/welcome-to-watchdata-docs)

---

*Originally published on [WatchData](https://paragraph.com/@gr0wth/how-can-i-get-transfers-using-watch-gettransfersbyaddress)*
