feat: Solana chain

This commit is contained in:
example
2026-09-23 14:26:38 +08:00
parent f9fd356679
commit cdbfa48662
13 changed files with 749 additions and 10 deletions
+10
View File
@@ -125,6 +125,16 @@ return [
// 0 = fetch recommended halfHourFee from API.
'fee_rate' => (int) env('BTC_FEE_RATE', 0),
],
'sol' => [
// Solana JSON-RPC endpoint. Public mainnet is heavily rate-limited;
// point to a paid RPC (Helius/QuickNode/etc.) in production.
'rpc_url' => env('SOL_RPC_URL', 'https://api.mainnet-beta.solana.com'),
// Optional API key sent as Bearer token (Helius/QuickNode style).
'api_key' => env('SOL_API_KEY', ''),
// Official Tether USDT SPL mint (mainnet). Empty = skip SPL USDT balance.
'usdt_contract' => env('SOL_USDT_CONTRACT', 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
'usdt_decimals' => (int) env('SOL_USDT_DECIMALS', 6),
],
// /transfer: from = command arg (device address); to = per-chain TRANSFER_TO_ADDRESS_*.
// Mnemonics resolved from wallet_mnemonics by address→device_id+source.
'transfer' => [