-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
[GET] /api/addresses/{address}/explorer-url
Should return one or many blockchain explorer URLs for the given address.
Response:
[
// Blockchain explorer URL for the given address “string”
]Python implementation
@api.route('/addresses/<string:address>/explorer-url', methods=['GET'])
def get_explorer_url(address):
"""
Returns explorer url for given address
"""
if address in (None, ''):
return make_response(jsonify(build_error('Address not specified')), 400)
elif not isValidAddress(address):
return make_response(jsonify(build_error('Invalid address')), 204)
explorer_urls = ['https://explorer.skycoin.net/app/address/' + address]
return jsonify(explorer_urls)Metadata
Metadata
Assignees
Labels
No labels