This SDK should ONLY be used server side.
This package requires a secret key. As such, it is intended to be used in a server-side environment. Exposing your secret key is a security risk.
Basta Admin SDK is a specialized toolkit, designed with the purpose of facilitating the management and execution of Basta auctions. It allows users to perform advanced operations with ease, enhancing the efficiency of your auction-related tasks.
npm install @bastaai/basta-admin-js
import { initBasta } from '@bastaai/basta-admin-js';
const basta = initBasta({ accountId: 'accountId', secretKey: 'secretKey' });
Navigate to the Basta Admin portal to create a secret key and aquire the account id.
All currency amounts follow the ISO 4217 standard. See here https://en.wikipedia.org/wiki/ISO_4217.