Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/swarmcityshortcode
Temporal UX solution for users to transfer funds easily / ENS based solution is being developed
https://github.com/dapplion/swarmcityshortcode
Last synced: about 19 hours ago
JSON representation
Temporal UX solution for users to transfer funds easily / ENS based solution is being developed
- Host: GitHub
- URL: https://github.com/dapplion/swarmcityshortcode
- Owner: dapplion
- License: mit
- Created: 2019-02-21T17:17:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T01:35:28.000Z (almost 6 years ago)
- Last Synced: 2024-12-28T06:48:14.887Z (10 days ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwarmCityShortcode
Temporal UX solution for users to transfer funds easily / ENS based solution is being developed
## Generate short url
To generate a short url, the front end has to do a POST request to "/" with text data:
```
'{"publicKey":"0xabcd1234"}'
```Since the data will be directly stored in a level db, the API is expecting text data to avoid parsing / stringifing and save resources.
The API will reply with json:
```js
{
shortcode: "00423";
}
```## Query shortcode
Do a GET request to the url "/\${id}", i.e. s.swarm.city/00423. It will return the stored data as json
```js
{
publicKey: "0xabcd1234";
}
```