Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.loveandpay.io/llms.txt

Use this file to discover all available pages before exploring further.

Список транзакций

curl -X GET "https://crypto.api.loveandpay.io/api/v1/transactions?page=1&pageSize=20" \
  -H "X-Api-Key: lc_ваш_ключ"

Query параметры

ПараметрТипПо умолчаниюОписание
pageinteger1Номер страницы
pageSizeinteger20Размер страницы
invoiceIduuidФильтр по счёту

Ответ

{
  "success": true,
  "data": {
    "items": [
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "invoiceId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
        "txHash": "ce1a930bc5bbfcd1127174070dc7aaa0fadc1c8f712e59ba354d068830dc49bb",
        "fromAddress": "TQaqeXyS14drW5CB7HRo87yLPZjNvbGs1q",
        "toAddress": "TDPWsYuCP8H5Q93Sk3yR3x5yEvPXSVjxJZ",
        "amount": 100.50,
        "currency": "USDT_TRC20",
        "network": "Tron",
        "status": "Confirmed",
        "confirmations": 25,
        "requiredConfirmations": 20,
        "createdAt": "2026-01-21T20:10:00Z",
        "confirmedAt": "2026-01-21T20:15:00Z"
      }
    ],
    "totalCount": 50,
    "page": 1,
    "pageSize": 20
  }
}

Получение транзакции по ID

curl -X GET "https://crypto.api.loveandpay.io/api/v1/transactions/{transactionId}" \
  -H "X-Api-Key: lc_ваш_ключ"

Ответ

{
  "success": true,
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "invoiceId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "txHash": "ce1a930bc5bbfcd1127174070dc7aaa0fadc1c8f712e59ba354d068830dc49bb",
    "fromAddress": "TQaqeXyS14drW5CB7HRo87yLPZjNvbGs1q",
    "toAddress": "TDPWsYuCP8H5Q93Sk3yR3x5yEvPXSVjxJZ",
    "amount": 100.50,
    "currency": "USDT_TRC20",
    "network": "Tron",
    "status": "Confirmed",
    "confirmations": 25,
    "requiredConfirmations": 20,
    "blockNumber": 12345678,
    "createdAt": "2026-01-21T20:10:00Z",
    "confirmedAt": "2026-01-21T20:15:00Z"
  }
}

Статусы транзакции

СтатусОписание
PendingОбнаружена, ожидает подтверждений
ConfirmedПодтверждена
FailedНеуспешная

Просмотр в блокчейн-эксплорере

По txHash вы можете проверить транзакцию в эксплорере:
СетьЭксплорер
Tronhttps://tronscan.org/#/transaction/{txHash}
Ethereumhttps://etherscan.io/tx/{txHash}
BSChttps://bscscan.com/tx/{txHash}