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

// src/resources/wallets/blockchain.ts
function createBlockchainWalletsResource(client) {
  return {
    list({
      instanceId,
      receiverId
    }) {
      return client.get(
        `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets`
      );
    },
    create(_a) {
      var _b = _a, {
        instanceId
      } = _b, data = __objRest(_b, [
        "instanceId"
      ]);
      return client.post(`/instances/${instanceId}/blockchain-wallets`, data);
    },
    getWalletMessage({
      receiverId,
      instanceId
    }) {
      return client.get(
        `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/sign-message`
      );
    },
    get({
      instanceId,
      receiverId,
      id
    }) {
      return client.get(
        `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
      );
    },
    delete({
      instanceId,
      receiverId,
      id
    }) {
      return client.delete(
        `/instances/${instanceId}/receivers/${receiverId}/blockchain-wallets/${id}`
      );
    },
    createAssetTrustline(_c) {
      var _d = _c, {
        instanceId
      } = _d, data = __objRest(_d, [
        "instanceId"
      ]);
      return client.post(`/instances/${instanceId}/create-asset-trustline`, data);
    },
    mintUsdbStellar(_e) {
      var _f = _e, {
        instanceId
      } = _f, data = __objRest(_f, [
        "instanceId"
      ]);
      return client.post(`/instances/${instanceId}/mint-usdb-stellar`, data);
    }
  };
}
var init_blockchain = __esm({
  "src/resources/wallets/blockchain.ts"() {
  }
});

export {
  createBlockchainWalletsResource,
  init_blockchain
};
