Get Escrow

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

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Open API

get
Query parameters
contractIdstringRequired

ID (address) that identifies the escrow contract

Example: CAZ6UQX7...
signerstringRequired

Address of the user signing the contract transaction

Example: GSIGN...XYZ
Responses
200
Escrow Body...
application/json
get
GET /escrow/single-release/get-escrow?contractId=CAZ6UQX7...&signer=GSIGN...XYZ HTTP/1.1
Host: 
Accept: */*
{
  "status": "SUCCESS",
  "unsignedTransaction": "AAAAAgAAAAAtWsgedQ...."
}

Use Example:

import axios from "axios";

const http = axios.create({
  baseURL: "https://dev.api.trustlesswork.com",
  timeout: 10000,
  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer your_api_key`,
  },
});

export const useExample = async () => {

    const data = await http.get(
      "/escrow/single-release/get-escrow",
      {
        // body requested for the endpoint
      },
    ); 
  
    return data;
}

Last updated

Was this helpful?