Murphy Logo Murphy

Recurring Order Card

Murphy component to display a single Jupiter Recurring DCA Order on Solana mainnet

Recurring Order Card

Order ID8vQw...3k2A
FromSo11...1112
ToEs9v...X6t6
Statusactive
Created7/14/2025, 4:18:32 AM
Updated7/14/2025, 4:18:32 AM

Installation

Install dependencies

pnpm add @solana/web3.js @solana/wallet-adapter-react sonner lucide-react

Add RecurringOrderCard

pnpm dlx shadcn@canary add https://www.murphyai.dev/r/RecurringOrderCard.json

Basic Usage

import { RecurringOrderCard, RecurringOrder } from "@/components/ui/murphy/Jupiter-Recurring/RecurringOrderCard";

const order: RecurringOrder = {
  id: "8vQw...3k2A",
  inputMint: "So11111111111111111111111111111111111111112",
  outputMint: "Es9vMFrzaCER1bY5Qw5J5hzyXH8VEkR92pT9bkF1X6t6",
  status: "active",
  createdAt: "2024-05-01T12:00:00Z",
  updatedAt: "2024-05-01T12:00:00Z",
};

export default function MyPage() {
  return <RecurringOrderCard order={order} />;
}

Features

  • Interactive display: Copy order ID with one click, view on Solscan
  • Status-aware styling: Different badge colors for different order statuses (active, completed, cancelled, expired, failed)
  • Responsive design: Clean card layout with proper spacing and typography
  • Real-time data: Designed for on-chain data from Jupiter Recurring API
  • Murphy UI: Consistent with Murphy design system
  • Fully on-chain: No test/fake data, all real Solana mainnet data

Props

NameTypeDefaultDescription
orderRecurringOrderrequiredOrder object to display
classNamestringundefinedAdditional CSS classes

Types

export interface RecurringOrder {
  id: string;
  inputMint: string;
  outputMint: string;
  status: string;
  createdAt: string;
  updatedAt: string;
  [key: string]: any;
}

API

On this page

How are you feeling?

Join Our Community