Example #1
0
 def send_raw_transaction(cls, tx):
     # "https://pyota.readthedocs.io/en/latest/api.html#send-transfer"
     bundle = cls.client.send_transfer(depth=4, transfers=tx)
     bundle = bundle["bundle"]
     bundle = Bundle.as_json_compatible(bundle)
     bundle = bundle[0]
     tx_hash = bundle["hash_"]
     tx_hash = str(tx_hash)
     return tx_hash
Example #2
0
 def extract_data(bundle):
     json = Bundle.as_json_compatible(bundle)
     data = json[0]["signature_message_fragment"]
     return data