cardano-python
cardano-python copied to clipboard
Implement new transaction handling available in `cardano-wallet` API
The unstable API is described here: https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Transactions-New
Our top-level API could consist of:
-
Wallet.transfer()acceptsbrodacast=Trueargument, which preserves current behavior by default -
Transaction.bodycan hold the serialized transaction, and call toWallet.transfer(..., broadcast=False)always returns such objects -
Wallet.sign(tx: Transaction) -> Transactionwill accept only those withbodyand return signed ones -
Wallet.submit(tx: Transaction) -> Nonewill attempt to submit the transaction and raise exceptions on failure
Questions:
- How to broadcast signed transaction? There's Submit External Transaction method which even mentions regular
submitTransactionin the doc, however the latter is not present anywhere right now. - What is the balance method?