diff --git a/lib/ucoin/wrappers/transactions.py b/lib/ucoin/wrappers/transactions.py
index b16db9d7ecc93dab9ff86d0521bc1e1ab5bcd27b..6452852dbf63fc0bc679e7cd043ee0ed2bef25c7 100644
--- a/lib/ucoin/wrappers/transactions.py
+++ b/lib/ucoin/wrappers/transactions.py
@@ -98,3 +98,6 @@ Comment:
 
         tx = tx.replace("\n", "\r\n")
         return tx
+
+    def get_error(self):
+        return self.error