From 9a10feefdfa2762a09f36b04fa1727af1b6f2c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C9=90=CA=87=C9=AFon3=C9=B9?= Date: Sat, 12 Jun 2021 21:32:05 +0000 Subject: [PATCH] Update _transaction.py --- cosmospy/_transaction.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cosmospy/_transaction.py b/cosmospy/_transaction.py index 95efc16..15ab798 100644 --- a/cosmospy/_transaction.py +++ b/cosmospy/_transaction.py @@ -55,6 +55,16 @@ def add_transfer(self, recipient: str, amount: int, denom: str = "uatom") -> Non } self._msgs.append(transfer) + def add_multi_transfer(self, data_inputF: str, data_outputF: str, denom: str = "uatom") -> None: + transfer = { + "type": "cosmos-sdk/MsgMultiSend", + "value": { + "inputs": data_inputF, + "outputs": data_outputF + } + } + self._msgs.append(transfer) + def get_pushable(self) -> str: pubkey = privkey_to_pubkey(self._privkey) base64_pubkey = base64.b64encode(pubkey).decode("utf-8")