Proof of Location API
Last updated
Was this helpful?
Last updated
Was this helpful?
The Trusted Location API currently provides only one endpoint, more will be added in the future.
Mainnet applications can use the mainnet verifier contract to validate proofs of location obtained from this endpoint:
https://geo.w3bstream.com/api/pol
Testnet applications can use the testnet verifier contract to validate proofs of location obtained from this endpoint:
https://geo-test.w3bstream.com/api/pol
Please notice that the testnet API endpoint generates proofs based on location data that is not "trusted" (i.e., test locations data generated by a script for development and test purposes). Therefore, any attempt to validate those proofs on the mainnet validator contract will fail.
Make sure you query the mainnet API for proofs of location that are supposed to be used in production.
This service allows to prove that the user has been within a certain distance from a specific GPS location, within time range [t1, t2]. Requires that the user has the IoTeX ioPay wallet installed, and enabled the Metapebble plugin.Tip: You can view the input and output data schame in the "Schema" tab and expand them.
/pol
The signature of the SIWE message created by the 'owner' address.
A SIWE (Sign In With Ethereum) message.
The wallet address of the user of which you want to prove the location. This must be the IoTeX wallet address that the user associated to Metapebble.