This project enables users to upload files and associate them with specific addresses for further analysis on the Insight Genesis platform.
You can connect via either with Metamask or Magic Link.
If there is a referral querystring, it will be automatically applied for the user.
Once a wallet address is acquired, it will redirect you to the facial scanning page (voice and digital footprint coming soon).
Upon completion it will store the analysed results as CID on IPFS, reward the scanner and the referrer with some IGAIr.
For more information, please visit Insight Genesis's Tech Presentation
Please visit our example page in simple HTML form on how to use our API
To start the server, run:
npm install && cd frontend && npm install && cd .. && npm run build npm start
https://api.insightgenesis.ai/lg?t=<TYPE>
TYPE - can be different kinds of login method (metamask, google, facebook, apple, github, linkedin, twitter, bitbucket, gitlab, twitch, microsoft, discord)
If you choose not to use our login, you can manually set local storage of the browser with a BIP44 wallet address.
localStorage.setItem('a', '<ADDRESS>'); // example localStorage.setItem('a', '0x2e0aCE0129E66A36cee92c5146C73Ec4874d0109');
ADDRESS - wallet address of the user who will be used for scanning
For all the scanning there are additional fields to be populated to ensure high accuracy and the right scanning type, user will need to select the options accordingly. Using the similar field IDs from our example page, import the script below and all the necessary fields will be populated.
<script src="https://cdn.jsdelivr.net/gh/aloycwl/insightgenesis@main/frontend/build/igai.min.js"></script>
curl -X GET https://api.insightgenesis.ai/iframe?g=<GENDER>&y=<AGE> \
-H "auth: <SECRET_KEY>"
GENDER - male or female
AGE - numerical number
SECRET_KEY - the key issued to you
Once the url is generated, you can attached using HTML iframe element
<iframe allow="camera;microphone;fullscreen;display-capture" src=<URL> />
URL - the iframe acquired from above
Record the voice in wma, mp3 or webm format for 45 seconds and upload to the following url
curl -X POST https://api.insightgenesis.ai/v \
-H "auth: <SECRET_KEY>" \
-F "audio=@/path/to/audio.webm;type=audio/webm;filename=<FILE_PATH>" \
-F "v=<VOICE_TYPE>" \
-F "a=<ADDRESS>"
SECRET_KEY - the key issued to you
FILE_PATH - the local path of the voice file
VOICE_TYPE - see the example page for the list of selectable voice type
ADDRESS - wallet address of the scanner
curl -X GET "https://api.insightgenesis.ai/foot?e=<EMAIL>&c=<COUNTRY_CODE>&n=<MOBILE_NUMBER>" \
-H "auth: <SECRET_KEY>"
SECRET_KEY - the key issued to you
COUNTRY_CODE - country code of the mobile number in numeric
MOBILE_NUMBER - mobile number in numeric
SECRET_KEY - the key issued to you
curl -X GET "https://api.insightgenesis.ai/info?addr=<ADDRESS>"
e.g. curl -X GET "https://api.insightgenesis.ai/info?addr=0x2e0aCE0129E66A36cee92c5146C73Ec4874d0109"
ADDRESS - address to be queried
Example
{
"balance": "245000000000000000000",
"to": "0xeC3404b06152939FB56999A87693046CC09B3bCc",
"from": [
"0x67018dd2C02dacBB74dfE57a0Df8793902891F4c",
"0xfabCB001D46DfCce9Fe4394CaE50Ffa00B5F6679",
"0xa34357486224151ddfdb291e13194995c22df505",
]
}Returned
- balance: the IGAI in 18 decimal place
- to: the address who referred ADDRESS
- from: the addresses brought in by ADDRESS
Insight contract: 0x7d1fe42532cEE53A23cc266c06Ac55e65b0797a9
IGAIr contract: 0x0C1A6816C7C59C2876624d0AdBd53Eb9bb6291bc