PHP WebShell

Текущая директория: /var/www/bitcardoApp/config

Просмотр файла: bitgo_config.php

<?php
// /config/bitgo_config.php

define('BITGO_ACCESS_TOKEN', 'v2x684ccb535d69ea3fdcdf8657164bba3796f71d61f5ec0a0065bc202e637cce24');
define('BITGO_ENTERPRISE_ID', '69160fbdcddce9e68c4ff42d943f37f4');
define('BITGO_WALLET_PASSPHRASE', 'CorrectHorse!BatteryStaple#2025-Blue-Mango$Rare7');

// Your local Express (for coins supported by your Express build)
define('BITGO_API_BASE_URL', 'http://127.0.0.1:3090/api/v2');

// BitGo Cloud (prod) — use this for SOL and for backfill if Express cannot see wallets
define('BITGO_CLOUD_BASE_URL', 'https://app.bitgo.com/api/v2');

// Webhook secret you generated
define('BITGO_WEBHOOK_SECRET', '671bb8a4e3e9dda9ea31184dcf648dd893b45de36ec602038aeb282b17e0d05e');

/**
 * Per-coin confirmation thresholds
 */
function bitgo_confirm_map(): array {
  return [
    'BTC' => 3,
    'ETH' => 12,
    'SOL' => 32,
    'TRX' => 19,
  ];
}

/**
 * Optional per-token overrides (else token inherits network conf)
 */
function bitgo_token_confirm_map(): array {
  return [
    // 'USDT' => 12,
  ];
}

function bitgo_required_confirmations(string $network, string $asset): int {
  $networkU = strtoupper($network);
  $assetU   = strtoupper($asset);

  $tokenMap = bitgo_token_confirm_map();
  if (isset($tokenMap[$assetU])) return (int)$tokenMap[$assetU];

  $confMap = bitgo_confirm_map();
  if (isset($confMap[$assetU])) return (int)$confMap[$assetU];

  return (int)($confMap[$networkU] ?? 1);
}

/**
 * Choose API base per coin.
 * SOL must use cloud because your Express does not support SOL.
 */
function bitgo_base_url_for_coin(string $coinUpper): string {
  return (strtoupper($coinUpper) === 'SOL') ? BITGO_CLOUD_BASE_URL : BITGO_API_BASE_URL;
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!