def RelaySlaveTxnBySlave(self, request: qrlwallet_pb2.RelaySlaveTxnBySlaveReq, context) -> qrlwallet_pb2.RelayTxnResp: resp = qrlwallet_pb2.RelayTxnResp() try: resp.tx.MergeFrom(self._walletd.relay_slave_txn_by_slave(request.slave_pks, request.access_types, request.fee, request.master_address)) except Exception as e: resp.code = 1 resp.error = str(e) return resp
def RelayMessageTxn(self, request: qrlwallet_pb2.RelayMessageTxnReq, context) -> qrlwallet_pb2.RelayTxnResp: resp = qrlwallet_pb2.RelayTxnResp() try: resp.tx.MergeFrom(self._walletd.relay_message_txn(request.message, request.fee, request.master_address, request.signer_address, request.ots_index)) except Exception as e: resp.code = 1 resp.error = str(e) return resp
def RelayTransferTxnBySlave(self, request: qrlwallet_pb2.RelayTransferTxnBySlaveReq, context) -> qrlwallet_pb2.RelayTxnResp: resp = qrlwallet_pb2.RelayTxnResp() try: resp.tx.MergeFrom(self._walletd.relay_transfer_txn_by_slave(request.addresses_to, request.amounts, request.fee, request.master_address)) except Exception as e: resp.code = 1 resp.error = str(e) return resp
def RelayTransferTokenTxn(self, request: qrlwallet_pb2.RelayTransferTokenTxnReq, context) -> qrlwallet_pb2.RelayTxnResp: resp = qrlwallet_pb2.RelayTxnResp() try: resp.tx.MergeFrom(self._walletd.relay_transfer_token_txn(request.addresses_to, request.amounts, request.token_txhash, request.fee, request.master_address, request.signer_address, request.ots_index)) except Exception as e: resp.code = 1 resp.error = str(e) return resp
def RelayTokenTxn(self, request: qrlwallet_pb2.RelayTokenTxnReq, context) -> qrlwallet_pb2.RelayTxnResp: resp = qrlwallet_pb2.RelayTxnResp() try: resp.tx.MergeFrom( self._walletd.relay_token_txn( request.symbol, request.name, request.owner, request.decimals, request.addresses, request.amounts, request.fee, request.master_address, request.signer_address, request.ots_index)) except Exception as e: resp.code = 1 resp.error = str(e) return resp