fibercrypto / fibercrypto/skyxcommons

[api] Explorer URL

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

[GET] /api/addresses/{address}/explorer-url

Should return one or many blockchain explorer URLs for the given address.

Response:

```js
[
// Blockchain explorer URL for the given address “string”
]
```

Python implementation

```py

@api.route('/addresses//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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.