I am facing an issue for fetching latest balance in TRON Shasta Network in Sandbox environment.
Fetching latest balance for TRON in Fireblocks resulted :
{
id: ‘TRX_TEST’,
total: ‘49.8164’,
balance: ‘49.8164’,
lockedAmount: ‘0’,
available: ‘49.8164’,
pending: ‘0’,
frozen: ‘0’,
staked: ‘0’,
blockHeight: ‘56821922’,
blockHash: ‘00000000036308a2aed64ef39dcb109986d967b81a9406411ab23e7f00695b39’
}
on chain the balance should be 30.74924 TRX and blockHeight to be 56850413 for this wallet : TBBCfojXkHM4Hg43g6E9XCn5Np3NUsYQLW or Treasury_Vault-1735233178997 (vault id 8).
Please advise if the same behavior is expected for production environment, and if so, how often it will fetch for latest block ?
The balance update will be reflected instantly when our internal service queries the blockchain. But I see a balance discrepancy for TRX_TEST on vault ‘8Treasury_Vault-1735233178997’. It’s fixed now.
You may consider calling our API endpoint to refresh the vault balance before triggering the Get Balance endpoint to retrieve the current asset balance.
Also, I would like to share that our webhook V2 is now live for the Sandbox environment. It includes the vault_account.asset.balance_updated event, which triggers a notification whenever the asset balance of a vault account is updated.