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
contractIdstringRequiredExample:
ID (address) that identifies the escrow contract
CAZ6UQX7...
signerstringRequiredExample:
Address of the user signing the contract transaction
GSIGN...XYZ
Responses
200
Escrow Body...
application/json
400
Bad request
401
Unauthorized access
429
Too Many Requests
500
Possible errors:
- Escrow not found
- An unexpected error occurred
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?