This example demonstrates how to use vlayer Web Proof to notarize an HTTP request to:
https://api.twitter.com/2/users/me?user.fields=id,name,username,created_at,description,profile_image_url,public_metrics
It generates a Zero-Knowledge Proof (ZK proof) based on the API response, which can then be verified by an on-chain EVM smart contract.
cd {projectPath}
forge buildcd vlayer
bun installEnter your Twitter oauth token to the prove.ts:
const X_API_BEARER_TOKEN = "insert here your oauth2 token";
To get your user OAuth token, you need to create a X/Twitter Developer App and complete the OAuth 2.0 flow.
bun run devnet:upbun run prove:dev