Skip to main content
This guide shows how a wallet, exchange, custodian, marketplace, or digital-asset application can combine Cardinal’s risk decision with a protected settlement route.
The Protection API is suitable for sandbox integrations and controlled pilots. SafeSend is a connected testnet MVP, while Programmable Escrow is in final testing and security hardening. Do not route unrestricted mainnet value through a pilot configuration.

Integration outcome

Every protected transaction follows one control sequence:
The risk decision must happen before token approval, wallet signature, or contract execution.

Components

Protection API

Request and interpret risk decisions.

SafeSend

Use delayed cancellable settlement.

Escrow

Use buyer and seller settlement controls.

1. Create an immutable intent

Build the complete transaction intent before calling Cardinal.
The checked intent and the submitted transaction must match. Generate a new check if any protected field changes. For contract-based settlement, to_address should identify the economic recipient and contract_address should identify the verified SafeSend or Escrow deployment involved in execution.

2. Call Cardinal from a trusted backend

Never put the Cardinal API key in frontend code.
Your backend should validate the frontend request, create the canonical intent, call Cardinal, and return only the information required to render the decision.

3. Store the decision evidence

A successful response includes:
Store at minimum: Do not store secrets, private keys, seed phrases, or unnecessary personal data with this evidence.

4. Apply the decision

A partner may enforce a stricter result than Cardinal. It must not silently weaken BLOCK or bypass acknowledgement for REVIEW.
Use recommended_action as the decision, findings as the reasons, and risk_score as a summary. Do not make settlement decisions from the numeric score alone.

5. Select the settlement route

Route selection combines the Cardinal verdict with the partner’s transaction policy.
This example is integration structure, not a universal Cardinal routing policy. Each partner must define and approve its own thresholds and route requirements.

SafeSend route

The SafeSend sequence is:
Do not reuse the pilot’s testnet addresses, tokens, fee configuration, or assumptions for a future production deployment.

Escrow route

The buyer and seller Escrow sequence is:
The Multisig Escrow variant replaces buyer release with threshold approvals from the contract’s authorised global approver set.

State synchronisation

Applications should combine events with direct contract reads.
Events are useful for discovery and notifications, but the contract read is the source of truth for current status and action eligibility. Handle chain reorganisations, replaced transactions, duplicate events, delayed indexing, and temporary RPC failures without incorrectly marking settlement final.

Re-check rules

Run a new Protection API check when:
  • Sender or recipient changes
  • Chain or token changes
  • Amount changes
  • Settlement contract changes
  • Approval amount changes
  • Requested permissions change
  • Application policy requires a fresher decision
  • A prior check failed or cannot be tied to the final transaction
A new check is also appropriate after a long user delay or before a materially changed execution attempt, according to the partner’s approved policy.

Failure handling

Never silently fall back to mock risk data, a default ALLOW, an unverified contract address, or a different network.

Security checklist

Before enabling a pilot:
  • Keep Cardinal API credentials only on trusted backend infrastructure.
  • Allowlist the verified chain, proxy, implementation, token, and recipient contracts for the pilot.
  • Confirm token decimals and use integer base units for contract calls.
  • Bind decision evidence to the canonical intent and authenticated partner user.
  • Prevent replay and duplicate submission.
  • Apply explicit REVIEW acknowledgement.
  • Stop every BLOCK and failed protection check.
  • Display fees, gas, deadlines, addresses, and settlement route before confirmation.
  • Monitor contract events, API errors, and failed or stuck transactions.
  • Document incident escalation and pilot shutdown procedures.
  • Do not claim external audit coverage that has not been completed.

Current production boundary

The connected workflow is suitable for sandbox development and controlled pilots using the verified environment supplied during onboarding. Production rollout requires verified deployment addresses and ABIs, supported-token policy, external contract-security review status, production monitoring, shared rate limiting, partner-specific controls, incident response, operational ownership of privileged roles, and an approved dispute process.

Start with the Quickstart

Run your first Protection API check.

Review product status

Confirm what is live, in testing, and planned.