pre Image Hash
Build a PreImageTx for a transaction.
The PreImageTx contains all data needed for MPC signing:
preSigningOutput: WalletCore PreSigningOutput protobuf (contains data_hash to sign)
signingInputData: Original SigningInput protobuf bytes (for compileWithSignatures)
network: The network for transaction compilation
This method fetches the nonce internally using the RPC client.
Usage from Flutter:
final preImageTx = await BlockchainSdkService.preImageHash(tx, fromAddress, fee);
final signedTx = await BlockchainSdkService.sign(preImageTx, groupId);Content copied to clipboard
Return
Result containing PreImageTx, or an error
Parameters
tx
The transaction to build
from
The sender's address
fee
The fee to use for the transaction