Вывод

Получение токена комиссии для вывода сиротской транзакции

Вывод

POSThttps://ocp.payonchain.org/api-gateway/orphan-deposits/withdrawal
Header parameters
Body
tokenstring

Токена вывода

addressstring

Адрес вывода

commentstringnull

Комментарий к выводу

webhookUrlstring

URL для отправки вебхука о выводе

Response
Body
success*boolean

Признак успешности запроса

response*OrphanResponse (object)
Request
const response = await fetch('https://ocp.payonchain.org/api-gateway/orphan-deposits/withdrawal', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "id": "5cbf7135-d75a-4360-a9c4-8de7bf516baa",
    "organizationId": "c7c742f6-5de5-425c-8058-871ce839778d",
    "orderId": "bc9a6cbd-2513-47bd-9d77-06de8c53b1c7",
    "stage": "DEPOSIT",
    "status": "PROCESSED",
    "currency": "BNB",
    "network": "ethereum",
    "amount": "0.00612",
    "canWithdrawal": false,
    "inTransaction": {
      "addressType": "PAY_IN",
      "addressId": "cb08eaf2-b9e0-4d20-b470-eda7c9ac5a70",
      "address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
      "txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
      "amount": "0.00612",
      "status": "processed",
      "createdAt": "2024-04-15T10:50:48.435Z"
    },
    "outTransaction": {
      "address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
      "txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
      "amount": "0.00612",
      "status": "processed",
      "feeAmount": "0.000090942",
      "feeAmountUSD": "0.03",
      "withdrawalId": "8fa5e108-5d14-4de0-bcd1-056a43bb7aae",
      "createdAt": "2024-04-15T10:50:48.435Z"
    },
    "createdAt": "2024-04-15T10:50:48.435Z"
  }
}

Last updated