Comment obtenir le solde d'un portefeuille
Quel est le solde CHZ d’un portefeuille ?
Comment faire avec Moralis
import Moralis from "moralis";
const runApp = async() => {
await Moralis.start({
apiKey: "YOUR_API_KEY",
// ...et toute autre configuration
});
const address = "0xYourWalletAddress";
const chain = "0x15b38", // Ceci est pour le réseau principal de Chiliz Chain.
// Pour Spicy Testnet, utilisez "0x15b32".
const response = await Moralis.EvmApi.balance.getNativeBalance({
address,
chain,
});
console.log(response.toJSON());
};
runApp();Comment faire avec Tatum
Comment faire avec thirdweb
Comment faire avec Nodit
Mis à jour
Ce contenu vous a-t-il été utile ?