TypeScript CLI for zkTLS
The starting point for using provable requests in your TypeScript project
Pre-requisites
Usage
$ npm install @diffusefi/zktls-ts-cli const { DiffuseClient } = require("@diffusefi/zktls-ts-cli");Initialize Diffuse Client
const client = new Diffuse('APPLICATION_ID', 'APPLICATION_SECRET');For public endpoints
const publicOptions = {
method: 'GET', // or POST
headers : {
accept: 'application/json, text/plain, */*'
}
}
const proof = await client.fetchProof(
'https://your.url.org',
publicOptions
)For private endpoint
Using Secret Params
Using CookieStr
Using Response Matches and Redactions
Using the response
Add Retries and Retry Interval
Add proofType
Last updated