Skip to content

Commit

Permalink
Added validare address API
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaScorza committed Feb 4, 2022
1 parent dc2d067 commit b1e8234
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lto/public_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b1e8234

Please sign in to comment.