@interest-protocol/vortex-sdk 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -39748,7 +39748,7 @@ class VortexAPI {
39748
39748
  async executeTransaction(args) {
39749
39749
  const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_post).call(this, '/api/v1/transactions', {
39750
39750
  txBytes: args.txBytes,
39751
- });
39751
+ }, args.apiKey);
39752
39752
  __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
39753
39753
  return response;
39754
39754
  }
@@ -39766,11 +39766,12 @@ _VortexAPI_apiUrl = new WeakMap(), _VortexAPI_instances = new WeakSet(), _Vortex
39766
39766
  },
39767
39767
  });
39768
39768
  return response.json();
39769
- }, _VortexAPI_post = async function _VortexAPI_post(path, body) {
39769
+ }, _VortexAPI_post = async function _VortexAPI_post(path, body, apiKey) {
39770
39770
  const response = await fetch(`${__classPrivateFieldGet(this, _VortexAPI_apiUrl, "f")}${path}`, {
39771
39771
  method: 'POST',
39772
39772
  headers: {
39773
39773
  'Content-Type': 'application/json',
39774
+ 'x-api-key': apiKey ?? '',
39774
39775
  },
39775
39776
  body: JSON.stringify(body),
39776
39777
  });