Overview
This section provides examples on how to initialize the Mystiko API, along with an introduction to the modules of the Mystiko API and descriptions of their methods, to help you integrate it more effectively into your app.
Initialization
import mystiko from '@mystikonetwork/browser'
try {
await mystiko.initialize({
isTestnet: false,
isStaging: false,
});
} catch (error) {
console.error('Error initializing Mystiko:', error);
throw error;
}
The API is divided into multiple modules, including: config
, wallet
, account
, asset
, deposit
, spend
, synchronizer
. You can obtain the corresponding API object for each module using the following methods:
mystiko must be initialized before using the API.
Modules
Links to sections on this page to view detailed method descriptions.
- Config: Configuration of Mystiko environment parameters.
- Wallet: Methods related to the Mystiko wallet.
- Account: Methods related to Mystiko accounts.
- Asset: Methods for managing asset.
- Deposit: Methods for completing user deposits.
- Spend: Methods for managing spending.
- Synchronizer: Synchronization methods.