circle-check
Our docs are AI-ready. Use them as context for any AI, or ask questions via the search bar.

tableuseGetEscrowFromIndexerByContractIds

Returns the escrows that you're looking for. It comes from our indexer (database) synchronizer with the blockchain.

Usage

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

import { useGetEscrowFromIndexerByContractIds } from "@trustless-work/escrow/hooks";
import { GetEscrowFromIndexerByContractIdsParams } from "@trustless-work/escrow/types";

/*
 *  useGetEscrowFromIndexerByContractIds
*/
const { getEscrowByContractIds } = useGetEscrowFromIndexerByContractIds();

/* 
 * It returns the escrow that you are looking for
 * payload should be of type `GetEscrowFromIndexerByContractIdsParams`
*/
await getEscrowByContractIds(payload);

Function

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

Argument:

GetEscrowFromIndexerByContractIdsParams: An object containing the required fields to get the escrows.

tableGet Escrows by Contract IDchevron-right

Return Value:

escrows: The escrows that you are looking for.


Usage ExampleForm

Last updated

Was this helpful?