useGetEscrow
Returns all the information of an escrow requested through the contractId.
Usage
This custom hook exposes a mutation function to get the escrow that you are looking obtain.
Description of Return Values
escrow
The escrow 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
getEscrow
This is the main mutation function. Internally, it wrapsmutate
ormutateAsync
and is responsible for building and returning data based on the provided payload.
Argument:
GetEscrowParams
: An object containing the required fields to get the escrow.
Return Value:
escrow
: The escrow that you are looking for.
Usage Example
Last updated
Was this helpful?