We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9286965 commit 4520e45Copy full SHA for 4520e45
funding/factory.py
@@ -84,6 +84,17 @@ async def create_address(self) -> dict:
84
"address": address,
85
}
86
87
+ async def check_address(self, addr_receiving: str) -> str:
88
+ # Check address validation
89
+
90
+ validation_data = {
91
+ "method": "validateaddress",
92
+ "params": [addr_receiving]
93
+ }
94
+ validation_blob = await self._make_request(data=validation_data)
95
96
+ return validation_blob['result']
97
98
async def tx_details(self, txid: str):
99
if not isinstance(txid, str) or not txid:
100
raise Exception("bad address")
0 commit comments