sign
Sign a transaction using MPC.
This method takes the PreImageTx from preImageHash and performs:
Extract data_hash from preSigningOutput
Load MPC credentials from storage using groupId
Presign and sign using MPC
Compile the signed transaction using signingInputData and WalletCore
The returned signed transaction can then be broadcast using sendTransaction.
Usage from Flutter:
final preImageTx = await sdk.blockchainService.preImageHash(tx, from, fee);
final signedTx = await sdk.blockchainService.sign(preImageTx, groupId);
final broadcast = await sdk.blockchainService.sendTransaction(network, signedTx);Content copied to clipboard
Return
Result containing the signed transaction hex string
Parameters
pre Image Tx
The PreImageTx from preImageHash
group Id
The MPC group ID for credential lookup