useGetEscrowsFromIndexerByRole
Returns the escrows that you're looking for. It comes from our indexer (database) synchronizer with the blockchain.
Usage
import { useGetEscrowsFromIndexerByRole } from "@trustless-work/escrow/hooks";
import { GetEscrowsFromIndexerByRoleParams } from "@trustless-work/escrow/types";
/*
* useGetEscrowsFromIndexerByRole
*/
const { getEscrowsByRole } = useGetEscrowsFromIndexerByRole();
/*
* It returns the escrows that you are looking for
* payload should be of type `GetEscrowsFromIndexerByRoleParams`
*/
await getEscrowsByRole(payload);Function
Usage ExampleForm
Last updated
Was this helpful?