Get Escrows Financial
Balances, deposits, releases and fees for up to 50 escrows via GET /escrows/financial.
Last updated
import axios from "axios";
const http = axios.create({
baseURL: "https://beta.api.trustlesswork.com",
timeout: 10000,
headers: {
"Content-Type": "application/json",
"x-api-key": your_api_key,
},
});
export const useExample = async () => {
const contractIds = [
"CCR6HLU3LQMXOESNA6TOS2RZKGEBWQG3EN5FMZNC43RVXZWTTDCZ...",
"CCA7WTCVCQ5JPKNIFSHPSJLJ3FJ3GKPNEVAIHP6T..."
];
const params = new URLSearchParams();
contractIds.forEach(id => params.append("contractIds", id));
const response = await http.get(`/escrows/financial?${params.toString()}`);
return response.data;
}