Supercharge your DApp with SKYE Explorer's enterprise-grade infrastructure.
Get instant access to real-time and historical blockchain data. Built for scale, our Developer APIs power wallets, exchanges, data analytics platforms, and Web3 games.
const axios = require('axios');
async function getSbtcBalance(address) {
const url = `https://scan.skyeora.com/api`;
const params = {
module: 'account',
action: 'balance',
address: address,
apikey: process.env.SBTC_API_KEY
};
try {
const response = await axios.get(url, { params });
console.log('Balance:', response.data.result);
} catch (error) {
console.error(error);
}
}