PLAID
The sample code is presented at https://github.com/CliqueOfficial/sibyl-plaid-data-connector.
Test the deployed oracle pipeline hosted by Clique here:
curl --location 'https://sibyl.sit.clique.tech/query' -k
--header 'Accept: application/json'
--header 'Connection: Close'
--header 'Content-Type: application/json'
--data '{ 
    "query_type": "plaid_bank_balance_range_zkp", 
    "query_param": { 
        "clientId": "YOUR_CLIENT_ID", 
        "secret": "YOUR_SECRET", 
        "accessToken": "YOUR_ACCESS_TOKEN", 
        "rangeUpperBound": 2000, 
        "rangeBottomBound": 0 
        } 
}'Plaid
plaid_sandbox_public_token
plaid_sandbox_public_tokenGet 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
For more details, please refer to Plaid's document.
plaid_sandbox_exchange_access_token
plaid_sandbox_exchange_access_tokenExchange 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
plaid_bank_balance_rangeQuery 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
- accessTokenstring, access token returned from- plaid_bank_balance_range
- rangeUpperBoundint, the upper bound of the query range
- rangeBottomBoundint, the lower bound of the query range
plaid_bank_balance_range_zkp
plaid_bank_balance_range_zkpQuery the user's balance in its bank account and generate a zero-knowledge range proof for it.
Parameters:
- clientId
- secret
- accessTokenstring, access token returned from- plaid_bank_balance_range
- rangeUpperBoundint, the upper bound of the query range
- rangeBottomBoundint, 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.
Last updated
