Examples
Generate a Web Proof
Under Development: This API is currently in development. Documentation and endpoints may change.
Generate a Web Proof
Generate a Web Proof for a simple Binance API call:
curl -X POST https://web-prover.vlayer.xyz/api/v0/prove \
-H "Content-Type: application/json" \
-d '{
"url": "https://data-api.binance.vision/api/v3/exchangeInfo?symbol=ETHUSDC",
"notaryUrl": "https://test-notary.vlayer.xyz/v0.1.0-alpha.11/",
"headers": []
}' \
-H "x-client-id: 4f028e97-b7c7-4a81-ade2-6b1a2917380c" \
-H "Authorization: Bearer jUWXi1pVUoTHgc7MOgh5X0zMR12MHtAhtjVgMc2DM3B3Uc8WEGQAEix83VwZ"
The included credentials are for limited public use. For production use, please contact our team.
Response:
{
"status": "completed",
"decodedTranscript": {
"recv": "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n\r\n{\"timezone\":\"UTC\",\"symbols\":[{\"symbol\":\"ETHUSDC\"}]}",
"sent": "GET /api/v3/exchangeInfo?symbol=ETHUSDC HTTP/1.1\r\nHost: data-api.binance.vision\r\n\r\n"
},
"presentation": "{\"presentationJson\":{\"data\":\"<hex-encoded proof data>\",\"meta\":{\"notaryUrl\":\"https://test-notary.vlayer.xyz:443\",\"websocketProxyUrl\":\"\"},\"version\":\"0.1.0-alpha.11\"}}"
}