# Tron
Tronlink dapp (opens new window).
# Installed or not
const isSafePalInstalled = window.SafePalHook && window.tronWeb;
1
# tron_requestAccounts(request authorization to connect)
try {
await SafePalHook.request({ method: 'tron_requestAccounts' });
const address = SafePalHook.defaultAddress.base58;
const balance = await tronWeb.trx.getBalance(address);
} catch {}
1
2
3
4
5
2
3
4
5
# connected
window.tronWeb.ready;
1
# sendTransaction
SafePal wallet currently only supports the TriggerSmartContract method, please refer to:https://developers.tron.network/reference/tronweb-triggersmartcontract (opens new window)