OMPX JavaScript SDK
    Preparing search index...

    Function tempo

    • Create the Tempo payment method for OMPX.

      Tempo is the only Phase 1 payment method that supports both protocols:

      • X402: Uses exact/evm scheme with EIP-3009 on Tempo chain
      • MPP: Uses tempo method with EIP-3009-encoded transaction payload

      Parameters

      Returns OmpxPaymentMethod

      import { tempo } from '@ompx/tempo'
      import { privateKeyToAccount } from 'viem/accounts'

      const method = tempo({ account: privateKeyToAccount('0x...') })
      import { tempo } from '@ompx/tempo'

      const method = tempo({
      recipient: '0xYourAddress',
      currency: '0x20c0...', // pathUSD
      })