From b1e823426b64ece63fe5c581c59272886d3821f5 Mon Sep 17 00:00:00 2001 From: AndreaScorza Date: Fri, 4 Feb 2022 15:11:01 +0100 Subject: [PATCH] Added validare address API --- src/lto/public_node.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lto/public_node.py b/src/lto/public_node.py index 54db978..a9545e3 100644 --- a/src/lto/public_node.py +++ b/src/lto/public_node.py @@ -92,6 +92,9 @@ def balance(self, address): def balance_details(self, address): return self.wrapper('/addresses/balance/details/%s' % self.__addr(address)) + def validate_address(self, address): + return self.wrapper('/addresses/validate/{}'.format(address))['valid'] + def data_of(self, address): data = self.wrapper('/addresses/data/%s' % self.__addr(address))