def get_address_nonce(self, address, api_token):
broadcast_url = self.base_url + '<STR_LIT>'<EOL>broadcast_url += '<STR_LIT>' % address<EOL>broadcast_url += '<STR_LIT>'<EOL>if api_token:<EOL><INDENT>'<STR_LIT>' % api_token<EOL><DEDENT>response = requests.get(broadcast_url, )<EOL>if int(response.status_code) == <NUM_LIT:200>:<EOL><INDENT>nonce = int(response.json().get('<STR_LIT:result>', None), <NUM_LIT:0>)<EOL>logging.info('<STR_LIT>', response.json())<EOL>return nonce<EOL><DEDENT>else:<EOL><INDENT>logging.info('<STR_LIT>')<EOL><DEDENT>raise BroadcastError('<STR_LIT>', response.text)<EOL>
Looks up the address nonce of this address
Neccesary for the transaction creation