trade_proof
Use it to open a trade-evidence session, issue an execution receipt, or verify an evidence artifact after a trade. Each call selects the branch with "op": begin_evidence, issue_receipt or verify_evidence. Do not use it to decide whether a trade is safe before signing (use trade_guard) and do not use it to settle a swap guard (use the venue guard tools). Returns the evidence session handle, the signed receipt, or the verification verdict, digest and matched evidence. Absorbs the deprecated names begin_trade_evidence, issue_execution_receipt and verify_evidence. Metering: begin_evidence and issue_receipt are C4 (40 credits / $0.040); verify_evidence is free for the three offline kinds (execution_pair, base_agent_swap, solana_swap) and C4 for live reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| kind | No | ||
| mode | No | ||
| user | No | ||
| asset | No | Source asset sold | |
| action | No | ||
| receipt | No | Required for mode=receipt; old execution_receipt fields | |
| chain_id | No | Execution chain id. Independent on-chain route quotes are currently available only on Ethereum mainnet (chain_id 1); other chains return [unavailable:unsupported_chain] without billing. | |
| decision | No | Required for settle modes; the signed guard decision | |
| order_id | No | ||
| providers | No | ||
| signature | No | Solana transaction signature | |
| amount_usd | No | ||
| settlement | No | ||
| protocol_id | No | ||
| submitted_at | No | ||
| swap_tx_hash | No | ||
| decision_input | No | Required quote evidence: {source, destination, routeQuotePrice, routeQuoteObservedAt} (old camelCase shape) | |
| expected_order | No | ||
| max_slippage_bps | No | Pre-committed tolerance; fixed at 50 | |
| destination_asset | No | Destination asset bought | |
| execution_receipt | No | ||
| source_group_count | No | ||
| pre_trade_attestation | No | ||
| destination_pre_trade_attestation | No |