Peer Cash Order
Prepare, approve, finalize, resume, and safely recover a custody-separated cash-out order.
Create Safely
- Call
peer_cash_capabilities. Use only the returned rails, currencies, assets, and bounds. - Call
peer_cash_estimate. Tell the operator the Chainlink estimate is approximate. - Call
peer_cash_preparewith the Base USDC amount as a 6-decimal base-unit string and the required receive legs. - Present the ordered unsigned transaction plan and obtain approval for its exact destinations, values, calldata purposes, and effects.
- Have the host wallet submit each transaction in order. Confirm the
createDepositreceipt. - Call
peer_cash_finalizewith the confirmed transaction hash. - If
accessPolicyRequiredis true, prepare, approve, and submit that follow-up transaction with the depositor wallet. - Persist the returned
depositId; usepeer_cash_orderto resume.
Manage The Order
- Use
peer_cash_ordersto list a maker's orders. - Use
peer_cash_prepare_withdrawto prepare a full or partial withdrawal of unmatched funds. - Use
peer_cash_prepare_top_upto add funds. - Apply the same ordered-plan review and wallet-confirmation rules to every mutation.
Recover Uncertain Outcomes
- Retry
ORDER_NOT_FOUNDonly as a read; an immediate post-finalization miss can be indexer lag. - For
TRANSACTION_SUBMISSION_UNKNOWNorTRANSACTION_STATUS_UNKNOWN, inspect the named hash, wallet activity, and existing orders before resubmitting anything. - For
ACCESS_POLICY_CONFIGURATION_FAILED, repair the policy step; the deposit already exists. - Retry
INDEXER_UNAVAILABLEandORACLE_READ_FAILEDonly as reads.
If evidence cannot prove whether a mutation occurred, stop and require wallet or block-explorer confirmation. Never request a private key or seed phrase.