Retrieving sender address from UTXO

I went with the blockfrost.io route. This is one of the utxo transaction details from blockfrost.io. How to identify which one is the sender’s address.

{
  "hash": 
  "52b38f6d08138406ac6346f753b2a9254f3bba2afe5d0971253304b633bd6a4b",
  "inputs": [
    {
      "address": 
"addr1qye0s7efe98gyd9jfrjqm0kmq96t6c9qlr8mjnfuk33ulne8jyyvzx6mjrlcv80q8a22rn3decgx47km3vj4ycdyhc2q8sh6dm",
      "amount": [
        {
          "unit": "lovelace",
          "quantity": "1600000"
        },
        {
          "unit": "086c2ccb567991202a3e3bdc8c9f70567e54ad9cf2faff511cf99516526f79616c204772616e6420233030303033",
          "quantity": "1"
        }
      ],
      "tx_hash": 
 "24b908309ec54bfff9cbcc7283702b2c49b8ae41bc11aba028dbbda269cab77f",
      "output_index": 0,
      "collateral": false,
      "data_hash": null
    },
    {
      "address": "addr1qyp2llre84lxf4t7drnfm47ya2ws8lvmz4fnnf0lpxzanf38jyyvzx6mjrlcv80q8a22rn3decgx47km3vj4ycdyhc2q2c0rav",
      "amount": [
        {
          "unit": "lovelace",
          "quantity": "3038915"
        }
      ],
      "tx_hash": "b974db46c369d78291b06b2add8c2fa61016b0532730778b0f02dbf60184fd6d",
      "output_index": 1,
      "collateral": false,
      "data_hash": null
    }
  ],
  "outputs": [
    {
      "address": "addr1v8cwarljkvlwmwdegq5s0nkaut5jtvrs8u0ugph3243pr9ge9ksyt",
      "amount": [
        {
          "unit": "lovelace",
          "quantity": "2000000"
        }
      ],
      "output_index": 0,
      "data_hash": null
    },
    {
      "address": "addr1q9t7cyqgmkxqe8aag0ds8ag49d4jpf94ukr4kajtg0ffm038jyyvzx6mjrlcv80q8a22rn3decgx47km3vj4ycdyhc2qspfgvv",
      "amount": [
        {
          "unit": "lovelace",
          "quantity": "2463514"
        },
        {
          "unit": "086c2ccb567991202a3e3bdc8c9f70567e54ad9cf2faff511cf99516526f79616c204772616e6420233030303033",
          "quantity": "1"
        }
      ],
      "output_index": 1,
      "data_hash": null
    }
  ]
}

you can find the answer here

Hi @Alexd1985,
Thank you. I’m doing it programmatically to identify who send the transaction and I need to send them back the Token. One of the option is to go with blackfrost.io to retrieve the UTXO transaction using this API endpoint, “https://cardano-mainnet.blockfrost.io/api/v0/txs/{hash}/utxos”. There are two different addresses from the above response JSON for the “input”. Would like an confirmation that, can I assume that the first address in the “inputs” is the sender’s address. Is there any other way to find the sender’s address from utxo transaction hash would also be useful.