Cubewire LogoDeveloper
Support
Onboarding
Cubewire Developer Hub Logo
SOC 2 Compliant

Developer documentation and tools for Cubewire's digital wallet infrastructure. Built for developers, by developers.

developers@cubewire.com
TwitterGitHubDiscord

Developer Tools

  • API Documentation
  • API Reference

Resources

  • Documentation

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
© 2026 Cubewire. All rights reserved.
Developer Documentation Portal•Built with ♥ for developers
  1. Cubewire Wallet
  2. Manage Transactions
  3. Simulate transaction policy evaluation

Simulate transaction policy evaluation

Simulate policy evaluation for a transaction without executing it. This endpoint validates the transaction, evaluates all applicable policies, and returns detailed step-by-step results.

Request Body

The request body mirrors the submit transaction endpoint:

FieldTypeRequiredDescription
typestringNoTransaction type (TRANSFER, CONTRACT_WRITE, CONTRACT_READ, CONTRACT_DEPLOY, MINT, BURN, RAW_SIGNING). Defaults to TRANSFER.
accountIdentifierstringNoAccount identifier method (address or bsb_account_number). Defaults to address.
senderobjectNoSender vault information (vaultId)
recipientobjectNoRecipient information (vaultId or address)
amountstringNoTransaction amount in human-readable format
assetobjectNoAsset details (type, decimals)
chainIdnumberYesBlockchain network chain ID
datastringNoHex-encoded transaction data (starts with 0x)
functionSignaturestringNoHuman-readable function signature for contract calls
gasLimitstringNoMaximum gas units allocated
gasPricestringNoGas price in Gwei (legacy transactions)
maxFeePerGasstringNoMaximum total fee per gas in Gwei (EIP-1559)
maxPriorityFeePerGasstringNoPriority fee per gas in Gwei (EIP-1559)
performChainalysisScreeningbooleanNoEnable Chainalysis sanctions/risk screening
performNotabeneScreeningbooleanNoEnable Notabene Travel Rule screening
noncestringNoTransaction sequence number for the sender address
includeDraftPoliciesbooleanNoInclude draft policies in evaluation
includePendingApprovalbooleanNoInclude pending approval policies

Simulation Process

  1. Validation — Validates transaction against schemas
  2. Policy Matching — Identifies all applicable policies
  3. Condition Evaluation — Tests each condition against transaction
  4. Action Determination — Determines resulting actions (ALLOW, BLOCK, REQUIRE_APPROVAL)
  5. Results Return — Provides detailed evaluation breakdown

Note: This endpoint does NOT create approval requests or execute transactions.

Response Fields

FieldTypeDescription
successbooleanWhether simulation completed successfully
simulationobjectSimulation results (see Simulation Object below)

Simulation Object

FieldTypeDescription
decisionenumFinal decision (ALLOW, BLOCK, REQUIRE_APPROVAL)
messagestringHuman-readable decision message
policyIdUUIDID of policy that triggered decision (nullable)
policyNamestringName of policy that triggered decision (nullable)
requiredApproversnumberNumber of approvers required (if REQUIRE_APPROVAL)
approverListIdstringApprover list ID for approvals (if REQUIRE_APPROVAL)
approversarrayList of required approvers (if REQUIRE_APPROVAL)
evaluationStepsarrayStep-by-step policy evaluation details
totalEvaluationTimeMsnumberTotal evaluation time in milliseconds
policiesEvaluatednumberNumber of policies evaluated
totalPoliciesnumberTotal policies available

Evaluation Step Object

FieldTypeDescription
policyIdUUIDPolicy identifier
policyNamestringPolicy name
prioritynumberPolicy priority (lower = higher priority)
statusstringEvaluation status (MATCHED, NOT_MATCHED, SKIPPED)
conditionsarrayCondition evaluation results
actionobjectPolicy action with type (ALLOW, BLOCK, REQUIRE_APPROVAL)
enforcementModestringEnforcement mode (ENFORCE, DRAFT)
evaluationTimeMsnumberTime taken to evaluate this policy in milliseconds

Use Cases

  • Preview what policies will match before submitting
  • Test draft policies before activating them
  • Debug policy configurations and conditions
  • Build UI policy simulation tools
  • Validate high-value transactions before execution

Required Permission

transactions:read

On this page

  • Request Body
  • Simulation Process
  • Response Fields
  • Simulation Object
  • Evaluation Step Object
  • Use Cases
  • Required Permission
  1. Cubewire Wallet
  2. Manage Transactions
  3. Simulate transaction policy evaluation

Simulate transaction policy evaluation

Simulate policy evaluation for a transaction without executing it. This endpoint validates the transaction, evaluates all applicable policies, and returns detailed step-by-step results.

Request Body

The request body mirrors the submit transaction endpoint:

FieldTypeRequiredDescription
typestringNoTransaction type (TRANSFER, CONTRACT_WRITE, CONTRACT_READ, CONTRACT_DEPLOY, MINT, BURN, RAW_SIGNING). Defaults to TRANSFER.
accountIdentifierstringNoAccount identifier method (address or bsb_account_number). Defaults to address.
senderobjectNoSender vault information (vaultId)
recipientobjectNoRecipient information (vaultId or address)
amountstringNoTransaction amount in human-readable format
assetobjectNoAsset details (type, decimals)
chainIdnumberYesBlockchain network chain ID
datastringNoHex-encoded transaction data (starts with 0x)
functionSignaturestringNoHuman-readable function signature for contract calls
gasLimitstringNoMaximum gas units allocated
gasPricestringNoGas price in Gwei (legacy transactions)
maxFeePerGasstringNoMaximum total fee per gas in Gwei (EIP-1559)
maxPriorityFeePerGasstringNoPriority fee per gas in Gwei (EIP-1559)
performChainalysisScreeningbooleanNoEnable Chainalysis sanctions/risk screening
performNotabeneScreeningbooleanNoEnable Notabene Travel Rule screening
noncestringNoTransaction sequence number for the sender address
includeDraftPoliciesbooleanNoInclude draft policies in evaluation
includePendingApprovalbooleanNoInclude pending approval policies

Simulation Process

  1. Validation — Validates transaction against schemas
  2. Policy Matching — Identifies all applicable policies
  3. Condition Evaluation — Tests each condition against transaction
  4. Action Determination — Determines resulting actions (ALLOW, BLOCK, REQUIRE_APPROVAL)
  5. Results Return — Provides detailed evaluation breakdown

Note: This endpoint does NOT create approval requests or execute transactions.

Response Fields

FieldTypeDescription
successbooleanWhether simulation completed successfully
simulationobjectSimulation results (see Simulation Object below)

Simulation Object

FieldTypeDescription
decisionenumFinal decision (ALLOW, BLOCK, REQUIRE_APPROVAL)
messagestringHuman-readable decision message
policyIdUUIDID of policy that triggered decision (nullable)
policyNamestringName of policy that triggered decision (nullable)
requiredApproversnumberNumber of approvers required (if REQUIRE_APPROVAL)
approverListIdstringApprover list ID for approvals (if REQUIRE_APPROVAL)
approversarrayList of required approvers (if REQUIRE_APPROVAL)
evaluationStepsarrayStep-by-step policy evaluation details
totalEvaluationTimeMsnumberTotal evaluation time in milliseconds
policiesEvaluatednumberNumber of policies evaluated
totalPoliciesnumberTotal policies available

Evaluation Step Object

FieldTypeDescription
policyIdUUIDPolicy identifier
policyNamestringPolicy name
prioritynumberPolicy priority (lower = higher priority)
statusstringEvaluation status (MATCHED, NOT_MATCHED, SKIPPED)
conditionsarrayCondition evaluation results
actionobjectPolicy action with type (ALLOW, BLOCK, REQUIRE_APPROVAL)
enforcementModestringEnforcement mode (ENFORCE, DRAFT)
evaluationTimeMsnumberTime taken to evaluate this policy in milliseconds

Use Cases

  • Preview what policies will match before submitting
  • Test draft policies before activating them
  • Debug policy configurations and conditions
  • Build UI policy simulation tools
  • Validate high-value transactions before execution

Required Permission

transactions:read

On this page

  • Request Body
  • Simulation Process
  • Response Fields
  • Simulation Object
  • Evaluation Step Object
  • Use Cases
  • Required Permission