Metrics
Check or Re-Sync your UTXO state
An essential part of managing a wallet is UTXO state management. The Relysia infrastructure is a native peer to peer system that continuously keeps track of its own UTXOs. Since we support classic addresses and transactions from external parties, we automatically run transaction listeners to always keep wallets in sync with the blockchain.
1
var parameters = { serviceId: 'optional',
2
walletID: 'optional',
3
}
4
5
const response = await relysia.metrics(parameters);
Copied!
You can force refresh the UTXO state by calling the metrics function
When refreshing the UTXO state less than 15 seconds after last transaction was submitted, it is likely that miners (such as TAAL) haven't indexed the current state. A force refresh would thus sync an out of date UTXO and it is therefore not advisable to regularly force refresh the UTXO state.
Copy link