If you have any questions or concerns, please contact XYO Network at developer@xyo.network. Please feel free to visit our ongoing projects at github.com/XYOracleNetwork. Thank you!
The code for the Geo Server, allowing query of public Proof of Location data.
- npm
- Node.js
- MongoDB
See https://docs.mongodb.com/manual/installation/.
- Download the repository
- Install npm modules:
npm install
- Start up the server:
node server.js
- View in browser at http://localhost:3000
GET /api/nodes
Fetch a list of Geo Nodes stored on the server.
GET /api/checkins
Fetch a list of checkins for the given user address
Parameters:
- address - the address of the user to query
GET /api/confirm
Confirm that a user was present at a node at a given time. Returns false
if the user was not present, or the address of the user if the user was present.
Parameters:
- userAddress - the address of the user to query
- nodeAddress - the address of the node to query
- beginTime - the beginning time for the range
- endTime - the end time for the range
POST /api/checkin
Creates a new checkin on the server, validating the signature of the Geo Node.
Parameters:
- signature - The signature of the message, as generated by a Geo Node using Web3. The message is of the form
userAddress|timestamp
.
Made with ❤️ by [XY - The Persistent Company] (https://xy.company)