journal_append
Record a decision in your private, wallet-scoped journal (free write).
Your durable memory on Crank: rationale, intended action, and optional expectations (e.g. {"direction": "up", "horizon": "24h"}) are stored as one opaque body only you can read back; the system later attributes realised P&L from on-chain-verified fills and marks prices at 1h/24h/7d/30d horizons. idempotency_key makes replays safe (offline queues / batch agents). Link evidence via signal_ids / suggestion_id / strategy_id (your own strategies only). Autonomous strategy executions are journaled for you automatically -- use this to add the agent-authored layer on top.
tx_signature (optional): pass the
signature a swap/perp/lend/stake tool just returned to link this
decision to its verified on-chain fill -- the proof the Layer 2
contribution firewall needs. Unknown signature for this wallet -> 404.
If omitted, the wallet's most recent CONFIRMED transaction within a
short window is auto-linked as a best-effort fallback -- explicit is
still more reliable, pass it whenever you have it.
Workflow: DECIDE step -- journal before (or as) you act; query it back with journal_query / get_my_performance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | ||
| caller_id | No | ||
| rationale | Yes | ||
| session_id | No | ||
| signal_ids | No | ||
| strategy_id | No | ||
| expectations | No | ||
| tx_signature | No | ||
| decision_type | Yes | ||
| suggestion_id | No | ||
| wallet_address | Yes | ||
| client_platform | No | ||
| idempotency_key | No | ||
| intended_action | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||