Skip to main content

Scanner

Mystiko Scanner Related APIs.

Scan

Scan related transactions.

import 'package:mystiko_flutter/mystiko_flutter.dart';

MystikoScannerApi api = await Mystiko.mystikoScannerApi();
Response<ScannerScanResult, ScannerError> response = api.scan(ScannerScanOptions());

The parameter list for ScannerScanOptions:

ParameterRequiredDescription
walletPasswordtrue
The password of the wallet.
batchSizefalse
The number of transactions to scan in each batch.
concurrencyfalse
The number of concurrent requests.
shieldedAddressesfalse
The list of shielded addresses to scan.

Reset

Scanner reset.

import 'package:mystiko_flutter/mystiko_flutter.dart';

MystikoScannerApi api = await Mystiko.mystikoScannerApi();
Response<ScannerResetResult, ScannerError> response = api.reset(ScannerResetOptions());

The parameter list for ScannerResetOptions:

ParameterRequiredDescription
resetToIdfalse
The transaction ID to reset to.
shieldedAddressesfalse
The list of shielded addresses to reset.

Balance

Scan balance.

import 'package:mystiko_flutter/mystiko_flutter.dart';

MystikoScannerApi api = await Mystiko.mystikoScannerApi();
Response<BalanceResult, ScannerError> response = api.balance(BalanceOptions());

The parameter list for BalanceOptions:

ParameterRequiredDescription
withSpentfalse
Whether to include spent transactions.
shieldedAddressesfalse
The list of shielded addresses to scan.
chainIdsfalse
The list of chain IDs to scan.
assetSymbolsfalse
The list of asset symbols to scan.
contractAddressesfalse
The list of contract addresses to scan.
bridgeTypesfalse
The list of bridge types to scan.

Assets

Scan assets.

import 'package:mystiko_flutter/mystiko_flutter.dart';

MystikoScannerApi api = await Mystiko.mystikoScannerApi();
Response<List<AssetsByChain>, ScannerError> response = api.assets(AssetsOptions());

The parameter list for AssetsOptions:

ParameterRequiredDescription
shieldedAddressesfalse
The list of shielded addresses to scan.

ChainAssets

Scan assets by chain id.

import 'package:mystiko_flutter/mystiko_flutter.dart';

MystikoScannerApi api = await Mystiko.mystikoScannerApi();
Response<AssetsByChain, ScannerError> response = api.chainAssets(1, AssetsOptions());

ImportAssets

Import assets.

import 'package:mystiko_flutter/mystiko_flutter.dart';

MystikoScannerApi api = await Mystiko.mystikoScannerApi();
Response<AssetImportResult, ScannerError> response = api.importAssets(AssetImportOptions());

The parameter list for AssetImportOptions:

ParameterRequiredDescription
walletPasswordtrue
The password of the wallet.
chainstrue
The list of chain import options.
queryTimeoutMsfalse
The query timeout in milliseconds.

Sync

Scanner sync.

import 'package:mystiko_flutter/mystiko_flutter.dart';

MystikoScannerApi api = await Mystiko.mystikoScannerApi();
Response<BalanceResult, ScannerError> response = api.sync(ScannerSyncOptions());

The parameter list for ScannerSyncOptions:

ParameterRequiredDescription
walletPasswordtrue
The password of the wallet.
concurrencyfalse
The number of concurrent requests.