jb-omnichain-ui
Build omnichain UIs for Juicebox projects. Deploy to multiple chains with single payment, display unified cross-chain data.
Install
mkdir -p .claude/skills/jb-omnichain-ui && curl -L -o skill.zip "https://mcp.directory/api/skills/download/7191" && unzip -o skill.zip -d .claude/skills/jb-omnichain-ui && rm skill.zipInstalls to .claude/skills/jb-omnichain-ui
About this skill
Juicebox V5 Omnichain UI Development
Build frontends that deploy and interact with Juicebox projects across multiple chains using viem and shared styles.
Philosophy
Pay once on any chain. Deploy everywhere. Query unified data.
What is an Omnichain Project?
An "omnichain project" is a set of Juicebox projects deployed across multiple chains, connected via Suckers for token bridging.
Key concept: Project IDs cannot be coordinated across chains—each chain assigns the next available ID independently. Deploying to Ethereum might give you project #42, while Optimism gives you project #17. Suckers link these separate projects together so they function as one logical project with unified token bridging.
Omnichain UIs enable:
- Single-payment multi-chain deployments via Relayr
- Unified project data across all chains via Bendystraw
- Cross-chain token bridging visibility via Sucker Groups
Tool References
For complete API documentation, see:
/jb-relayr- Multi-chain transaction bundling API/jb-bendystraw- Cross-chain data aggregation API
Quick Start
Relayr (Transactions)
const RELAYR_API = 'https://api.relayr.ba5ed.com';
// 1. Sign forward requests for each chain
// 2. POST /v1/bundle/prepaid to get payment options
// 3. User pays on one chain
// 4. Poll /v1/bundle/{uuid} for completion
// No API key required
Bendystraw (Data)
const BENDYSTRAW_API = 'https://bendystraw.xyz/{API_KEY}/graphql';
// API key required - use server-side proxy
// Contact @peripheralist on X for key
Omnichain Deploy UI Template
Complete HTML template for deploying projects to multiple chains.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Deploy Omnichain Project</title>
<link rel="stylesheet" href="/shared/styles.css">
<style>
body { max-width: 640px; margin: 0 auto; }
.subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.chain-select { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chain-chip { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 0.875rem; background: var(--bg-secondary); }
.chain-chip:hover { border-color: var(--jb-yellow); }
.chain-chip.selected { background: var(--accent); border-color: var(--accent); }
.chain-chip.payment { background: var(--success); border-color: var(--success); }
h2 { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; }
</style>
</head>
<body>
<h1>Deploy Omnichain Project</h1>
<p class="subtitle">Deploy to multiple chains with a single payment</p>
<div class="card">
<button id="connect-btn" class="btn" onclick="connectWallet()">Connect Wallet</button>
<div id="wallet-status" class="hidden">
Connected: <span id="wallet-address"></span>
</div>
</div>
<div class="card">
<h2>Select Target Chains</h2>
<div class="chain-select" id="target-chains">
<div class="chain-chip" data-chain="1" onclick="toggleChain(this)">Ethereum</div>
<div class="chain-chip" data-chain="10" onclick="toggleChain(this)">Optimism</div>
<div class="chain-chip" data-chain="8453" onclick="toggleChain(this)">Base</div>
<div class="chain-chip" data-chain="42161" onclick="toggleChain(this)">Arbitrum</div>
</div>
</div>
<div class="card">
<label>Project Name</label>
<input type="text" id="project-name" placeholder="My Omnichain Project">
<label>Token Symbol</label>
<input type="text" id="token-symbol" placeholder="OMNI">
</div>
<div class="card hidden" id="payment-section">
<h2>Select Payment Chain</h2>
<p style="font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem;">Pay gas on one chain. Relayr handles the rest.</p>
<div class="chain-select" id="payment-chains"></div>
<div style="background: var(--bg-primary); padding: 0.75rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.875rem;">
<div class="stat-row"><span class="stat-label">Total Gas Cost</span><span class="stat-value" id="total-cost">-</span></div>
</div>
</div>
<div class="card">
<button id="deploy-btn" class="btn" onclick="startDeploy()" disabled>Step 1: Sign for Each Chain</button>
</div>
<div class="card hidden" id="tx-status">
<h2>Deployment Status</h2>
<div id="chain-statuses"></div>
</div>
<script type="module">
import { createWalletClient, custom, formatEther, encodeFunctionData } from 'https://esm.sh/viem';
import { mainnet, optimism, base, arbitrum } from 'https://esm.sh/viem/chains';
import { CHAIN_CONFIGS, truncateAddress } from '/shared/wallet-utils.js';
const RELAYR_API = 'https://api.relayr.ba5ed.com';
const CHAINS = {
1: { name: 'Ethereum', chain: mainnet, explorer: 'https://etherscan.io' },
10: { name: 'Optimism', chain: optimism, explorer: 'https://optimistic.etherscan.io' },
8453: { name: 'Base', chain: base, explorer: 'https://basescan.org' },
42161: { name: 'Arbitrum', chain: arbitrum, explorer: 'https://arbiscan.io' }
};
let walletClient, address;
let selectedChains = new Set();
let currentQuote = null;
window.toggleChain = function(el) {
const chainId = el.dataset.chain;
if (selectedChains.has(chainId)) {
selectedChains.delete(chainId);
el.classList.remove('selected');
} else {
selectedChains.add(chainId);
el.classList.add('selected');
}
document.getElementById('deploy-btn').disabled = selectedChains.size === 0;
};
window.connectWallet = async function() {
if (!window.ethereum) { alert('Please install MetaMask'); return; }
walletClient = createWalletClient({ chain: mainnet, transport: custom(window.ethereum) });
const [addr] = await walletClient.requestAddresses();
address = addr;
document.getElementById('wallet-address').textContent = truncateAddress(address);
document.getElementById('wallet-status').classList.remove('hidden');
document.getElementById('connect-btn').classList.add('hidden');
};
window.startDeploy = async function() {
if (selectedChains.size === 0) return;
const btn = document.getElementById('deploy-btn');
btn.disabled = true;
btn.textContent = 'Signing...';
try {
const signedRequests = [];
for (const chainId of selectedChains) {
btn.textContent = `Signing for ${CHAINS[chainId].name}...`;
const calldata = buildLaunchCalldata();
const forwarder = CHAIN_CONFIGS[parseInt(chainId)]?.contracts?.JBForwarder;
const controller = CHAIN_CONFIGS[parseInt(chainId)]?.contracts?.JBController;
const signed = await signForwardRequest(parseInt(chainId), calldata, forwarder, controller);
signedRequests.push({
chain: parseInt(chainId),
target: forwarder,
data: signed.encodedData,
value: '0'
});
}
btn.textContent = 'Getting quote...';
currentQuote = await getRelayrQuote(signedRequests);
showPaymentOptions(currentQuote);
btn.textContent = 'Step 2: Select Payment Chain';
} catch (error) {
console.error(error);
btn.textContent = 'Error - Try Again';
btn.disabled = false;
}
};
async function signForwardRequest(chainId, calldata, forwarder, controller) {
const domain = {
name: 'Juicebox',
version: '1',
chainId: chainId,
verifyingContract: forwarder
};
const types = {
ForwardRequest: [
{ name: 'from', type: 'address' },
{ name: 'to', type: 'address' },
{ name: 'value', type: 'uint256' },
{ name: 'gas', type: 'uint256' },
{ name: 'nonce', type: 'uint256' },
{ name: 'deadline', type: 'uint48' },
{ name: 'data', type: 'bytes' }
]
};
const deadline = Math.floor(Date.now() / 1000) + 48 * 60 * 60;
const message = {
from: address,
to: controller,
value: '0',
gas: '1000000',
nonce: 0,
deadline: deadline,
data: calldata
};
const signature = await walletClient.signTypedData({
account: address,
domain,
types,
primaryType: 'ForwardRequest',
message
});
const encodedData = encodeFunctionData({
abi: [{ name: 'execute', type: 'function', inputs: [
{ name: 'request', type: 'tuple', components: [
{ name: 'from', type: 'address' }, { name: 'to', type: 'address' },
{ name: 'value', type: 'uint256' }, { name: 'gas', type: 'uint256' },
{ name: 'nonce', type: 'uint256' }, { name: 'deadline', type: 'uint48' },
{ name: 'data', type: 'bytes' }
]},
{ name: 'signature', type: 'bytes' }
]}],
functionName: 'execute',
args: [[message.from, message.to, message.value, message.gas, message.nonce, message.deadline, message.data], signature]
});
return { message, signature, encodedData };
}
function buildLaunchCalldata() {
// Build launchProjectFor calldata - see /jb-project for full struct encoding
return '0x';
}
async function getRelayrQuote(signedRequests) {
const response = await fetch(`${RELAYR_API}/v1/bundle/prepaid`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ transactions: signedRequests, virtual_nonce_mode: 'Disabled' })
});
if (!response.ok) throw new Error('Failed to get quote');
return await response.json();
}
function showPaymentOptions(quote) {
document.getElementById('payment-section').classList.remove('hidden'
---
*Content truncated.*
More by openclaw
View all skills by openclaw →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversXcodeBuild streamlines iOS app development for Apple developers with tools for building, debugging, and deploying iOS an
By Sentry. MCP server and CLI that provides tools for AI agents working on iOS and macOS Xcode projects. Build, test, li
Connect Supabase projects to AI with Supabase MCP Server. Standardize LLM communication for secure, efficient developmen
Boost your productivity by managing Azure DevOps projects, pipelines, and repos in VS Code. Streamline dev workflows wit
Unlock powerful text to speech and AI voice generator tools with ElevenLabs. Create, clone, and customize speech easily.
Empower your Unity projects with Unity-MCP: AI-driven control, seamless integration, and advanced workflows within the U
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.