def create_std_tx(cls, sender: tuple, receiver: tuple, amount: int) -> StandardTransaction: if type(receiver) is tuple: receiver = receiver[1] return StandardTransactionBuilder.create_tx(sender[0], sender[1], receiver, amount)
def _convenience_build_standard_transaction(self): """These transactions get POSTed directly to masternodes by TAU wallet software""" STU = (wallet.new()) DAVIS = (wallet.new()) DENTON = (wallet.new()) FALCON = (wallet.new()) KNOWN_ADRS = (STU, DAVIS, DENTON, FALCON) amount = 10 tx = StandardTransactionBuilder.create_tx(STU[0], STU[1], DAVIS[1], amount) return tx