Comment obtenir le solde d'un portefeuille ?
Quel est le solde d'un portefeuille ?
Comment le faire avec Moralis ?
import Moralis from "moralis";
const runApp = async() => {
await Moralis.start({
apiKey: "YOUR_API_KEY",
// ...and any other configuration
});
const address = "0x26fcbd3afebbe28d0a8684f790c48368d21665b5";
const chain = "0x15b38", // This is for Chiliz Chain Mainnet.
// For Spicy Testnet, use "0x15b32".
const response = await Moralis.EvmApi.balance.getNativeBalance({
address,
chain,
});
console.log(response.toJSON());
};
runApp();Comment le faire avec Tatum ?
Comment le faire avec thirdweb ?
Mis à jour
Ce contenu vous a-t-il été utile ?