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
:
Parameter | Required | Description |
---|---|---|
walletPassword | true | The password of the wallet. |
batchSize | false | The number of transactions to scan in each batch. |
concurrency | false | The number of concurrent requests. |
shieldedAddresses | false | 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
:
Parameter | Required | Description |
---|---|---|
resetToId | false | The transaction ID to reset to. |
shieldedAddresses | false | 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
:
Parameter | Required | Description |
---|---|---|
withSpent | false | Whether to include spent transactions. |
shieldedAddresses | false | The list of shielded addresses to scan. |
chainIds | false | The list of chain IDs to scan. |
assetSymbols | false | The list of asset symbols to scan. |
contractAddresses | false | The list of contract addresses to scan. |
bridgeTypes | false | 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
:
Parameter | Required | Description |
---|---|---|
shieldedAddresses | false | 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
:
Parameter | Required | Description |
---|---|---|
walletPassword | true | The password of the wallet. |
chains | true | The list of chain import options. |
queryTimeoutMs | false | 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
:
Parameter | Required | Description |
---|---|---|
walletPassword | true | The password of the wallet. |
concurrency | false | The number of concurrent requests. |