Policy fields
| Field | Description | Valid values |
|---|---|---|
scope | Level at which the policy applies | project or account (API key auth only) |
rules | Ordered list of rules | Array of rules |
action | What to do when criteria match | accept or reject |
operation | The wallet operation being governed | See Supported operations |
criteria | Logical expressions evaluated against the operation | Array of criteria |
Evaluation
Rules are processed in order. The first matching rule’saction is applied. If no rule matches, the request is rejected (fail-secure default).
For API key auth wallets, a project-level policy is evaluated first, followed by any account-level policy.
API key configuration
To manage policies via SDK or API, your API key must have the Manage (modify policies) scope enabled under API restrictions > API-specific restrictions.Create a policy
- User Authentication
- API Key Authentication
User authentication wallets support project-scope policies only. Create policies using the CDP SDK from your backend.
- Node (TypeScript)
- Python
Supported operations
User authentication
| Operation | Description |
|---|---|
signEndUserEvmTransaction | End-user EVM transaction signing |
sendEndUserEvmTransaction | End-user EVM transaction signing and sending |
signEndUserEvmMessage | End-user EIP-191 message signing |
signEndUserEvmTypedData | End-user EIP-712 typed data signing |
signEndUserSolTransaction | End-user Solana transaction signing |
sendEndUserSolTransaction | End-user Solana transaction signing and broadcast |
signEndUserSolMessage | End-user Solana message signing |
API key authentication
| Operation | Description |
|---|---|
signEvmTransaction | EVM transaction signing |
sendEvmTransaction | EVM transaction signing and sending |
signEvmMessage | EIP-191 message signing |
signEvmTypedData | EIP-712 typed data signing |
signEvmHash | Hash signing |
prepareUserOperation | Smart account user operation preparation |
sendUserOperation | Smart account user operation sending |
signSolTransaction | Solana transaction signing |
sendSolTransaction | Solana transaction signing and sending |
signSolMessage | Solana message signing |
