Pobieranie salda portfela
Pobierz saldo CHZ i tokenów dla portfela na Chiliz Chain używając Moralis Wallet API, z przykładami kodu dla pojedynczych i wielu zasobów.
Czym jest saldo CHZ portfela?
Jak to zrobić z Moralis
import Moralis from "moralis";
const runApp = async() => {
await Moralis.start({
apiKey: "YOUR_API_KEY",
// ...and any other configuration
});
const address = "0xYourWalletAddress";
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();Jak to zrobić z Tatum
Jak to zrobić z thirdweb
Jak to zrobić z Nodit
Ostatnia aktualizacja
Czy to było pomocne?