const vault = 'CAQ6PAG4X6L7LJVGOKSQ6RU2LADWK4EQXRJGMUWL7SECS7LXUEQLM5U7';
async function withdraw(amount: number, user: string, apiClient: ApiClient, signerFunction: (tx: string) => string) {
const { xdr: unsignedTx } = await apiClient.postData("withdraw", vault, {
amounts: [amount],
caller: user
});
// This should be done by implementer
const signedTx = signerFunction(unsignedTx);
const response = await apiClient.send(signedTx);
return response;
}