An abstracted data layer for getting marketplace information on the Solana blockchain.
We welcome contributions to Night Market from the community -- please open a pull request!
Feel free to join the Motley DAO Discord to talk to the team and other community members.
All contributions are automatically licensed under the AGPL 3.0.
This service is built using Golang.
The server provides several routes for collections, NFTs, users, general blockchain information, etc.
First, you need to install the golang in order to run this project. Then you can execute the following command to run the server:
go run app/main.go
The swagger API documentation can help you learn how to use the APIs. You can visit the following page to see the full documentation.
http://localhost:8080/swagger/index.html
Swagger documentation can be generated by running the following command on the root directory.
swag init -g ./internal/api/routers/api.go
The list of required environment variables for the application. To be set through the OS environment or through .env file.
Name | Description |
---|---|
PORT | The port to listen on. E.g. 5555 |
PROVIDER | The blockchain data provider. Currently only supports Hyperspace. |
API_KEY | An API key for the data provider. |
RPC_ENDPOINT | A Solana RPC endpoint. E.g. https://api.mainnet-beta.solana.com/ |
You can test the current API server by using the following command:
go clean && go test -v ./...
You can build this project to run the following command:
go build -o andromeda ./app/main.go