Constructor
Construct an SDK object to access the methods.
The constructor requires an Auth object.
constructor(auth) {
if (!(auth instanceof Auth)) {
throw new Error(
errorLogger({
location: ERROR_LOG.location.SDK_constructor,
message: ERROR_LOG.message.invalid_auth_instance,
}),
);
}
this.#auth = auth;
this.#apiPath = `/networks/${this.#auth.getChainId()}`;
this.#httpClient = new HttpService(NFT_API_URL, this.#auth.getApiAuth());
}
Last modified 1mo ago
Copy link