https://github.com/planetable/apiserver
ENS API server written with Swift
https://github.com/planetable/apiserver
Last synced: about 1 year ago
JSON representation
ENS API server written with Swift
- Host: GitHub
- URL: https://github.com/planetable/apiserver
- Owner: Planetable
- License: mit
- Created: 2023-02-09T16:25:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T23:31:17.000Z (over 1 year ago)
- Last Synced: 2025-03-24T00:27:33.894Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 28.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This API server is designed to simplify various ENS-related queries, including:
- Resolving ENS to address
- Resolving address to ENS
- Resolving NFT avatar URL if set
- Getting the content hash URL if set
## Build and Run
After cloning the repo, run the following commands to build and run the server:
```bash
brew install vapor
vapor build
vapor run serve
```
And it will be running on http://localhost:8080
If you want the server to listen on all interfaces and a different port, run the following command:
```bash
vapor run serve --hostname 0.0.0.0 --port 8123
```
## Live Demo
* ENS domain with IPNS content hash: https://api.planetable.xyz/ens/resolve/planetable.eth
* ENS domain with a Juciebox Project ID: https://api.planetable.xyz/ens/resolve/jango.eth