---
title: "Simulate policies"
method: POST
path: "/v2/policy-engine/simulate"
tags: ["Policy Engine"]
---

# Simulate policies

`POST /v2/policy-engine/simulate`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/policy-engine/simulate`
- Auth: HTTP bearer

Simulates policy evaluation for one operation against the project's current policies and returns the `action` the real operation would take, the rule that decided it, and the first unmet criterion of every rule that did not match.  Nothing is signed, broadcast, or persisted, and gas and nonce are not populated: the transaction is evaluated as submitted.
Each unmet criterion (`observed`) and each matched-rule criterion (`observations`) can include the value observed in the request, with messages and decoded arguments returned up to their documented size limits.
Rate-limiting criteria are read but not consumed. `netUSDChange` criteria run transaction simulation, and pass successfully on testnets, as in the real operation. The result is a snapshot: policies, rate-limit counters, or chain state may change before a real call.
A policy rejection returns `200` with `action: reject`; this endpoint never returns `policy_violation`. A criterion that cannot be evaluated for this  input returns `422`.

## Query parameters

- `groupType` 'project' | 'entity': Whether policy operations use the entity ID or the project ID from the caller's credential.

## Request body

- union: Inputs for one operation, without signing credentials. `operation` is the policy rule operation name (for example `signSolTransaction`), not the HTTP operation ID (`signSolanaTransaction`).
  - SignEvmTransactionSimulationInput
    - `operation` 'signEvmTransaction', required: Rule operation to simulate.
    - `address` string, required: The 0x-prefixed address of the EVM account.
    - `transaction` string, required: The RLP-encoded transaction to evaluate, as a 0x-prefixed hex string.
  - SendEvmTransactionSimulationInput
    - `operation` 'sendEvmTransaction', required: Rule operation to simulate.
    - `address` string, required: The 0x-prefixed address of the EVM account.
    - `transaction` string, required: The RLP-encoded transaction to evaluate, as a 0x-prefixed hex string.
    - `network` 'base' | 'base-sepolia' | 'ethereum' | 'ethereum-sepolia' | 'avalanche' | 'polygon' | 'optimism' | 'arbitrum' | 'arbitrum-sepolia' | 'world' | 'world-sepolia', required: The network to send the transaction to.
  - SignEvmHashSimulationInput
    - `operation` 'signEvmHash', required: Rule operation to simulate.
    - `address` string, required: The 0x-prefixed address of the EVM account.
    - `hash` string, required: The arbitrary 32 byte hash to evaluate.
  - SignEvmMessageSimulationInput
    - `operation` 'signEvmMessage', required: Rule operation to simulate.
    - `address` string, required: The 0x-prefixed address of the EVM account.
    - `message` string, required: The message to evaluate.
  - SignEvmTypedDataSimulationInput
    - `operation` 'signEvmTypedData', required: Rule operation to simulate.
    - `address` string, required: The 0x-prefixed address of the EVM account.
    - `domain` EIP712Domain, required: The domain of the EIP-712 typed data.
      - `name` string: The name of the DApp or protocol.
      - `version` string: The version of the DApp or protocol.
      - `chainId` integer: The chain ID of the EVM network.
      - `verifyingContract` string: The 0x-prefixed EVM address of the verifying smart contract.
      - `salt` string: The optional 32-byte 0x-prefixed hex salt for domain separation.
    - `types` EIP712Types, required: A mapping of struct names to an array of type objects (name + type). Each key corresponds to a type name (e.g., "`EIP712Domain`", "`PermitTransferFrom`").
    - `primaryType` string, required: The primary type of the message. This is the name of the struct in the `types` object that is the root of the message.
    - `message` object, required: The message to evaluate. The structure of this message must match the `primaryType` struct in the `types` object.
  - PrepareUserOperationSimulationInput
    - `operation` 'prepareUserOperation', required: Rule operation to simulate.
    - `address` string, required: The Smart Account address.
    - `network` 'base-sepolia' | 'base' | 'arbitrum' | 'optimism' | 'zora' | 'polygon' | 'bnb' | 'avalanche' | 'ethereum' | 'ethereum-sepolia', required: The network the user operation is for.
    - `calls` EvmCall[], required: The list of calls to make from the Smart Account.
      - `to` string, required: The address the call is directed to.
      - `value` string, required: The amount of ETH to send with the call, in wei.
      - `data` string, required: The call data to send. This is the hex-encoded data of the function call consisting of the method selector and the function arguments.
      - `overrideGasLimit` string: The override gas limit to use for the call instead of the bundler's estimated gas limit.
    - `paymasterUrl` string, uri: The URL of the paymaster to use for the user operation.
    - `paymasterContext` PaymasterContext: The ERC-7677 `context` object forwarded to the paymaster service as part of the `paymasterService` capability. The fields in this object are defined by the paymaster service provider; CDP forwards them to the paymaster unchanged. This field is only valid when a paymaster is configured for the request. Providing `paymasterContext` without a paymaster configured results in an `invalid_request` error.
    - `dataSuffix` string: The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
  - SendUserOperationSimulationInput
    - `operation` 'sendUserOperation', required: Rule operation to simulate.
    - `address` string, required: The Smart Account address.
    - `userOpHash` string, required: The hash of the prepared user operation.
  - SignSolTransactionSimulationInput
    - `operation` 'signSolTransaction', required: Rule operation to simulate.
    - `address` string, required: The base58 encoded address of the Solana account.
    - `network` 'solana' | 'solana-devnet': The Solana network the transaction targets. Required when using versioned transactions that reference address lookup tables, since resolving those tables requires querying a specific network. Optional otherwise.
    - `transaction` string, required: The base64 encoded transaction to evaluate.
  - SendSolTransactionSimulationInput
    - `operation` 'sendSolTransaction', required: Rule operation to simulate.
    - `network` 'solana' | 'solana-devnet', required: The Solana network to send the transaction to.
    - `transaction` string, required: The base64 encoded transaction to evaluate. This transaction can contain multiple instructions for native Solana batching.
    - `useCdpSponsor` boolean: Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the server wallet. When false, the server wallet is responsible for paying the transaction fees.
  - SignSolMessageSimulationInput
    - `operation` 'signSolMessage', required: Rule operation to simulate.
    - `address` string, required: The base58 encoded address of the Solana account.
    - `message` string, required: The arbitrary message to evaluate.
    - `encoding` 'utf8' | 'base64': The encoding of the message. Use `utf8` to evaluate the literal UTF-8 bytes of the message, or `base64` to decode an RFC 4648 standard Base64 string before evaluating. Base64 input must use the standard `+` and `/` alphabet with `=` padding where required. If omitted, the message is interpreted as UTF-8.
  - SignEndUserEvmHashSimulationInput
    - `operation` 'signEndUserEvmHash', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The 0x-prefixed address of the EVM account belonging to the end user.
    - `hash` string, required: The arbitrary 32 byte hash to evaluate.
  - SignEndUserEvmTransactionSimulationInput
    - `operation` 'signEndUserEvmTransaction', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The 0x-prefixed address of the EVM account belonging to the end user.
    - `transaction` string, required: The RLP-encoded transaction to evaluate, as a 0x-prefixed hex string.
  - SendEndUserEvmTransactionSimulationInput
    - `operation` 'sendEndUserEvmTransaction', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The 0x-prefixed address of the EVM account belonging to the end user.
    - `network` 'base' | 'base-sepolia' | 'ethereum' | 'ethereum-sepolia' | 'avalanche' | 'polygon' | 'optimism' | 'arbitrum' | 'arbitrum-sepolia' | 'world' | 'world-sepolia', required: The network to send the transaction to.
    - `transaction` string, required: The RLP-encoded transaction to evaluate, as a 0x-prefixed hex string.
  - SignEndUserEvmMessageSimulationInput
    - `operation` 'signEndUserEvmMessage', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The 0x-prefixed address of the EVM account belonging to the end user.
    - `message` string, required: The message to evaluate.
  - SignEndUserEvmTypedDataSimulationInput
    - `operation` 'signEndUserEvmTypedData', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The 0x-prefixed address of the EVM account belonging to the end user.
    - `typedData` EIP712Message, required: The message to sign using EIP-712.
      - `domain` EIP712Domain, required: The domain of the EIP-712 typed data.
        - `name` string: The name of the DApp or protocol.
        - `version` string: The version of the DApp or protocol.
        - `chainId` integer: The chain ID of the EVM network.
        - `verifyingContract` string: The 0x-prefixed EVM address of the verifying smart contract.
        - `salt` string: The optional 32-byte 0x-prefixed hex salt for domain separation.
      - `types` EIP712Types, required: A mapping of struct names to an array of type objects (name + type). Each key corresponds to a type name (e.g., "`EIP712Domain`", "`PermitTransferFrom`").
      - `primaryType` string, required: The primary type of the message. This is the name of the struct in the `types` object that is the root of the message.
      - `message` object, required: The message to sign. The structure of this message must match the `primaryType` struct in the `types` object.
  - SendEndUserOperationSimulationInput
    - `operation` 'sendEndUserOperation', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The Smart Account address.
    - `network` 'base-sepolia' | 'base' | 'arbitrum' | 'optimism' | 'zora' | 'polygon' | 'bnb' | 'avalanche' | 'ethereum' | 'ethereum-sepolia', required: The network the user operation is for.
    - `calls` EvmCall[], required: The list of calls to make from the Smart Account.
      - `to` string, required: The address the call is directed to.
      - `value` string, required: The amount of ETH to send with the call, in wei.
      - `data` string, required: The call data to send. This is the hex-encoded data of the function call consisting of the method selector and the function arguments.
      - `overrideGasLimit` string: The override gas limit to use for the call instead of the bundler's estimated gas limit.
    - `useCdpPaymaster` boolean, required: Whether to use the CDP Paymaster for the user operation.
    - `paymasterUrl` string, uri: The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the useCdpPaymaster option.
    - `paymasterContext` PaymasterContext: The ERC-7677 `context` object forwarded to the paymaster service as part of the `paymasterService` capability. The fields in this object are defined by the paymaster service provider; CDP forwards them to the paymaster unchanged. This field is only valid when a paymaster is configured for the request. Providing `paymasterContext` without a paymaster configured results in an `invalid_request` error.
    - `dataSuffix` string: The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
  - SignEndUserSolTransactionSimulationInput
    - `operation` 'signEndUserSolTransaction', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The base58 encoded address of the Solana account belonging to the end user.
    - `network` 'solana' | 'solana-devnet': The Solana network the transaction targets. Required when using versioned transactions that reference address lookup tables, since resolving those tables requires querying a specific network. Optional otherwise.
    - `transaction` string, required: The base64 encoded transaction to evaluate.
  - SendEndUserSolTransactionSimulationInput
    - `operation` 'sendEndUserSolTransaction', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The base58 encoded address of the Solana account belonging to the end user.
    - `network` 'solana' | 'solana-devnet', required: The Solana network to send the transaction to.
    - `transaction` string, required: The base64 encoded transaction to evaluate. This transaction can contain multiple instructions for native Solana batching.
    - `useCdpSponsor` boolean: Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees.
  - SignEndUserSolMessageSimulationInput
    - `operation` 'signEndUserSolMessage', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The base58 encoded address of the Solana account belonging to the end user.
    - `message` string, required: The base64 encoded arbitrary message to evaluate.
  - SendEndUserEvmAssetSimulationInput
    - `operation` 'sendEndUserEvmAsset', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The EVM account address to send USDC from.
    - `asset` 'usdc', required: The asset to send.
    - `to` string, required: The 0x-prefixed address of the recipient.
    - `amount` string, required: The amount of USDC to send as a decimal string (e.g. "1.5" or "25.50").
    - `network` 'base' | 'base-sepolia' | 'ethereum' | 'ethereum-sepolia' | 'avalanche' | 'polygon' | 'optimism' | 'arbitrum' | 'arbitrum-sepolia' | 'world' | 'world-sepolia', required: The EVM network to send USDC on.
    - `useCdpPaymaster` boolean: Whether to use CDP Paymaster for gas sponsorship on Smart Accounts. Ignored for EOAs; cannot be used with paymasterUrl.
    - `paymasterUrl` string, uri: Optional custom Paymaster URL for gas sponsorship on Smart Accounts. Cannot be used with useCdpPaymaster.
    - `paymasterContext` PaymasterContext: The ERC-7677 `context` object forwarded to the paymaster service as part of the `paymasterService` capability. The fields in this object are defined by the paymaster service provider; CDP forwards them to the paymaster unchanged. This field is only valid when a paymaster is configured for the request. Providing `paymasterContext` without a paymaster configured results in an `invalid_request` error.
  - SendEndUserSolAssetSimulationInput
    - `operation` 'sendEndUserSolAsset', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `address` string, required: The Solana account address to send USDC from.
    - `asset` 'usdc', required: The asset to send.
    - `to` string, required: The base58 encoded address of the recipient.
    - `amount` string, required: The amount of USDC to send as a decimal string (e.g. "1.5" or "25.50").
    - `network` 'solana' | 'solana-devnet', required: The Solana network to send USDC on.
    - `createRecipientAta` boolean: Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn't exist. When true, the sender pays the rent-exempt minimum to create the recipient's USDC ATA. When false, the transaction will fail if the recipient doesn't have a USDC ATA.
    - `useCdpSponsor` boolean: Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees.
  - CreateEndUserEvmSwapSimulationInput
    - `operation` 'createEndUserEvmSwap', required: Rule operation to simulate.
    - `userId` string, required: The ID of the end user.
    - `taker` string, required: The end user's EVM address (EOA or smart account) that will send fromToken. Must belong to this end user.
    - `network` 'base' | 'ethereum' | 'arbitrum' | 'optimism' | 'polygon', required: The network on which to perform the swap.
    - `fromToken` string, required: The 0x-prefixed contract address of the token to sell.
    - `toToken` string, required: The 0x-prefixed contract address of the token to buy.
    - `fromAmount` string, required: The amount of `fromToken` to sell, in atomic units. For example, `100000000000000000` when selling WETH equates to 0.1 WETH.
    - `slippageBps` integer: Maximum slippage in basis points (100 = 1%). Sets the minimum output floor baked into the transaction calldata. If the onchain price moves beyond this tolerance, the transaction reverts. Default is 100 (1%).
    - `useCdpPaymaster` boolean: Whether to use the CDP Paymaster for the user operation.
    - `paymasterUrl` string, uri: The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the useCdpPaymaster option.

## Response `200`

Policy simulation result.

- PolicySimulationResult: The action the real operation would take and why. `matchedRule` is present exactly when `reason` is `rule_accepted` or `rule_rejected`.
  - `action` 'accept' | 'reject', required: Whether the real operation would be accepted or rejected.
  - `reason` 'rule_accepted' | 'rule_rejected' | 'no_rule_matched' | 'no_rule_for_operation', required: Why the operation got its `action`. Each value implies exactly one `action`. Within a policy, a matching `reject` rule overrides any matching `accept` rule, regardless of rule order. With `accept`: `rule_accepted` means `matchedRule` matched all of its criteria, its action is `accept`, and no `reject` rule in the same policy matched. `no_rule_for_operation` means no rule targeted the operation, so it was accepted by default. With `reject`: `rule_rejected` means `matchedRule` matched all of its criteria and its action is `reject`, so the rejection is caused by the entire rule. `no_rule_matched` means at least one rule targeted the operation but none matched, so it was rejected by default; `unmatchedRules` shows the criterion that disqualified each one.
  - `matchedRule` MatchedPolicyRule: The rule whose action decided the evaluation.
    - `policy` EvaluatedPolicy, required: A policy consulted during evaluation, at the version evaluated.
      - `id` string, required: The ID of the policy.
      - `scope` 'project' | 'account', required: The scope of the policy.
      - `updatedAt` string, date-time, required: The version of the policy evaluated. Rule and criterion indices refer to this version.
    - `ruleIndex` integer, required: Zero-based index into the policy's `rules`.
    - `rule` union, required: The full rule as defined at the evaluated policy version (`policy.updatedAt`).
      - intersection
        - [`SignEvmTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEvmTransactionRule)
      - intersection
        - [`SendEvmTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendEvmTransactionRule)
      - intersection
        - [`SignEvmMessageRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEvmMessageRule)
      - intersection
        - [`SignEvmTypedDataRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEvmTypedDataRule)
      - intersection
        - [`SignSolTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignSolTransactionRule)
      - intersection
        - [`SendSolTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendSolTransactionRule)
      - intersection
        - [`SignSolMessageRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignSolMessageRule)
      - intersection
        - [`SignEvmHashRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEvmHashRule)
      - intersection
        - [`PrepareUserOperationRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FPrepareUserOperationRule)
      - intersection
        - [`SendUserOperationRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendUserOperationRule)
      - intersection
        - [`SignEndUserEvmTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEndUserEvmTransactionRule)
      - intersection
        - [`SendEndUserEvmTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendEndUserEvmTransactionRule)
      - intersection
        - [`SignEndUserEvmMessageRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEndUserEvmMessageRule)
      - intersection
        - [`SignEndUserEvmTypedDataRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEndUserEvmTypedDataRule)
      - intersection
        - [`SignEndUserEvmHashRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEndUserEvmHashRule)
      - intersection
        - [`SignEndUserSolTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEndUserSolTransactionRule)
      - intersection
        - [`SendEndUserSolTransactionRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendEndUserSolTransactionRule)
      - intersection
        - [`SignEndUserSolMessageRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSignEndUserSolMessageRule)
      - intersection
        - [`SendEndUserEvmAssetRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendEndUserEvmAssetRule)
      - intersection
        - [`SendEndUserSolAssetRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendEndUserSolAssetRule)
      - intersection
        - [`SendEndUserOperationRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FSendEndUserOperationRule)
      - intersection
        - [`CreateEndUserEvmSwapRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FCreateEndUserEvmSwapRule)
      - intersection
        - [`TransferRule`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FTransferRule)
    - `observations` PolicyCriterionObservation[]: The value each criterion was compared against, index-aligned with `rule.criteria`: `observations[i]` belongs to `rule.criteria[i]` and has the same `type`. Either every criterion has an entry or the field is omitted. Empty when the rule has no criteria.
      - union: The value taken from the operation that a criterion was compared against, discriminated by the criterion's `type`. Amounts use the criterion's units: integer strings of base units (wei, lamports, or token atomic units) and USD in integer cents, so a unit mistake in a rule shows as a difference in magnitude. A field is omitted when the operation has no such value; each field says when that happens. Values come only from the request, the prepared user operation it names, transaction simulation, and the rate-limit counters the criterion reads. These are never returned: signatures, raw transaction bytes, calldata or instruction data beyond the decoded selector, instruction and arguments, the operations or accounts that make up a rate-limit total, and simulation results other than the net USD change. A string longer than its `maxLength` is cut to its first `maxLength` characters and marked `truncated: true`.
        - EthValueObservation: The transaction `value` an `ethValue` criterion compared.
          - `type` 'ethValue', required: The criterion type.
          - `ethValue` string, required: The transaction `value`, in wei. `0` when the transaction transfers no ETH.
        - EvmAddressObservation: The transaction `to` address an `evmAddress` criterion compared. For a token transfer, this is the token contract, not the token recipient; use an `evmData` criterion to constrain the recipient.
          - `type` 'evmAddress', required: The criterion type.
          - `address` string: The transaction `to` address. Omitted for a contract-creation transaction, which has none.
        - EvmNetworkObservation: The network an `evmNetwork` criterion compared.
          - `type` 'evmNetwork', required: The criterion type.
          - `network` string: The network the operation targets, from the request's `network` or derived from the transaction's chain ID. Omitted when the chain ID is not a supported network.
          - `chainId` integer: The chain ID from the transaction. Omitted when the network came from the request's `network`.
        - EvmDataObservation: The call an `evmData` criterion decoded from the transaction `data` with the criterion's `abi`. Parameters are checked against the first of the criterion's `conditions` whose `function` equals `function`.
          - `type` 'evmData', required: The criterion type.
          - `selector` string: The 4-byte function selector. Omitted when `data` is shorter than 4 bytes.
          - `function` string: The name of the ABI function with this selector. Omitted when no function in the `abi` has it.
          - `arguments` ObservedArgument[], required: The decoded arguments of `function`, in ABI order. Empty when `function` is omitted. Only the first 32 arguments are returned.
            - `name` string, required: The argument name from the ABI or IDL. Empty when the ABI leaves it unnamed.
            - `type` string, required: The argument type from the ABI or IDL.
            - `value` string, required: The decoded value as text: integers in decimal base units, EVM addresses 0x-prefixed, Solana public keys in base58, bytes 0x-prefixed hex, booleans `true` or `false`, strings as-is, and arrays, tuples, and structs as compact JSON.
            - `truncated` boolean, required: Whether `value` was cut to its first 256 characters.
        - EvmMessageObservation: The message an `evmMessage` criterion matched its `match` expression against.
          - `type` 'evmMessage', required: The criterion type.
          - `message` string, required: The message exactly as matched, including line breaks. When `encoding` is `hex`, the message bytes are not valid UTF-8 and are shown as a 0x-prefixed hex string instead.
          - `encoding` 'utf8' | 'hex', required: How `message` represents the matched bytes: `utf8` for the text itself, or `hex` for a 0x-prefixed hex string when the bytes are not valid UTF-8.
          - `truncated` boolean, required: Whether `message` was cut to its first 2048 characters. The expression was matched against the whole message.
        - EvmTypedDataFieldObservation: The typed data fields an `evmTypedDataField` criterion compared. The message's types must match the criterion's `types` before any condition is checked.
          - `type` 'evmTypedDataField', required: The criterion type.
          - `typesMatched` boolean, required: Whether the message's types matched the criterion's `types`. When `false`, no condition was checked and `fields` is empty.
          - `fields` ObservedTypedDataField[], required: The fields that decided the criterion. When the criterion is unmet, this is the field of the first failing condition only. When it is met, this is the field of every condition, in `conditions` order.
            - `conditionIndex` integer, required: Zero-based index into the criterion's `conditions`.
            - `value` string: The value at the condition's `path`, as text in the same format as `ObservedArgument.value`. Omitted when the message has no value at that path.
            - `truncated` boolean, required: Whether `value` was cut to its first 256 characters.
        - EvmTypedDataVerifyingContractObservation: The domain `verifyingContract` an `evmTypedDataVerifyingContract` criterion compared.
          - `type` 'evmTypedDataVerifyingContract', required: The criterion type.
          - `address` string: The domain's `verifyingContract`. Omitted when the domain has none.
        - NetUSDChangeObservation: The simulated net USD change a `netUSDChange` criterion compared.
          - `type` 'netUSDChange', required: The criterion type.
          - `skipped` boolean, required: Whether simulation was skipped because the operation targets a testnet. A skipped criterion is treated as met, as in the real operation, and `changeCents` is omitted.
          - `changeCents` integer: The net USD change, in cents, of the transaction's asset transfers and exposure, as simulated at evaluation time. Present exactly when `skipped` is `false`.
        - SolAddressObservation: The native SOL transfer recipients a `solAddress` criterion compared.
          - `type` 'solAddress', required: The criterion type.
          - `addresses` string[], required: The recipient of each System Program transfer, in instruction order. Empty when the transaction has none.
        - SolValueObservation: The native SOL transfer amounts a `solValue` criterion compared.
          - `type` 'solValue', required: The criterion type.
          - `solValues` string[], required: The amount of each System Program transfer, in lamports, in instruction order. Empty when the transaction has none.
        - SplAddressObservation: The SPL token transfer recipients an `splAddress` criterion compared. For a raw transaction these are the recipients' token accounts (usually associated token accounts), not their wallet addresses. For `sendEndUserSolAsset` they are wallet addresses.
          - `type` 'splAddress', required: The criterion type.
          - `addresses` string[], required: The recipient of each SPL token transfer, in instruction order. Empty when the transaction has none.
        - SplValueObservation: The SPL token transfer amounts an `splValue` criterion compared.
          - `type` 'splValue', required: The criterion type.
          - `splValues` string[], required: The amount of each `TransferChecked` instruction, in the token's atomic units (not scaled by decimals), in instruction order. Empty when the transaction has none.
        - MintAddressObservation: The token mints of the SPL token transfers a `mintAddress` criterion compared.
          - `type` 'mintAddress', required: The criterion type.
          - `addresses` string[], required: The mint of each SPL token transfer, in instruction order. Empty when the transaction has none.
        - SolDataObservation: The instructions a `solData` criterion decoded with the criterion's `idls`. The criterion is met when every instruction matches at least one of its `conditions`.
          - `type` 'solData', required: The criterion type.
          - `instructions` ObservedInstruction[], required: The instructions that decided the criterion. When the criterion is unmet, this is the first instruction that matched no condition, only. When it is met, this is every instruction, in transaction order.
            - `index` integer, required: Zero-based index of the instruction in the transaction.
            - `programId` string, required: The program the instruction invokes.
            - `instruction` string: The instruction name from the IDL. Omitted when no IDL in the criterion decodes the instruction.
            - `arguments` ObservedArgument[], required: The decoded arguments, in IDL order. Empty when `instruction` is omitted. Only the first 32 arguments are returned.
              - …
          - `truncated` boolean, required: Whether `instructions` was cut to its first 64 entries.
        - SolMessageObservation: The message a `solMessage` criterion matched its `match` expression against, after decoding the request's base64 `message` when its `encoding` is `base64`.
          - `type` 'solMessage', required: The criterion type.
          - `message` string, required: The message exactly as matched, including line breaks. When `encoding` is `hex`, the message bytes are not valid UTF-8 and are shown as a 0x-prefixed hex string instead.
          - `encoding` 'utf8' | 'hex', required: How `message` represents the matched bytes: `utf8` for the text itself, or `hex` for a 0x-prefixed hex string when the bytes are not valid UTF-8.
          - `truncated` boolean, required: Whether `message` was cut to its first 2048 characters. The expression was matched against the whole message.
        - ProgramIdObservation: The instruction program IDs a `programId` criterion compared.
          - `type` 'programId', required: The criterion type.
          - `programIds` string[], required: The program ID of each instruction, in instruction order.
        - SolNetworkObservation: The network a `solNetwork` criterion compared.
          - `type` 'solNetwork', required: The criterion type.
          - `network` string: The request's `network`. Omitted when the request has none, which no `networks` value matches.
        - RateLimitingObservation: The rate-limit usage a `rateLimiting` criterion compared, read without being consumed. The criterion is met when the projected usage stays within the limit and unmet when it exceeds the limit. Totals can change before a real call.
          - `type` 'rateLimiting', required: The criterion type.
          - `scope` 'project' | 'end_user', required: Whose operations the counter totals. `project` counts operations of every account in the project, not only the account in the request. `end_user` counts operations of the end user in the request.
          - `usage` union, required: The usage totals the criterion compared, discriminated by `type`: `count` when the criterion sets `maxCount`, `value` when it sets `maxValueCents`.
            - RateLimitCountUsage: Operation counts for a `maxCount` criterion. The criterion is met when `windowCount + pendingCount + 1 <= maxCount` and unmet when the sum exceeds `maxCount`, where `1` is this operation.
              - …
            - RateLimitValueUsage: USD totals, in cents, for a `maxValueCents` criterion. The criterion is met when `windowCents + pendingCents + operationCents <= maxValueCents` and unmet when the sum exceeds `maxValueCents`.
              - …
  - `unmatchedRules` UnmatchedPolicyRule[], required: Rules targeting the operation that were evaluated and did not match. Within a policy, `reject` rules are evaluated before `accept` rules, and evaluation stops at `matchedRule`. Rules that were not evaluated are omitted. When there is no `matchedRule`, every rule that targeted the operation appears here. Among matching rules with the same action, the first in policy order is `matchedRule`.
    - `policy` EvaluatedPolicy, required: A policy consulted during evaluation, at the version evaluated.
      - `id` string, required: The ID of the policy.
      - `scope` 'project' | 'account', required: The scope of the policy.
      - `updatedAt` string, date-time, required: The version of the policy evaluated. Rule and criterion indices refer to this version.
    - `ruleIndex` integer, required: Zero-based index into the policy's `rules`.
    - `criterionIndex` integer, required: Zero-based index into the rule's `criteria` of the first unmet criterion.
    - `criterion` union, required: The unmet criterion, exactly as defined in the rule, discriminated by `type`.
      - EthValueCriterion: A schema for specifying a criterion for the `value` field of an EVM transaction.
        - `type` 'ethValue', required: The type of criterion to use. This should be `ethValue`.
        - `ethValue` string, required: The amount of ETH, in wei, that the transaction's `value` field should be compared to.
        - `operator` '>' | '>=' | '<' | '<=' | '==', required: The operator to use for the comparison. The transaction's `value` field will be on the left-hand side of the operator, and the `ethValue` field will be on the right-hand side.
      - EvmAddressCriterion: A schema for specifying a criterion for the `to` field of an EVM transaction.
        - `type` 'evmAddress', required: The type of criterion to use. This should be `evmAddress`.
        - `addresses` string[], required: A list of 0x-prefixed EVM addresses that the transaction's `to` field should be compared to. There is a limit of 300 addresses per criterion.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. The transaction's `to` field will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
      - EvmNetworkCriterion: A schema for specifying a criterion for the intended `network` of an EVM transaction.
        - `type` 'evmNetwork', required: The type of criterion to use. This should be `evmNetwork`.
        - `networks` string[], required: A list of EVM network identifiers that the transaction's intended `network` should be compared to.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. The transaction's intended `network` will be on the left-hand side of the operator, and the `networks` field will be on the right-hand side.
      - EvmDataCriterion: A schema for specifying a criterion for the `data` field of an EVM transaction.
        - `type` 'evmData', required: The type of criterion to use. This should be `evmData`.
        - `abi` union, required: The ABI of the smart contract being called. This can be a partial structure with only specific functions.
          - 'erc20' | 'erc721' | 'erc1155': A reference to an established EIP standard. When referencing a `KnownAbiType` within a policy rule configuring an `EvmDataCriterion`, criteria will only decode function data officially documented in the standard. For more information on supported token standards, see the links below. - [erc20 - Token Standard](https://eips.ethereum.org/EIPS/eip-20). - [erc721 - Non-Fungible Token Standard](https://eips.ethereum.org/EIPS/eip-721). - [erc1155 - Multi Token Standard](https://eips.ethereum.org/EIPS/eip-1155).
          - union[]: Contract ABI Specification following Solidity's external JSON interface format.
            - union
              - …
        - `conditions` EvmDataCondition[], required: A list of conditions to apply against the function and encoded arguments in the transaction's `data` field. Each condition must be met in order for this policy to be accepted or rejected.
          - `function` string, required: The name of a smart contract function being called.
          - `params` union[]: An optional list of parameter conditions to apply against encoded arguments in the transaction's `data` field.
            - union: A list of parameter conditions to apply against encoded arguments in the transaction's `data` field.
              - …
      - EvmMessageCriterion: A schema for specifying a criterion for the message being signed.
        - `type` 'evmMessage', required: The type of criterion to use. This should be `evmMessage`.
        - `match` string, required: A regular expression the message is matched against. Accepts valid regular expression syntax described by [RE2](https://github.com/google/re2/wiki/Syntax).
      - SignEvmTypedDataFieldCriterion
        - `type` 'evmTypedDataField', required: The type of criterion to use. This should be `evmTypedDataField`.
        - `types` object, required: An object containing EIP-712 type definitions, as well as a primary type for the root message object.
          - `types` object, required: EIP-712 compliant map of model names to model definitions.
          - `primaryType` string, required: The name of the root EIP-712 type. This value must be included in the `types` object.
        - `conditions` union[], required: A list of conditions to check against the data being signed. Each condition must be met for the rule to take effect.
          - union
            - EvmTypedAddressCondition: A schema for specifying criterion for an address field of an EVM typed message. The address can be deeply nested within the typed data's message.
              - …
            - EvmTypedNumericalCondition: A schema for specifying criterion for a numerical field of an EVM typed message. The value can be deeply nested within the typed data's message.
              - …
            - EvmTypedStringCondition: A schema for specifying criterion for a string field of an EVM typed message. The value can be deeply nested within the typed data's message.
              - …
      - SignEvmTypedDataVerifyingContractCriterion: A schema for specifying criterion for a domain's verifying contract.
        - `type` 'evmTypedDataVerifyingContract', required: The type of criterion to use. This should be `evmTypedDataVerifyingContract`.
        - `addresses` string[], required: A list of 0x-prefixed EVM addresses that the domain's verifying contract should be compared to. There is a limit of 300 addresses per criterion.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. The domain's verifying contract will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
      - NetUSDChangeCriterion: A schema for specifying a criterion for the USD denominated asset transfer or exposure for a transaction. This includes native transfers, as well as token transfers.
        - `type` 'netUSDChange', required: The type of criterion to use. This should be `netUSDChange`.
        - `changeCents` integer, required: The amount of USD, in cents, that the total value of a transaction's asset transfer should be compared to.
        - `operator` '>' | '>=' | '<' | '<=' | '==', required: The operator to use for the comparison. The total value of a transaction's asset transfer will be on the left-hand side of the operator, and the `changeCents` field will be on the right-hand side.
      - SolAddressCriterion: The criterion for the recipient addresses of a Solana transaction's native transfer instruction.
        - `type` 'solAddress', required: The type of criterion to use. This should be `solAddress`.
        - `addresses` string[], required: The Solana addresses that are compared to the list of native transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. Each of the native transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
      - SolValueCriterion: The criterion for the SOL value in lamports of a native transfer instruction in a Solana transaction.
        - `type` 'solValue', required: The type of criterion to use. This should be `solValue`.
        - `solValue` string, required: The amount of SOL in lamports that the transaction instruction's `value` field should be compared to.
        - `operator` '>' | '>=' | '<' | '<=' | '==', required: The operator to use for the comparison. The transaction instruction's `value` field will be on the left-hand side of the operator, and the `solValue` field will be on the right-hand side.
      - SplAddressCriterion: The criterion for the recipient addresses of a Solana transaction's SPL token transfer instructions.
        - `type` 'splAddress', required: The type of criterion to use. This should be `splAddress`.
        - `addresses` string[], required: The Solana addresses that are compared to the list of SPL token transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. Each of the SPL token transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
      - SplValueCriterion: The criterion for the SPL token value of a SPL token transfer instruction in a Solana transaction.
        - `type` 'splValue', required: The type of criterion to use. This should be `splValue`.
        - `splValue` string, required: The amount of the SPL token that the transaction instruction's `value` field should be compared to.
        - `operator` '>' | '>=' | '<' | '<=' | '==', required: The operator to use for the comparison. The transaction instruction's `value` field will be on the left-hand side of the operator, and the `splValue` field will be on the right-hand side.
      - MintAddressCriterion: The criterion for the token mint addresses of a Solana transaction's SPL token transfer instructions.
        - `type` 'mintAddress', required: The type of criterion to use. This should be `mintAddress`.
        - `addresses` string[], required: The Solana addresses that are compared to the list of token mint addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. Each of the token mint addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
      - SolDataCriterion: A schema for specifying criterion for instruction data in a Solana transaction.
        - `type` 'solData', required: The type of criterion to use. This should be `solData`.
        - `idls` union[], required: List of IDL specifications. Can contain known program names (strings) or custom IDL objects.
          - union
            - 'SystemProgram' | 'TokenProgram' | 'AssociatedTokenProgram': A reference to an established Solana program. When referencing a `KnownIdlType` within a policy rule configuring an `SolDataCriterion`, criteria will decode instruction data as documented in the programs. For more information on supported programs, see the links below. - [SystemProgram](https://docs.rs/solana-program/latest/solana_program/system_instruction/enum.SystemInstruction.html). - [TokenProgram](https://docs.rs/spl-token/latest/spl_token/instruction/enum.TokenInstruction.html). - [AssociatedTokenProgram](https://docs.rs/spl-associated-token-account/latest/spl_associated_token_account/instruction/index.html).
            - Idl: IDL Specification following Anchor's IDL format v0.30+.
              - …
        - `conditions` SolDataCondition[], required: A list of conditions to apply against the transaction instruction. Only one condition must evaluate to true for this criterion to be met.
          - `instruction` string, required: The instruction name.
          - `params` union[]: Parameter conditions for the instruction.
            - union: A list of parameter conditions to apply against a specific instruction's data.
              - …
      - SolMessageCriterion: The criterion for the message of a Solana transaction.
        - `type` 'solMessage', required: The type of criterion to use. This should be `solMessage`.
        - `match` string, required: A regular expression the field is matched against.
      - ProgramIdCriterion: The criterion for the program IDs of a Solana transaction's instructions.
        - `type` 'programId', required: The type of criterion to use. This should be `programId`.
        - `programIds` string[], required: The Solana program IDs that are compared to the list of program IDs in the transaction's instructions.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. Each of the program IDs in the transaction's instructions will be on the left-hand side of the operator, and the `programIds` field will be on the right-hand side.
      - SolNetworkCriterion: The criterion for the Solana network of a transaction.
        - `type` 'solNetwork', required: The type of criterion to use. This should be `solNetwork`.
        - `networks` string[], required: The Solana networks that the transaction's intended network should be compared to.
        - `operator` 'in' | 'not in', required: The operator to use for the comparison. The transaction's intended network will be on the left-hand side of the operator, and the `networks` field will be on the right-hand side.
    - `observed` union: The value taken from the operation that a criterion was compared against, discriminated by the criterion's `type`. Amounts use the criterion's units: integer strings of base units (wei, lamports, or token atomic units) and USD in integer cents, so a unit mistake in a rule shows as a difference in magnitude. A field is omitted when the operation has no such value; each field says when that happens. Values come only from the request, the prepared user operation it names, transaction simulation, and the rate-limit counters the criterion reads. These are never returned: signatures, raw transaction bytes, calldata or instruction data beyond the decoded selector, instruction and arguments, the operations or accounts that make up a rate-limit total, and simulation results other than the net USD change. A string longer than its `maxLength` is cut to its first `maxLength` characters and marked `truncated: true`.
      - EthValueObservation: The transaction `value` an `ethValue` criterion compared.
        - `type` 'ethValue', required: The criterion type.
        - `ethValue` string, required: The transaction `value`, in wei. `0` when the transaction transfers no ETH.
      - EvmAddressObservation: The transaction `to` address an `evmAddress` criterion compared. For a token transfer, this is the token contract, not the token recipient; use an `evmData` criterion to constrain the recipient.
        - `type` 'evmAddress', required: The criterion type.
        - `address` string: The transaction `to` address. Omitted for a contract-creation transaction, which has none.
      - EvmNetworkObservation: The network an `evmNetwork` criterion compared.
        - `type` 'evmNetwork', required: The criterion type.
        - `network` string: The network the operation targets, from the request's `network` or derived from the transaction's chain ID. Omitted when the chain ID is not a supported network.
        - `chainId` integer: The chain ID from the transaction. Omitted when the network came from the request's `network`.
      - EvmDataObservation: The call an `evmData` criterion decoded from the transaction `data` with the criterion's `abi`. Parameters are checked against the first of the criterion's `conditions` whose `function` equals `function`.
        - `type` 'evmData', required: The criterion type.
        - `selector` string: The 4-byte function selector. Omitted when `data` is shorter than 4 bytes.
        - `function` string: The name of the ABI function with this selector. Omitted when no function in the `abi` has it.
        - `arguments` ObservedArgument[], required: The decoded arguments of `function`, in ABI order. Empty when `function` is omitted. Only the first 32 arguments are returned.
          - `name` string, required: The argument name from the ABI or IDL. Empty when the ABI leaves it unnamed.
          - `type` string, required: The argument type from the ABI or IDL.
          - `value` string, required: The decoded value as text: integers in decimal base units, EVM addresses 0x-prefixed, Solana public keys in base58, bytes 0x-prefixed hex, booleans `true` or `false`, strings as-is, and arrays, tuples, and structs as compact JSON.
          - `truncated` boolean, required: Whether `value` was cut to its first 256 characters.
      - EvmMessageObservation: The message an `evmMessage` criterion matched its `match` expression against.
        - `type` 'evmMessage', required: The criterion type.
        - `message` string, required: The message exactly as matched, including line breaks. When `encoding` is `hex`, the message bytes are not valid UTF-8 and are shown as a 0x-prefixed hex string instead.
        - `encoding` 'utf8' | 'hex', required: How `message` represents the matched bytes: `utf8` for the text itself, or `hex` for a 0x-prefixed hex string when the bytes are not valid UTF-8.
        - `truncated` boolean, required: Whether `message` was cut to its first 2048 characters. The expression was matched against the whole message.
      - EvmTypedDataFieldObservation: The typed data fields an `evmTypedDataField` criterion compared. The message's types must match the criterion's `types` before any condition is checked.
        - `type` 'evmTypedDataField', required: The criterion type.
        - `typesMatched` boolean, required: Whether the message's types matched the criterion's `types`. When `false`, no condition was checked and `fields` is empty.
        - `fields` ObservedTypedDataField[], required: The fields that decided the criterion. When the criterion is unmet, this is the field of the first failing condition only. When it is met, this is the field of every condition, in `conditions` order.
          - `conditionIndex` integer, required: Zero-based index into the criterion's `conditions`.
          - `value` string: The value at the condition's `path`, as text in the same format as `ObservedArgument.value`. Omitted when the message has no value at that path.
          - `truncated` boolean, required: Whether `value` was cut to its first 256 characters.
      - EvmTypedDataVerifyingContractObservation: The domain `verifyingContract` an `evmTypedDataVerifyingContract` criterion compared.
        - `type` 'evmTypedDataVerifyingContract', required: The criterion type.
        - `address` string: The domain's `verifyingContract`. Omitted when the domain has none.
      - NetUSDChangeObservation: The simulated net USD change a `netUSDChange` criterion compared.
        - `type` 'netUSDChange', required: The criterion type.
        - `skipped` boolean, required: Whether simulation was skipped because the operation targets a testnet. A skipped criterion is treated as met, as in the real operation, and `changeCents` is omitted.
        - `changeCents` integer: The net USD change, in cents, of the transaction's asset transfers and exposure, as simulated at evaluation time. Present exactly when `skipped` is `false`.
      - SolAddressObservation: The native SOL transfer recipients a `solAddress` criterion compared.
        - `type` 'solAddress', required: The criterion type.
        - `addresses` string[], required: The recipient of each System Program transfer, in instruction order. Empty when the transaction has none.
      - SolValueObservation: The native SOL transfer amounts a `solValue` criterion compared.
        - `type` 'solValue', required: The criterion type.
        - `solValues` string[], required: The amount of each System Program transfer, in lamports, in instruction order. Empty when the transaction has none.
      - SplAddressObservation: The SPL token transfer recipients an `splAddress` criterion compared. For a raw transaction these are the recipients' token accounts (usually associated token accounts), not their wallet addresses. For `sendEndUserSolAsset` they are wallet addresses.
        - `type` 'splAddress', required: The criterion type.
        - `addresses` string[], required: The recipient of each SPL token transfer, in instruction order. Empty when the transaction has none.
      - SplValueObservation: The SPL token transfer amounts an `splValue` criterion compared.
        - `type` 'splValue', required: The criterion type.
        - `splValues` string[], required: The amount of each `TransferChecked` instruction, in the token's atomic units (not scaled by decimals), in instruction order. Empty when the transaction has none.
      - MintAddressObservation: The token mints of the SPL token transfers a `mintAddress` criterion compared.
        - `type` 'mintAddress', required: The criterion type.
        - `addresses` string[], required: The mint of each SPL token transfer, in instruction order. Empty when the transaction has none.
      - SolDataObservation: The instructions a `solData` criterion decoded with the criterion's `idls`. The criterion is met when every instruction matches at least one of its `conditions`.
        - `type` 'solData', required: The criterion type.
        - `instructions` ObservedInstruction[], required: The instructions that decided the criterion. When the criterion is unmet, this is the first instruction that matched no condition, only. When it is met, this is every instruction, in transaction order.
          - `index` integer, required: Zero-based index of the instruction in the transaction.
          - `programId` string, required: The program the instruction invokes.
          - `instruction` string: The instruction name from the IDL. Omitted when no IDL in the criterion decodes the instruction.
          - `arguments` ObservedArgument[], required: The decoded arguments, in IDL order. Empty when `instruction` is omitted. Only the first 32 arguments are returned.
            - `name` string, required: The argument name from the ABI or IDL. Empty when the ABI leaves it unnamed.
            - `type` string, required: The argument type from the ABI or IDL.
            - `value` string, required: The decoded value as text: integers in decimal base units, EVM addresses 0x-prefixed, Solana public keys in base58, bytes 0x-prefixed hex, booleans `true` or `false`, strings as-is, and arrays, tuples, and structs as compact JSON.
            - `truncated` boolean, required: Whether `value` was cut to its first 256 characters.
        - `truncated` boolean, required: Whether `instructions` was cut to its first 64 entries.
      - SolMessageObservation: The message a `solMessage` criterion matched its `match` expression against, after decoding the request's base64 `message` when its `encoding` is `base64`.
        - `type` 'solMessage', required: The criterion type.
        - `message` string, required: The message exactly as matched, including line breaks. When `encoding` is `hex`, the message bytes are not valid UTF-8 and are shown as a 0x-prefixed hex string instead.
        - `encoding` 'utf8' | 'hex', required: How `message` represents the matched bytes: `utf8` for the text itself, or `hex` for a 0x-prefixed hex string when the bytes are not valid UTF-8.
        - `truncated` boolean, required: Whether `message` was cut to its first 2048 characters. The expression was matched against the whole message.
      - ProgramIdObservation: The instruction program IDs a `programId` criterion compared.
        - `type` 'programId', required: The criterion type.
        - `programIds` string[], required: The program ID of each instruction, in instruction order.
      - SolNetworkObservation: The network a `solNetwork` criterion compared.
        - `type` 'solNetwork', required: The criterion type.
        - `network` string: The request's `network`. Omitted when the request has none, which no `networks` value matches.
      - RateLimitingObservation: The rate-limit usage a `rateLimiting` criterion compared, read without being consumed. The criterion is met when the projected usage stays within the limit and unmet when it exceeds the limit. Totals can change before a real call.
        - `type` 'rateLimiting', required: The criterion type.
        - `scope` 'project' | 'end_user', required: Whose operations the counter totals. `project` counts operations of every account in the project, not only the account in the request. `end_user` counts operations of the end user in the request.
        - `usage` union, required: The usage totals the criterion compared, discriminated by `type`: `count` when the criterion sets `maxCount`, `value` when it sets `maxValueCents`.
          - RateLimitCountUsage: Operation counts for a `maxCount` criterion. The criterion is met when `windowCount + pendingCount + 1 <= maxCount` and unmet when the sum exceeds `maxCount`, where `1` is this operation.
            - `type` 'count', required: The usage type.
            - `windowCount` integer, required: Operations counted in the current `window`.
            - `pendingCount` integer, required: Operations added by earlier units of this simulation request. They are not persisted. Always `0` when `evaluatedUnit` is absent.
          - RateLimitValueUsage: USD totals, in cents, for a `maxValueCents` criterion. The criterion is met when `windowCents + pendingCents + operationCents <= maxValueCents` and unmet when the sum exceeds `maxValueCents`.
            - `type` 'value', required: The usage type.
            - `windowCents` integer, required: USD value, in cents, counted in the current `window`.
            - `pendingCents` integer, required: USD value, in cents, added by earlier units of this simulation request. It is not persisted. Always `0` when `evaluatedUnit` is absent.
            - `operationCents` integer, required: The absolute USD value, in cents, of this operation.
  - `evaluatedPolicies` EvaluatedPolicy[], required: Policies iterated, in order: the project policy, then the account policy. Evaluation stops at the policy containing `matchedRule`. End-user operations consult only the project policy.
    - `id` string, required: The ID of the policy.
    - `scope` 'project' | 'account', required: The scope of the policy.
    - `updatedAt` string, date-time, required: The version of the policy evaluated. Rule and criterion indices refer to this version.
  - `evaluatedUnit` EvaluatedUnit: The unit this result describes. Present only when the operation was evaluated as more than one unit: one unit per call for user operations, and one unit per signing account for Solana transactions. Each unit is evaluated against the policies separately, and `matchedRule`, `unmatchedRules`, `evaluatedPolicies`, and every observed value describe this unit only. When `action` is `reject`, this is the first unit that was rejected. When `action` is `accept`, every unit was accepted and this is the last one.
    - `index` integer, required: Zero-based index of the unit. For user operations, this is the index into the operation's `calls`.
    - `count` integer, required: The number of units the operation was split into.
    - `address` string: The Solana signing account of the unit. Omitted for user operations.

## Other responses

- `400`: Invalid simulation request.
- `401`: Unauthorized.
- `404`: Account, end user, or prepared user operation not found.
- `422`: A criterion could not be evaluated for this input, so the real operation would fail closed.
- `429`: Rate limit exceeded.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 1 breaking, 8 warning, 2 info
  - added `#/components/schemas/TransferRule` to the `matchedRule/rule/allOf[#/components/schemas/Rule]/` response property `oneOf` list for the response status `200`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `401`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `404`
  - …7 more
- **2026-10-16** `ff3c1fdef902`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/policy-engine/simulate/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
