verify_transaction
Verify any prior transaction signature on demand (FREE read).
Post-trade verification (harness spec R13): awaits
on-chain confirmation of tx_signature at commitment level (up to
timeout_s) and, when a state hint is supplied, re-reads the relevant
state to compare against what was expected:
mint(+wallet_address): re-reads that SPL/SOL token balance.market(+wallet_address): re-reads the Drift perp position.protocol(+wallet_address, optionalmarket/marginfi_account): re-reads the lending obligation health.
Returns {confirmed, slot, commitment, post_state, expected_vs_actual, retry_guidance}. confirmed is False (never True) on a timeout --
NEVER treat an unconfirmed/timed-out result as success; retry_guidance
names the next step. Use this after signing + broadcasting a transaction
yourself (place_perp_order, lend_deposit/borrow/repay, and every other
unsigned-tx tool never broadcast server-side) to confirm it actually
landed before treating the position/balance as changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | No | ||
| market | No | ||
| protocol | No | ||
| caller_id | No | ||
| timeout_s | No | ||
| commitment | No | confirmed | |
| tx_signature | Yes | ||
| wallet_address | No | ||
| marginfi_account | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||