Plaid (ZK Range Proof)
The Plaid Data Connector Example
Last updated
The Plaid Data Connector Example
Last updated
The sample code is presented at .
Test the deployed oracle pipeline hosted by Clique here:
plaid_sandbox_public_token
Get the public token (sandbox environment).
Parameters:
clientId
: string, Plaid clientId
secret
: string, Plaid secret
institutionId
: string, institution id of the bank you want to query
plaid_sandbox_exchange_access_token
Exchange the public token for an access token.
Parameters:
clientId
: same as above
secret
: same as above
publicToken
: string, public token returned from plaid_sandbox_public_token
plaid_bank_balance_range
Query the user's balance in a bank account and return if the balance is within a given range. The result is only a boolean so that the original balance will not be seen by any party except the secure environment.
Parameters:
clientId
secret
accessToken
string, access token returned from plaid_bank_balance_range
rangeUpperBound
int, the upper bound of the query range
rangeBottomBound
int, the lower bound of the query range
plaid_bank_balance_range_zkp
Query the user's balance in its bank account and generate a zero-knowledge range proof for it.
Parameters:
clientId
secret
accessToken
string, access token returned from plaid_bank_balance_range
rangeUpperBound
int, the upper bound of the query range
rangeBottomBound
int, the lower bound of the query range
The general workflow for making a Plaid API call is very simple:
We first need to get the public token through plaid_sandbox_public_token
Then, we exchange the public token for an access token through plaid_sandbox_exchange_access_token
.
For more details, please refer to Plaid's .