Requesting Proofs of Location
Prepare the query
{
"owner": "0x926CA7b35C2b5F528460A8f164054cE61BfCacFb",
"message": "awesome.app wants you to sign in with your Ethereum account:\n0x926CA7b35C2b5F528460A8f164054cE61BfCacFb\n\nSign in Location Based NFT The application will know if you were located in one of the following regions in the time range below: from: Tue Dec 06 2022 16:58:58 GMT+0000 to: Tue Dec 06 2022 16:58:58 GMT+0000\n\nURI: http://localhost:3000\nVersion: 1\nChain ID: 4690\nNonce: CcWaTbGzTDPcqF1Ov\nIssued At: 2022-12-06T16:58:58.554Z\nExpiration Time: 2022-12-06T16:59:58.553Z'",
"signature": "0x740c730c6486c8edc56ff22322f16044d4b761dcdf717a067f8241e2bf54d7f477f79ba10cbe21d9efb14ee12fa0c8321972806ad7ea848a4248d575532332f81b",
"locations": [
{"scaled_latitude": 120520000, "scaled_longitude": 30400000, "distance": 1000, "from": 1669963142, "to": 1669964142},
{"scaled_latitude": 26092603, "scaled_longitude": 119255364, "distance": 1000, "from": 1669963142, "to": 1672555142},
{"scaled_latitude": 45481106, "scaled_longitude": 9146373, "distance": 500, "from": 1670216401, "to": 1670367600}
]
}{
"scaled_latitude": 120520000, // Integer(Location Latitude * 10^6)
"scaled_longitude": 30400000, // Integer(Longitude * 10^6)
"distance": 500, // Max distance from the location
"from": 1669963142, // Start of time range
"to": 1669964142 // End of time range
}Create a SIWE message
SIWE messageExample SIWE message
SIWE messageSign the SIWE message
SIWE messageSend the Query to GeoStream
Last updated
Was this helpful?