Last updated
Last updated
• Docs
/ / EscrowUtils
Utility class for escrow-related operations.
Using private key(backend)
Returns
static
getEscrow(chainId
,escrowAddress
):Promise
<EscrowData
>
This function returns the escrow data for a given address.
This uses Subgraph
Input parameters
Parameters
• chainId: ChainId
Network in which the escrow has been deployed
• escrowAddress: string
Address of the escrow
Returns
Promise
<EscrowData
>
Escrow data
Code example
Source
static
getEscrows(filter
):Promise
<EscrowData
[]>
This function returns an array of escrows based on the specified filter parameters.
Input parameters
Parameters
• filter: IEscrowsFilter
Filter parameters.
Returns
Promise
<EscrowData
[]>
List of escrows that match the filter.
Code example
Source
new EscrowUtils():