> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oppiwallet.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tüm İşlemler

> Bu API, tüm işlemleri durumlarıyla birlikte almak için kullanılır. Durumlar: 0=Beklemede, 1=Tamamlandı, 2=Başarısız

## Kimlik Doğrulama

<ParamField header="signatureToken" type="string" required>
  API kimlik doğrulaması için bir JWT token gereklidir.
  Boş bir dize kullanarak <a href="/tr/authentication/generate-jwt-token">JWT Token Oluşturma</a> bölümünde açıklandığı gibi bir JWT token oluşturun.
</ParamField>

## Başlıklar (Headers)

<ParamField header="Content-Type" type="string" required>
  `application/json` olarak ayarlanmalıdır.
</ParamField>

## İstek

Bu uç nokta için bir istek gövdesi gerekli değildir.

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url https://doc-api.oppiwallet.com/api/v1/transactions \
    --header 'signatureToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
    --header 'Content-Type: application/json'
  ```

  ```javascript JavaScript theme={null}
  const axios = require('axios');

  let config = {
    method: 'get',
    maxBodyLength: Infinity,
    url: 'https://doc-api.oppiwallet.com/api/v1/transactions',
    headers: { 
      'signatureToken': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
      'Content-Type': 'application/json'
    }
  };

  axios.request(config)
    .then((response) => {
      console.log(JSON.stringify(response.data));
    })
    .catch((error) => {
      console.log(error);
    });
  ```

  ```python Python theme={null}
  import requests

  url = "https://doc-api.oppiwallet.com/api/v1/transactions"

  headers = {
      "signatureToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "Content-Type": "application/json"
  }

  response = requests.get(url, headers=headers)
  print(response.json())
  ```

  ```go Go theme={null}
  package main

  import (
      "fmt"
      "net/http"
      "io/ioutil"
  )

  func main() {
      url := "https://doc-api.oppiwallet.com/api/v1/transactions"

      req, _ := http.NewRequest("GET", url, nil)
      req.Header.Add("signatureToken", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
      req.Header.Add("Content-Type", "application/json")

      res, _ := http.DefaultClient.Do(req)
      defer res.Body.Close()
      body, _ := ioutil.ReadAll(res.Body)

      fmt.Println(string(body))
  }
  ```

  ```php PHP theme={null}
  <?php
  $curl = curl_init();

  curl_setopt_array($curl, [
    CURLOPT_URL => "https://doc-api.oppiwallet.com/api/v1/transactions",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
      "signatureToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "Content-Type: application/json"
    ],
  ]);

  $response = curl_exec($curl);
  $err = curl_error($curl);

  curl_close($curl);

  if ($err) {
    echo "cURL Error #:" . $err;
  } else {
    echo $response;
  }
  ?>
  ```
</RequestExample>

## Yanıt

Bir dizi işlem nesnesi döndürür.

<ResponseField name="transactionId" type="string" required>
  İşlem için benzersiz bir tanımlayıcı.
</ResponseField>

<ResponseField name="receiverAddress" type="string" required>
  Fonların gönderildiği adres.
</ResponseField>

<ResponseField name="depositAddress" type="string" required>
  Fonların yatırıldığı adres.
</ResponseField>

<ResponseField name="orderId" type="string" required>
  İşlem için sipariş kimliği referansı.
</ResponseField>

<ResponseField name="tag" type="string">
  İşlemle ilişkilendirilmiş etiket, varsa.
</ResponseField>

<ResponseField name="currency" type="string" required>
  İşlemde kullanılan kripto para birimi.
</ResponseField>

<ResponseField name="amount" type="string" required>
  İşlem miktarı.
</ResponseField>

<ResponseField name="callbackStatus" type="number" required>
  Geri çağırma durumu.
</ResponseField>

<ResponseField name="createdAt" type="string" required>
  İşlemin oluşturulduğu zaman damgası.
</ResponseField>

<ResponseField name="status" type="number" required>
  İşlemin durumu. 0=Beklemede, 1=Tamamlandı, 2=Başarısız
</ResponseField>

<ResponseExample>
  ```json 200 OK theme={null}
  [
    {
      "transactionId": "03ea5d69-9ebf-4bfc-9b77-3aec6a6784d6",
      "receiverAddress": "0xAB710B08A....E02421Ff9Ef231Ee212",
      "depositAddress": "0xd5350F580....2bC925a07091b443732",
      "orderId": "ORDER_1",
      "tag": "",
      "currency": "ETH",
      "amount": "0.01",
      "callbackStatus": 0,
      "createdAt": "2024-05-09T06:05:20.087Z",
      "status": 0
    }
  ]
  ```

  ```json 400 Bad Request theme={null}
  {
    "message": "Hata mesajı"
  }
  ```
</ResponseExample>
