useGetMultipleEscrowBalances

Returns all the information of an escrow requested through the contractId.

Usage

This custom hook exposes a function to get the balances that you are looking obtain.

import { useGetMultipleEscrowBalances } from "@trustless-work/escrow/hooks";
import { GetBalanceParams } from "@trustless-work/escrow/types";

/*
 *  useGetEscrow
*/
const { getMultipleBalances } = useGetMultipleEscrowBalances();

/* 
 * It returns the balances of the escrows
 * payload should be of type `GetBalanceParams`
*/
await getMultipleBalances(payload);

Function

  • getMultipleBalances Responsible for building and returning data based on the provided payload.

Argument:

GetBalanceParams : An object containing the required fields to get the balances.

Get Balances

Return Value:

balances: The balances that you are looking for.


Usage ExampleForm

Last updated

Was this helpful?