Aztec Protocol
The multi-purpose virtual currency of the future
// Node.js ile örnek
const fetch = require('node-fetch');
// Covalent API Anahtarınızı girin:
const API_KEY = 'YOUR_COVALENT_API_KEY';
// BSC için chain_id = 56
const walletAddress = '0xAA129134F1F0fb051fae487f3a92481808BD83b6';
const url = `https://api.covalenthq.com/v1/56/address/${walletAddress}/balances_v2/?key=${API_KEY}`;
fetch(url)
.then(res => res.json())
.then(data => {
console.log(data);
// data içinden "items" alanını inceleyerek token bakiyeleri vb. görebilirsiniz
})
.catch(err => console.error(err));