UNPKG

@magiceden/magiceden-sdk

Version:

A TypeScript SDK for interacting with Magic Eden's API across multiple chains.

17 lines (16 loc) 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseApiClient = void 0; const apiManager_1 = require("../utils/apiManager"); /** * Base class for API clients with common implementation * T is the type of operations enum used by the specific API client */ class BaseApiClient { constructor(options) { this.chain = options.chain; // Initialize API manager with appropriate endpoint this.api = new apiManager_1.ApiManager(this.getBaseUrl(), options); } } exports.BaseApiClient = BaseApiClient;