import {
  __esm,
  __objRest
} from "./chunk-OBKEW4AQ.mjs";

// src/resources/wallets/custodial.ts
function createCustodialWalletsResource(instanceId, client) {
  return {
    list(receiver_id) {
      return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets`);
    },
    get({
      receiver_id,
      id
    }) {
      return client.get(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
    },
    create(_a) {
      var _b = _a, {
        receiver_id
      } = _b, data = __objRest(_b, [
        "receiver_id"
      ]);
      return client.post(`/instances/${instanceId}/receivers/${receiver_id}/wallets`, data);
    },
    getBalance({
      receiver_id,
      id
    }) {
      return client.get(
        `/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}/balance`
      );
    },
    delete({
      receiver_id,
      id
    }) {
      return client.delete(`/instances/${instanceId}/receivers/${receiver_id}/wallets/${id}`);
    }
  };
}
var init_custodial = __esm({
  "src/resources/wallets/custodial.ts"() {
  }
});

export {
  createCustodialWalletsResource,
  init_custodial
};
