reaster / cardano_wallet_sdk

Targeting Flutter apps, the Cardano Wallet SDK is a high-level Dart library for managing cryptocurrency accounts & executing transactions on the blockchain.
Apache License 2.0
38 stars 18 forks source link

Signing transaction #1

Closed vlsilver closed 2 years ago

vlsilver commented 2 years ago

This library does not support signing transactions yet ? I have read the implementation of the sendAda method:

@override Future<Result<RawTransaction, String>> sendAda( {required ShelleyAddress toAddress, required int lovelaceAmount}) async { if (lovelaceAmount > balance) { return Err('insufficient balance'); } if (toAddress.addressType != AddressType.Base) { return Err('only base shelley addresses currently supported'); } if (toAddress.hrp != 'addr' && toAddress.hrp != 'addr_test') { return Err("not a valid shelley external addresses, expecting 'addr' or 'addr_test' prefix"); } final builder = TransactionBuilder().send(shelleyAddress: toAddress, lovelace: lovelaceAmount); //TODO calculate, fee, make change, sign and send return Err('not yet implmented'); }

reaster commented 2 years ago

Yes. Sorry, the docs are a little ahead of the code. The builder and the blockfrost publish code need a few more days to push this over the finish line. Check back on Monday.

vlsilver commented 2 years ago

Thanks a lot . I am still waiting for a resolution from you for this issue.

reaster commented 2 years ago

Transaction submits now work!