useGetMultipleEscrowBalances
Returns all the information of an escrow requested through the contractId.
Usage
This custom hook exposes a mutation function to get the balances that you are looking obtain.
Description of Return Values
balances
The balances you are looking to obtain.isPending
A boolean status flag indicating whether the mutation is currently in progress. Useful for showing loaders or disabling UI elements during the process.isError
A boolean status flag that becomestrue
if the mutation fails.isSuccess
A boolean status flag that becomestrue
once the mutation completes successfully.
Mutation Function
getMultipleBalances
This is the main mutation function. Internally, it wrapsmutate
ormutateAsync
and is responsible for building and returning data based on the provided payload.
Argument:
GetBalanceParams
: An object containing the required fields to get the balances.
Return Value:
balances
: The balances that you are looking for.
Usage ExampleForm
Last updated
Was this helpful?