Skip to main content
Use the Cardinal Protection API to evaluate transaction intent before your wallet or application asks a user to sign.
The current Protection API is a professional MVP for sandbox integrations and controlled pilots. Your Cardinal onboarding contact will provide the appropriate API host and credentials. Do not use demo credentials in production.

Prerequisites

Before you begin, you need:
  • A Cardinal pilot API key
  • The API base URL supplied during onboarding
  • A transaction intent containing sender, recipient, chain, token, and amount

1. Configure your environment

Store the values supplied during onboarding as environment variables.
Never expose the API key in frontend code, browser storage, public repositories, or logs.

2. Check a transaction

Call the protection endpoint before requesting a wallet signature, token approval, or contract transaction.
The required request fields are:

3. Handle the decision

A successful check returns a stable decision shape.
Treat risk_score as the summary, findings as the reasons, and recommended_action as the decision. Do not build application logic from the score alone.

4. Continue only after the check

The protected sequence is:
If the Protection API is unavailable, show a real error. A live integration must never silently fall back to mock data.

Explore the Protection API

Review the endpoint, response model, and current pilot limitations.