ruạṛ
import dotenv from 'dotenv'; import { getTokenInfo } from './src/utils/token-info.js'; dotenv.config(); async function fetchTokenInfo(currency, issuer) { try { const tokenInfo = await getTokenInfo(currency, issuer); console.log(JSON.stringify({ success: true, data: tokenInfo })); } catch (error) { console.error(JSON.stringify({ success: false, error: error.message })); } finally { const { cleanup } = await import('/home/adaptiv2/thecomputerdoctor.co.nz/darkshib/shib-bot/src/utils/token-info.js'); await cleanup(); } } const [,,currencyArg, issuerArg] = process.argv; if (!currencyArg || !issuerArg) { console.error(JSON.stringify({ success: false, error: 'Currency and issuer required.' })); process.exit(1); } fetchTokenInfo(currencyArg, issuerArg);
cải xoăn