Skip to content

[api] Explorer URL #24

@olemis

Description

@olemis

[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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions