Skip to content

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

  1. User sends OnrampTx transaction
  2. Metadata pulled from User Address Book
  3. Ramp rules evaluated by precompiles
  4. Compliance validated atomically
  5. Fiat ↔ crypto conversion executed as a single transaction
  6. 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.