Description
TronAdapter.getBalance() uses BlockchainApiController.getAddressBalance() which routes the request through rpc.walletconnect.org/v1?chainId=tron:0x94a9059e. This endpoint returns 503 Service Unavailable because the WalletConnect RPC proxy does not support TRON networks.
File: packages/adapters/tron/src/adapter.ts — getBalance() method
Expected Behavior
getBalance() should return the actual TRX balance. Either:
- The RPC proxy should support TRON, or
TronAdapter.getBalance() should use the TRON fullnode HTTP API directly (similar to how TronConnectConnector.sendTransaction() already uses fullnode URLs)
Reproduction
- Create AppKit with
TronAdapter
- Connect TronLink
- Observe console:
POST https://rpc.walletconnect.org/v1?chainId=tron:0x94a9059e&projectId=... 503 (Service Unavailable)
- Balance in the AppKit modal shows 0 TRX
Impact
- Balance always shows 0 in AppKit modal/account view
- Console error spam on every connection and network switch
[TronAdapter] getBalance error: Error: HTTP status code: 503 logged
Workaround
Override tronAdapter.getBalance after construction to use tronWeb.trx.getBalance() directly:
tronAdapter.getBalance = async (params) => {
const balance = await tronWeb.trx.getBalance(params.address);
return { balance: tronWeb.fromSun(balance).toString(), symbol: 'TRX' };
};
Environment
@reown/appkit: 1.8.19
@reown/appkit-adapter-tron: 1.8.19
- Vanilla JS (Angular)
Description
TronAdapter.getBalance()usesBlockchainApiController.getAddressBalance()which routes the request throughrpc.walletconnect.org/v1?chainId=tron:0x94a9059e. This endpoint returns 503 Service Unavailable because the WalletConnect RPC proxy does not support TRON networks.File:
packages/adapters/tron/src/adapter.ts—getBalance()methodExpected Behavior
getBalance()should return the actual TRX balance. Either:TronAdapter.getBalance()should use the TRON fullnode HTTP API directly (similar to howTronConnectConnector.sendTransaction()already uses fullnode URLs)Reproduction
TronAdapterPOST https://rpc.walletconnect.org/v1?chainId=tron:0x94a9059e&projectId=... 503 (Service Unavailable)Impact
[TronAdapter] getBalance error: Error: HTTP status code: 503loggedWorkaround
Override
tronAdapter.getBalanceafter construction to usetronWeb.trx.getBalance()directly:Environment
@reown/appkit: 1.8.19@reown/appkit-adapter-tron: 1.8.19