Get Multiple Escrow Balance

Get the balance of multiple escrows.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Open API

get
Query parameters
signerstringRequired

Signer of the transaction

Responses
200
The transaction has been successfully sent to the Stellar network
application/json
get
GET /escrow/multi-release/get-multiple-escrow-balance?signer=text&addresses=undefined HTTP/1.1
Host: 
Accept: */*
[
  {
    "address": "GAWVVSA..",
    "balance": 30
  },
  {
    "address": "GAWVCG3..",
    "balance": 10
  }
]

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 (signer: string, addresses: string[]) => {
  const response = await http.get("/escrow/multi-release/get-multiple-escrow-balance", {
    params: { addresses, signer },
  });

  return response;
};

Last updated

Was this helpful?