- Get the vehicleID from here:
https://ligo-node.oort.codyhatfield.me/api/v0/smartcar/users/wXP24CpYWJGW5lqKCmPB8RTH/vehicles
- Get the encToken from here:
https://ligo-node.oort.codyhatfield.me/api/v0/smartcar/users/wXP24CpYWJGW5lqKCmPB8RTH/token
-
Open remix
-
Compile APIConsumer.sol
-
In
fulfill
function, enter your vehicleID and encToken -
In like 5-10 seconds, click on _endOdometer to check the values ..
- Get the vehicleID from here:
https://ligo-node.oort.codyhatfield.me/api/v0/smartcar/users/wXP24CpYWJGW5lqKCmPB8RTH/vehicles
- Get the encToken from here:
https://ligo-node.oort.codyhatfield.me/api/v0/smartcar/users/wXP24CpYWJGW5lqKCmPB8RTH/token
-
Open remix
-
Compile APIConsumerAll.sol
-
In
fulfilldistanceAndlatitudeAndlongitude
function, enter your vehicleID and encToken -
In like 5-10 seconds, click on _endLatitude, _endLongitude and _endOdometer to check the values ..
-
Open remix
-
Compile APIConsumer.sol in remix.
-
For deployment:
- Set the Oracle address you mentioned in your Job
- Set the Job ID by checking the 'externalJobID' in JobSpec of your Job. Remove the dashes in between and cover it with "". Example "29fa9aa13bf1468788b7cc4a500a45b8"
- Set fee 0
- Set Kovan address link:
0xa36085F69e2889c224210F603D836748e7dC0088
- Deploy
- Get your vehicleID and encryptedToken:
https://ligo-node.oort.codyhatfield.me/api/v0/smartcar/users/wXP24CpYWJGW5lqKCmPB8RTH/vehicles
https://ligo-node.oort.codyhatfield.me/api/v0/smartcar/users/wXP24CpYWJGW5lqKCmPB8RTH/token
-
Enter your vehicleID and encryptedToken as string in
requestVolumeData
function and run it -
Click on
fulfill
function to get your required data.