Custom Transaction Types
Today, compliance checks are off chain and lack atomicity which results in frozen accounts and lack of access to funds. Codex enforces compliance as part of transaction execution, not after.
Codex introduces custom transaction types: OnrampTx and OfframpTx that integrate tightly with predeploys and precompiles to encode fiat movement as first-class onchain actions.
Characteristics
- Triggered by users via standard wallets
- Automatically:
- Lookup address metadata (KYB, IBAN) in the address book
- Apply ramp specific business rules via precompiles
- Enforce compliance policies within the EVM execution path
Example Flow
- User sends
OnrampTxtransaction - Metadata pulled from User Address Book
- Ramp rules evaluated by precompiles
- Compliance validated atomically
- Fiat ↔ crypto conversion executed as a single transaction
- If any compliance condition fails, transaction reverts before any transfer.
This allows ramps and users to settle fiat ↔ crypto conversions via a single verifiable L2 transaction, with no offchain coordination or polling required.