For the complete documentation index, see llms.txt. This page is also available as Markdown.

useGetEscrowsFromIndexerBySigner

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 { useGetEscrowsFromIndexerBySigner } from "@trustless-work/escrow/hooks";
import { GetEscrowsFromIndexerBySignerParams} from "@trustless-work/escrow/types";

/*
 *  useGetEscrowsFromIndexerBySigner
*/
const { getEscrowsBySigner } = useGetEscrowsFromIndexerBySigner();

/* 
 * It returns the escrows that you are looking for
 * payload should be of type `GetEscrowsFromIndexerBySignerParams`
*/
await getEscrowsBySigner(payload);

Function

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

Argument:

GetEscrowsFromIndexerBySignerParams: An object containing the required fields to get the escrows by signer.

Get Escrows by Signer

Return Value:

escrows: The escrows that you are looking for.


Usage ExampleForm

Last updated