Hi all!
I’m trying to send Rekey transaction by Dart algorand SDK and getting the error when I send raw transaction: {“message”:“At least one signature didn’t pass verification”}
My code:
try{
final params = await algorand.getSuggestedTransactionParams();
Address address = Address.fromAlgorandAddress(address: <SENDER>);
RawTransaction transaction = await (PaymentTransactionBuilder()
..sender = address
..receiver = address
..amount = Algo.toMicroAlgos(0)
..rekeyTo = <REKEY_TO_ADDRESS>
..suggestedParams = params).build();
final signedTx = await transaction.sign(<SENDER_OBJECT>!);
await algorand.sendTransaction(signedTx);
print("success");
} on AlgorandException catch (ex) {
if(ex.cause is DioError){
print((ex.cause as DioError).response);
}
else{
print((ex).message);
}
}
The issue