Blockchain Sdk Service
Main blockchain service exposed to Flutter.
This service provides a unified API for blockchain operations across different chain families (EVM, UTXO in the future). It automatically routes operations to the appropriate chain-specific service based on the network type.
This service is intended to be accessed via BlockchainKitSdk.blockchainService.
Usage from Flutter:
// Create asset and transaction
final ethAsset = NativeCoin(network: ethereumNetwork);
final tx = Transfer(asset: ethAsset, amount: BigInt.from(100000000), to: '0x...');
// Calculate fees
final fees = await BlockchainSdkService.calculateFees(tx, fromAddress);
// Get balance
final balance = await BlockchainSdkService.getBalance(ethAsset, address);
// Get transaction status
final status = await BlockchainSdkService.getTransactionStatus(network, txHash);Functions
Calculate the fee for a transaction.
Get the wallet address for a given asset and MPC group.
Get the balance of an asset for a given address.
Get the status of a transaction by its hash.
Build a PreImageTx for a transaction.
Broadcast a signed transaction to the network.
Sign a transaction using threshold MPC with a hardware device via Bluetooth.
Stop polling all transactions.
Stop polling a specific transaction.