@moonpay/cli 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  process.noDeprecation = true; import { createRequire as __createRequire } from "module"; const require = __createRequire(import.meta.url);
2
- import{A as Ze,B as be,C as E,D as se,a as Ee,b as G,c as Ae,d as Be,e as ge,f as Oe,g as Le,h as Ne,i as _,j as Me,k as He,l as Y,m as I,q as ze,r as Ve,s as Fe,t as Ke,v as S,w as Ge,x as Ye,y as Je,z as Qe}from"./chunk-75R4KSE3.js";import{f as k,g as f,i as We,j as x,k as De,m as fe}from"./chunk-QOPJNTHY.js";I();Ae();async function Ti(e,t,i){let r=await Y(),o=G();r&&(o.Authorization=`Bearer ${r}`);let n=await fetch(`${e}/api/tools/${encodeURIComponent(t)}`,{method:"POST",signal:AbortSignal.timeout(6e4),headers:o,body:JSON.stringify(i)});if(n.status===401&&r){let d=Oe();if(d?.refreshToken)try{let m=await He(d);n=await fetch(`${e}/api/tools/${encodeURIComponent(t)}`,{method:"POST",signal:AbortSignal.timeout(6e4),headers:{...G(),Authorization:`Bearer ${m.accessToken}`},body:JSON.stringify(i)})}catch{}}if(n.status===401)throw new Error("This command requires a MoonPay CLI account. Run `moonpay login` first.");let a=await n.text();if(!a){if(n.status===429){let d=r?" Run `mp upgrade` to increase your rate limit.":" Log in with `mp login` for higher limits.";throw new Error(`Rate limit exceeded.${d}`)}throw new Error(`Empty response from server (${n.status})`)}let c;try{c=JSON.parse(a)}catch{throw new Error(`Unexpected response from server (${n.status})`)}if(n.status<200||n.status>=300){let d=c;throw new Error(d?.error??`Tool call failed (${n.status})`)}return c}async function y(e,t,i){return await Ti(e,t,i)}var Or=[{name:"buy",description:"Buy crypto with fiat via MoonPay. Returns a checkout URL to complete the purchase.",inputSchema:{$ref:"#/definitions/buy_input",definitions:{buy_input:{type:"object",properties:{token:{type:"string",enum:["btc","pol_polygon","sol","trx","usdc","usdc_arbitrum","usdc_base","usdc_optimism","usdc_sol","usdc_polygon","usdt_trx","eth","eth_polygon","eth_optimism","eth_base","eth_arbitrum"],description:"MoonPay currency code: sol (Solana), usdc_sol (USDC on Solana), eth (Ethereum), usdc (USDC on Ethereum), usdc_base (USDC on Base), trx (TRX on Tron), usdt_trx (USDT on Tron), etc."},amount:{type:"number",description:"Amount in USD to spend. For example, 50 means $50 worth of the selected token."},wallet:{type:"string",description:"Destination wallet address to receive tokens (must match the chain for the selected token)"},email:{type:["string","null"],description:"Buyer email to pre-fill on the checkout page"}},required:["token","amount","wallet","email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/buy_output",definitions:{buy_output:{type:"object",properties:{url:{type:"string",description:"MoonPay checkout URL \u2014 open in browser to complete purchase"}},required:["url"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_add",description:"Add an item to a shopping cart. Creates a new cart if no cartId is provided. Run multiple times to add more items.",inputSchema:{$ref:"#/definitions/commerce_cart_add_input",definitions:{commerce_cart_add_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. ryder.id, bodykits.ae)"},cartId:{type:["string","null"],description:"Existing cart ID \u2014 omit to create a new cart"},variantId:{type:"string",description:"Product variant ID to add"},quantity:{type:"number",description:"Quantity to add"}},required:["store","cartId","variantId","quantity"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_add_output",definitions:{commerce_cart_add_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_remove",description:"Remove an item from a shopping cart by its line ID.",inputSchema:{$ref:"#/definitions/commerce_cart_remove_input",definitions:{commerce_cart_remove_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. ryder.id, bodykits.ae)"},cartId:{type:"string",description:"Cart ID"},lineId:{type:"string",description:"Cart line ID to remove"}},required:["store","cartId","lineId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_remove_output",definitions:{commerce_cart_remove_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_retrieve",description:"Get the contents of a shopping cart including items, totals, and checkout URL.",inputSchema:{$ref:"#/definitions/commerce_cart_retrieve_input",definitions:{commerce_cart_retrieve_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},cartId:{type:"string",description:"Cart ID"}},required:["store","cartId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_retrieve_output",definitions:{commerce_cart_retrieve_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_update",description:"Create or update a shopping cart on a Shopify store. Omit cartId to create a new cart. Supports adding items, updating quantities, removing items, and applying discount codes.",inputSchema:{$ref:"#/definitions/commerce_cart_update_input",definitions:{commerce_cart_update_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},cartId:{type:["string","null"],description:"Existing cart ID \u2014 omit or null to create a new cart"},addItems:{anyOf:[{type:"array",items:{type:"object",properties:{variantId:{type:"string",description:"Product variant ID"},quantity:{type:"number",description:"Quantity to add"}},required:["variantId","quantity"],additionalProperties:!1}},{type:"null"}],description:"Items to add to the cart"},updateItems:{anyOf:[{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID"},quantity:{type:"number",description:"New quantity (0 to remove)"}},required:["lineId","quantity"],additionalProperties:!1}},{type:"null"}],description:"Existing cart items to update"},removeLineIds:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}],description:"Cart line IDs to remove"},discountCodes:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}],description:"Discount codes to apply"},note:{type:["string","null"],description:"Order note or special instructions"}},required:["store","cartId","addItems","updateItems","removeLineIds","discountCodes","note"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_update_output",definitions:{commerce_cart_update_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_checkout_pay",description:"Pay for a checkout by submitting the signed transaction. Pass all fields from checkout_start plus the signed transaction.",inputSchema:{$ref:"#/definitions/commerce_checkout_pay_input",definitions:{commerce_checkout_pay_input:{type:"object",properties:{signedTransaction:{type:"string",description:"The signed transaction"},transactionToken:{type:"string",description:"Transaction token from checkout_start"},rateToken:{type:"string",description:"Rate token from checkout_start"},paylinkId:{type:"string",description:"Payment request ID from checkout_start"},requestAmount:{type:"string",description:"Amount from checkout_start"},currency:{type:"string",description:"Currency from checkout_start"},chain:{type:"string",description:"Chain from checkout_start"},sender:{type:"string",description:"Sender wallet from checkout_start"},recipient:{type:"string",description:"Recipient wallet from checkout_start"},addressLookupTableAccounts:{type:"array",items:{type:"string"},description:"Lookup table accounts from checkout_start"}},required:["signedTransaction","transactionToken","rateToken","paylinkId","requestAmount","currency","chain","sender","recipient","addressLookupTableAccounts"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_checkout_pay_output",definitions:{commerce_checkout_pay_output:{type:"object",properties:{transactionSignature:{type:"string",description:"On-chain transaction signature"},status:{type:"string",description:"Payment status"},redirectUrl:{type:"string",description:"Shopify order confirmation URL"},message:{type:"string",description:"Confirmation message"}},required:["transactionSignature","status","redirectUrl","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_checkout_start",description:"Start checkout for a shopping cart. Takes a cart ID, buyer wallet, chain, and shipping details. Returns an unsigned transaction to sign and metadata to pass to checkout_pay.",inputSchema:{$ref:"#/definitions/commerce_checkout_start_input",definitions:{commerce_checkout_start_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},cartId:{type:"string",description:"Cart ID from cart_update"},wallet:{type:"string",description:"Buyer wallet address (public key)"},chain:{type:"string",description:"Payment chain (solana, ethereum, polygon, base)"},email:{type:"string",description:"Buyer email address"},firstName:{type:"string",description:"Buyer first name"},lastName:{type:"string",description:"Buyer last name"},address:{type:"string",description:"Street address"},city:{type:"string",description:"City"},postalCode:{type:"string",description:"Postal / ZIP code"},country:{type:"string",description:"Country name (e.g. 'United States', 'Netherlands')"}},required:["store","cartId","wallet","chain","email","firstName","lastName","address","city","postalCode","country"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_checkout_start_output",definitions:{commerce_checkout_start_output:{type:"object",properties:{serializedTransaction:{type:"string",description:"Unsigned transaction to sign"},transactionToken:{type:"string",description:"Pass to checkout_pay after signing"},rateToken:{type:"string",description:"Rate lock token \u2014 pass to checkout_pay"},paylinkId:{type:"string",description:"Payment request ID \u2014 pass to checkout_pay"},requestAmount:{type:"string",description:"Amount in minimal units \u2014 pass to checkout_pay"},currency:{type:"string",description:"Payment currency symbol (e.g. USDC)"},chain:{type:"string",description:"Payment chain"},sender:{type:"string",description:"Sender wallet \u2014 pass to checkout_pay"},recipient:{type:"string",description:"Recipient wallet \u2014 pass to checkout_pay"},addressLookupTableAccounts:{type:"array",items:{type:"string"},description:"Lookup table accounts \u2014 pass to checkout_pay"},message:{type:"string",description:"Human-readable description of the payment"}},required:["serializedTransaction","transactionToken","rateToken","paylinkId","requestAmount","currency","chain","sender","recipient","addressLookupTableAccounts","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_product_retrieve",description:"Get full details of a product including all variants, options, and availability. Use after product search to get variant IDs for ordering.",inputSchema:{$ref:"#/definitions/commerce_product_retrieve_input",definitions:{commerce_product_retrieve_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},productId:{type:"string",description:"Shopify product ID (from product search)"}},required:["store","productId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_product_retrieve_output",definitions:{commerce_product_retrieve_output:{type:"object",properties:{productId:{type:"string",description:"Shopify product ID"},title:{type:"string",description:"Product title"},description:{type:"string",description:"Product description"},url:{type:"string",description:"Product page URL"},imageUrl:{type:["string","null"],description:"Product image URL"},priceMin:{type:"string",description:"Minimum price"},priceMax:{type:"string",description:"Maximum price"},currency:{type:"string",description:"Currency code (e.g. USD)"},productType:{type:["string","null"],description:"Product type/category"},tags:{type:"array",items:{type:"string"},description:"Product tags"},variants:{type:"array",items:{type:"object",properties:{variantId:{type:"string",description:"Variant ID \u2014 use this for ordering"},title:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},price:{type:"string",description:"Variant price"},currency:{type:"string",description:"Currency code (e.g. USD)"},imageUrl:{type:["string","null"],description:"Variant image URL"},available:{type:"boolean",description:"Whether variant is in stock"}},required:["variantId","title","price","currency","imageUrl","available"],additionalProperties:!1},description:"Product variants"}},required:["productId","title","description","url","imageUrl","priceMin","priceMax","currency","productType","tags","variants"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_product_search",description:"Search products on a Shopify store. Returns products with prices, images, and variants. Works on any Shopify store.",inputSchema:{$ref:"#/definitions/commerce_product_search_input",definitions:{commerce_product_search_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},query:{type:"string",description:"Search query"},limit:{type:["number","null"],description:"Max results (default 10)"},cursor:{type:["string","null"],description:"Pagination cursor from previous response (pass to get next page)"}},required:["store","query","limit","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_product_search_output",definitions:{commerce_product_search_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{productId:{type:"string",description:"Shopify product ID"},title:{type:"string",description:"Product title"},description:{type:"string",description:"Product description"},url:{type:"string",description:"Product page URL"},imageUrl:{type:["string","null"],description:"Product image URL"},priceMin:{type:"string",description:"Minimum price"},priceMax:{type:"string",description:"Maximum price"},currency:{type:"string",description:"Currency code (e.g. USD)"},productType:{type:["string","null"],description:"Product type/category"},tags:{type:"array",items:{type:"string"},description:"Product tags"},variants:{type:"array",items:{type:"object",properties:{variantId:{type:"string",description:"Variant ID \u2014 use this for ordering"},title:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},price:{type:"string",description:"Variant price"},currency:{type:"string",description:"Currency code (e.g. USD)"},imageUrl:{type:["string","null"],description:"Variant image URL"},available:{type:"boolean",description:"Whether variant is in stock"}},required:["variantId","title","price","currency","imageUrl","available"],additionalProperties:!1},description:"Product variants"}},required:["productId","title","description","url","imageUrl","priceMin","priceMax","currency","productType","tags","variants"],additionalProperties:!1},description:"Matching products"},hasMore:{type:"boolean",description:"Whether more results exist"},cursor:{type:["string","null"],description:"Cursor for next page \u2014 pass as 'cursor' input to get more results"}},required:["items","hasMore","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_store_list",description:"List Shopify stores that accept Solana Pay via Helio. Use these store domains with product_search, cart_update, and checkout tools.",inputSchema:{$ref:"#/definitions/commerce_store_list_input",definitions:{commerce_store_list_input:{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_store_list_output",definitions:{commerce_store_list_output:{type:"object",properties:{stores:{type:"array",items:{type:"object",properties:{store:{type:"string",description:"Store domain (use as 'store' param in other commerce tools)"},name:{type:"string",description:"Store display name"},description:{type:"string",description:"What the store sells"},url:{type:"string",description:"Store URL"}},required:["store","name","description","url"],additionalProperties:!1}}},required:["stores"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_store_retrieve",description:"Get information about a Shopify store including policies, shipping info, and FAQs. Works on any Shopify store.",inputSchema:{$ref:"#/definitions/commerce_store_retrieve_input",definitions:{commerce_store_retrieve_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},query:{type:["string","null"],description:"Question about the store (e.g. 'shipping policy', 'returns', 'payment methods')"}},required:["store","query"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_store_retrieve_output",definitions:{commerce_store_retrieve_output:{type:"object",properties:{store:{type:"string",description:"Store URL"},items:{type:"array",items:{type:"object",properties:{question:{type:"string",description:"Policy question"},answer:{type:"string",description:"Policy answer"}},required:["question","answer"],additionalProperties:!1},description:"Policy Q&A pairs"}},required:["store","items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"deposit_create",description:"Create a new deposit link that generates multi-chain deposit addresses. Anyone can send crypto to these addresses from Solana, Ethereum, Bitcoin, or Tron \u2014 it automatically converts to the specified token and settles to the destination wallet and chain.",inputSchema:{$ref:"#/definitions/deposit_create_input",definitions:{deposit_create_input:{type:"object",properties:{name:{type:"string",description:"Human-readable label for this deposit link (e.g. 'Treasury Base USDC')"},wallet:{type:"string",description:"Destination wallet address where funds will be delivered"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","bnb"],description:"Blockchain of the destination wallet"},token:{type:"string",enum:["USDC","USDC.e","USDT","ETH","SOL","BTC","wETH","BNB","POL","ARB","USDe","USD1"],description:"Token to receive. Stablecoins: USDC (all chains), USDT (all chains), USDC.e (Polygon only), USDe (Ethereum/Arbitrum), USD1 (Ethereum/BSC/Solana). Native: ETH (Ethereum/Base/Arbitrum/BSC), SOL (Solana), BTC (Bitcoin), BNB (BSC), POL (Polygon), ARB (Arbitrum). wETH available on most EVM chains."}},required:["name","wallet","chain","token"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/deposit_create_output",definitions:{deposit_create_output:{type:"object",properties:{id:{type:"string",description:"Unique deposit ID \u2014 use with deposit_transaction_list to check incoming payments"},destinationWallet:{type:"string",description:"Wallet address that will receive the token"},destinationChain:{type:"string",description:"Chain where the token will be delivered"},customerToken:{type:"string",description:"Token to check deposit transactions \u2014 pass to deposit_transaction_list"},depositUrl:{type:"string",description:"Shareable URL \u2014 open in browser or share with senders to deposit funds"},wallets:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address to send funds to"},chain:{type:"string",description:"Chain this address is on (solana, ethereum, bitcoin, tron)"},qrCode:{type:"string",description:"URL to a QR code image for the deposit address"}},required:["address","chain","qrCode"],additionalProperties:!1},description:"Deposit addresses across all supported chains \u2014 send any token to any of these"},instructions:{type:"string",description:"Human-readable instructions explaining how to use the deposit"}},required:["id","destinationWallet","destinationChain","customerToken","depositUrl","wallets","instructions"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"deposit_retrieve",description:"Retrieve details of a deposit by ID. Returns the deposit name, status, destination wallet, and deposit addresses.",inputSchema:{$ref:"#/definitions/deposit_retrieve_input",definitions:{deposit_retrieve_input:{type:"object",properties:{id:{type:"string",description:"Deposit ID returned from deposit_create"}},required:["id"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/deposit_retrieve_output",definitions:{deposit_retrieve_output:{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string"},destinationWallet:{type:["string","null"]},depositUrl:{type:"string"}},required:["id","name","status","destinationWallet","depositUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"deposit_transaction_list",description:"List transactions for a deposit. Pass the deposit id from deposit_create to check incoming payment status.",inputSchema:{$ref:"#/definitions/deposit_transaction_list_input",definitions:{deposit_transaction_list_input:{type:"object",properties:{id:{type:"string",description:"Deposit ID returned from deposit_create"}},required:["id"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/deposit_transaction_list_output",definitions:{deposit_transaction_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},amount:{type:"number"},token:{type:"string"},from:{type:"string"},status:{type:"string"},settledAmount:{type:["number","null"]},settledCurrency:{type:["string","null"]},timestamp:{type:"string"}},required:["id","amount","token","from","status","settledAmount","settledCurrency","timestamp"],additionalProperties:!1}}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"feedback_create",description:"Submit feedback, a bug report, or a feature request. Requires authentication.",inputSchema:{$ref:"#/definitions/feedback_create_input",definitions:{feedback_create_input:{type:"object",properties:{type:{type:"string",enum:["bug","feature","general"],description:"Type of feedback: bug, feature, or general"},message:{type:"string",minLength:1,maxLength:2e3,description:"Your feedback message"}},required:["type","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/feedback_create_output",definitions:{feedback_create_output:{type:"object",properties:{id:{type:"string",description:"Feedback ID"},message:{type:"string",description:"Confirmation message"}},required:["id","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"login",description:"Send a verification code to the provided email to sign in or create an account. Requires an hCaptcha token.",inputSchema:{$ref:"#/definitions/login_input",definitions:{login_input:{type:"object",properties:{email:{type:"string",format:"email",description:"The email of the user to login"},captchaToken:{type:"string",description:"hCaptcha response token"}},required:["email","captchaToken"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/login_output",definitions:{login_output:{type:"object",properties:{email:{type:"string",description:"The email the OTP was sent to"}},required:["email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_activity_list",description:"List all activity for a wallet on prediction markets. Includes trades, splits, merges, redemptions, and rewards.",inputSchema:{$ref:"#/definitions/prediction-market_activity_list_input",definitions:{"prediction-market_activity_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"},limit:{type:["number","null"],description:"Max results (default 100)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","wallet","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_activity_list_output",definitions:{"prediction-market_activity_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{type:{type:"string",description:"Activity type (TRADE, SPLIT, MERGE, REDEEM, etc.)"},asset:{type:["string","null"],default:null,description:"Token ID (CLOB token or mint address)"},conditionId:{type:["string","null"],default:null,description:"Condition ID"},size:{type:["number","null"],default:null,description:"Amount"},price:{type:["number","null"],default:null,description:"Price"},fee:{type:["number","null"],default:null,description:"Fee amount"},timestamp:{type:"number",description:"Activity timestamp (unix)"},title:{type:["string","null"],default:null,description:"Event title"},slug:{type:["string","null"],default:null,description:"Event slug"},outcome:{type:["string","null"],default:null,description:"Outcome name"},transactionHash:{type:["string","null"],default:null,description:"Transaction hash"}},required:["type","timestamp"],additionalProperties:!1},description:"Activity history"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_event_retrieve",description:"Get detailed information about a prediction market event including all associated markets, outcomes, and prices.",inputSchema:{$ref:"#/definitions/prediction-market_market_event_retrieve_input",definitions:{"prediction-market_market_event_retrieve_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},slug:{type:"string",description:"Event slug identifier"}},required:["provider","slug"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_event_retrieve_output",definitions:{"prediction-market_market_event_retrieve_output":{type:"object",properties:{id:{type:"string",description:"Event ID"},ticker:{type:"string",description:"Event ticker"},slug:{type:"string",description:"URL slug"},title:{type:"string",description:"Event title"},description:{type:["string","null"],default:null,description:"Event description"},subtitle:{type:["string","null"],default:null,description:"Event subtitle"},image:{type:["string","null"],default:null,description:"Event image URL"},icon:{type:["string","null"],default:null,description:"Event icon URL"},category:{type:["string","null"],default:null,description:"Primary category"},subcategory:{type:["string","null"],default:null,description:"Subcategory"},volume:{type:"number",default:0,description:"Total volume in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},openInterest:{type:["number","null"],default:null,description:"Open interest in USDC"},liquidity:{type:["number","null"],default:null,description:"Available liquidity"},startDate:{type:["string","null"],default:null,description:"Event start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Event end date (ISO)"},closedTime:{type:["string","null"],default:null,description:"Time event was closed (ISO)"},active:{type:"boolean",default:!0,description:"Whether event is active"},closed:{type:"boolean",default:!1,description:"Whether event has closed"},featured:{type:["boolean","null"],default:null,description:"Whether event is featured"},commentCount:{type:["number","null"],default:null,description:"Number of comments"},negRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},markets:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Market ID"},question:{type:"string",description:"Market question"},description:{type:["string","null"],default:null,description:"Market description"},conditionId:{type:["string","null"],default:null,description:"Condition ID for on-chain settlement"},slug:{type:"string",description:"URL slug"},image:{type:["string","null"],default:null,description:"Market image URL"},outcomes:{type:"array",items:{type:"string"},description:"Possible outcomes (e.g. ['Yes', 'No'])"},outcomePrices:{type:"array",items:{type:"number"},description:"Current price per outcome (0-1)"},outcomeTokens:{type:"array",items:{type:"object",properties:{outcome:{type:"string",description:"Outcome name (e.g. 'Yes', 'No')"},tokenId:{type:"string",description:"Token identifier \u2014 CLOB token ID (Polymarket/EVM) or mint address (Kalshi/Solana)"},price:{type:["number","null"],default:null,description:"Current price for this outcome (0-1)"}},required:["outcome","tokenId"],additionalProperties:!1},default:[],description:"Token IDs for each outcome \u2014 use these to trade"},volume:{type:"number",default:0,description:"Total volume traded in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},lastTradePrice:{type:["number","null"],default:null,description:"Last trade price"},bestBid:{type:["number","null"],default:null,description:"Best bid price"},bestAsk:{type:["number","null"],default:null,description:"Best ask price"},spread:{type:["number","null"],default:null,description:"Bid-ask spread"},oneDayPriceChange:{type:["number","null"],default:null,description:"24-hour price change"},oneHourPriceChange:{type:["number","null"],default:null,description:"1-hour price change"},oneWeekPriceChange:{type:["number","null"],default:null,description:"1-week price change"},startDate:{type:["string","null"],default:null,description:"Market start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Market end date (ISO)"},negRisk:{type:["boolean","null"],default:null,description:"Whether this uses negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},status:{type:["string","null"],default:null,description:"Market lifecycle status (e.g. initialized, active, inactive, closed, determined, finalized)"},isInitialized:{type:["boolean","null"],default:null,description:"Whether the market is tokenized onchain (Kalshi/Solana)"},acceptingOrders:{type:"boolean",default:!1,description:"Whether market is accepting orders"},enableOrderBook:{type:["boolean","null"],default:null,description:"Whether order book is enabled"},orderMinSize:{type:["number","null"],default:null,description:"Minimum order size"},liquidity:{type:["number","null"],default:null,description:"Available liquidity in USDC"},tickSize:{type:["string","null"],default:null,description:"Minimum price increment"}},required:["id","question","slug","outcomes","outcomePrices"],additionalProperties:!1},default:[],description:"Markets within this event"},tags:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},default:[],description:"Category tags"}},required:["id","ticker","slug","title"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_price_history_list",description:"Get historical price data for a prediction market outcome. Use to analyze price trends over time.",inputSchema:{$ref:"#/definitions/prediction-market_market_price_history_list_input",definitions:{"prediction-market_market_price_history_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},tokenId:{type:"string",description:"Outcome token ID (from outcomeTokens[].tokenId)"},interval:{type:"string",enum:["1hr","1d","1w","1m","max"],description:"Time interval: 1hr, 1d (day), 1w (week), 1m (month), or max (all time)"}},required:["provider","tokenId","interval"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_price_history_list_output",definitions:{"prediction-market_market_price_history_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{timestamp:{type:"number",description:"Unix timestamp"},price:{type:"number",description:"Price at this time (0-1)"}},required:["timestamp","price"],additionalProperties:!1},description:"Price history data points"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_price_retrieve",description:"Get the current price for a prediction market outcome token.",inputSchema:{$ref:"#/definitions/prediction-market_market_price_retrieve_input",definitions:{"prediction-market_market_price_retrieve_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},tokenId:{type:"string",description:"Outcome token ID (from outcomeTokens[].tokenId)"}},required:["provider","tokenId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_price_retrieve_output",definitions:{"prediction-market_market_price_retrieve_output":{type:"object",properties:{price:{type:["number","null"],description:"Current price (0-1), null if no orders"}},required:["price"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_search",description:"Search prediction markets by query string or tags. Returns events with their markets, prices, and volumes.",inputSchema:{$ref:"#/definitions/prediction-market_market_search_input",definitions:{"prediction-market_market_search_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},query:{type:"string",description:"Search query (use '*' for all markets)"},tagIds:{type:["string","null"],description:"Comma-separated tag IDs to filter by"},limit:{type:["number","null"],description:"Max results (default 10)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"},activeOnly:{type:["boolean","null"],description:"Only show active markets (default true)"}},required:["provider","query","tagIds","limit","page","activeOnly"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_search_output",definitions:{"prediction-market_market_search_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Event ID"},ticker:{type:"string",description:"Event ticker"},slug:{type:"string",description:"URL slug"},title:{type:"string",description:"Event title"},description:{type:["string","null"],default:null,description:"Event description"},subtitle:{type:["string","null"],default:null,description:"Event subtitle"},image:{type:["string","null"],default:null,description:"Event image URL"},icon:{type:["string","null"],default:null,description:"Event icon URL"},category:{type:["string","null"],default:null,description:"Primary category"},subcategory:{type:["string","null"],default:null,description:"Subcategory"},volume:{type:"number",default:0,description:"Total volume in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},openInterest:{type:["number","null"],default:null,description:"Open interest in USDC"},liquidity:{type:["number","null"],default:null,description:"Available liquidity"},startDate:{type:["string","null"],default:null,description:"Event start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Event end date (ISO)"},closedTime:{type:["string","null"],default:null,description:"Time event was closed (ISO)"},active:{type:"boolean",default:!0,description:"Whether event is active"},closed:{type:"boolean",default:!1,description:"Whether event has closed"},featured:{type:["boolean","null"],default:null,description:"Whether event is featured"},commentCount:{type:["number","null"],default:null,description:"Number of comments"},negRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},markets:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Market ID"},question:{type:"string",description:"Market question"},description:{type:["string","null"],default:null,description:"Market description"},conditionId:{type:["string","null"],default:null,description:"Condition ID for on-chain settlement"},slug:{type:"string",description:"URL slug"},image:{type:["string","null"],default:null,description:"Market image URL"},outcomes:{type:"array",items:{type:"string"},description:"Possible outcomes (e.g. ['Yes', 'No'])"},outcomePrices:{type:"array",items:{type:"number"},description:"Current price per outcome (0-1)"},outcomeTokens:{type:"array",items:{type:"object",properties:{outcome:{type:"string",description:"Outcome name (e.g. 'Yes', 'No')"},tokenId:{type:"string",description:"Token identifier \u2014 CLOB token ID (Polymarket/EVM) or mint address (Kalshi/Solana)"},price:{type:["number","null"],default:null,description:"Current price for this outcome (0-1)"}},required:["outcome","tokenId"],additionalProperties:!1},default:[],description:"Token IDs for each outcome \u2014 use these to trade"},volume:{type:"number",default:0,description:"Total volume traded in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},lastTradePrice:{type:["number","null"],default:null,description:"Last trade price"},bestBid:{type:["number","null"],default:null,description:"Best bid price"},bestAsk:{type:["number","null"],default:null,description:"Best ask price"},spread:{type:["number","null"],default:null,description:"Bid-ask spread"},oneDayPriceChange:{type:["number","null"],default:null,description:"24-hour price change"},oneHourPriceChange:{type:["number","null"],default:null,description:"1-hour price change"},oneWeekPriceChange:{type:["number","null"],default:null,description:"1-week price change"},startDate:{type:["string","null"],default:null,description:"Market start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Market end date (ISO)"},negRisk:{type:["boolean","null"],default:null,description:"Whether this uses negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},status:{type:["string","null"],default:null,description:"Market lifecycle status (e.g. initialized, active, inactive, closed, determined, finalized)"},isInitialized:{type:["boolean","null"],default:null,description:"Whether the market is tokenized onchain (Kalshi/Solana)"},acceptingOrders:{type:"boolean",default:!1,description:"Whether market is accepting orders"},enableOrderBook:{type:["boolean","null"],default:null,description:"Whether order book is enabled"},orderMinSize:{type:["number","null"],default:null,description:"Minimum order size"},liquidity:{type:["number","null"],default:null,description:"Available liquidity in USDC"},tickSize:{type:["string","null"],default:null,description:"Minimum price increment"}},required:["id","question","slug","outcomes","outcomePrices"],additionalProperties:!1},default:[],description:"Markets within this event"},tags:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},default:[],description:"Category tags"}},required:["id","ticker","slug","title"],additionalProperties:!1},description:"Matching events with markets"},hasMore:{type:"boolean",description:"Whether more results exist"}},required:["items","hasMore"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_tag_list",description:"List available prediction market categories and tags for filtering markets.",inputSchema:{$ref:"#/definitions/prediction-market_market_tag_list_input",definitions:{"prediction-market_market_tag_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},limit:{type:["number","null"],description:"Max results (default 50)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"},slug:{type:["string","null"],description:"Filter by tag slug (e.g. 'nfl')"}},required:["provider","limit","page","slug"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_tag_list_output",definitions:{"prediction-market_market_tag_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},description:"List of tags"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_trending_list",description:"Get trending prediction markets sorted by 24-hour volume. Minimum $150K 24h volume.",inputSchema:{$ref:"#/definitions/prediction-market_market_trending_list_input",definitions:{"prediction-market_market_trending_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},limit:{type:["number","null"],description:"Max results (default 20)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_trending_list_output",definitions:{"prediction-market_market_trending_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Event ID"},ticker:{type:"string",description:"Event ticker"},slug:{type:"string",description:"URL slug"},title:{type:"string",description:"Event title"},description:{type:["string","null"],default:null,description:"Event description"},subtitle:{type:["string","null"],default:null,description:"Event subtitle"},image:{type:["string","null"],default:null,description:"Event image URL"},icon:{type:["string","null"],default:null,description:"Event icon URL"},category:{type:["string","null"],default:null,description:"Primary category"},subcategory:{type:["string","null"],default:null,description:"Subcategory"},volume:{type:"number",default:0,description:"Total volume in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},openInterest:{type:["number","null"],default:null,description:"Open interest in USDC"},liquidity:{type:["number","null"],default:null,description:"Available liquidity"},startDate:{type:["string","null"],default:null,description:"Event start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Event end date (ISO)"},closedTime:{type:["string","null"],default:null,description:"Time event was closed (ISO)"},active:{type:"boolean",default:!0,description:"Whether event is active"},closed:{type:"boolean",default:!1,description:"Whether event has closed"},featured:{type:["boolean","null"],default:null,description:"Whether event is featured"},commentCount:{type:["number","null"],default:null,description:"Number of comments"},negRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},markets:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Market ID"},question:{type:"string",description:"Market question"},description:{type:["string","null"],default:null,description:"Market description"},conditionId:{type:["string","null"],default:null,description:"Condition ID for on-chain settlement"},slug:{type:"string",description:"URL slug"},image:{type:["string","null"],default:null,description:"Market image URL"},outcomes:{type:"array",items:{type:"string"},description:"Possible outcomes (e.g. ['Yes', 'No'])"},outcomePrices:{type:"array",items:{type:"number"},description:"Current price per outcome (0-1)"},outcomeTokens:{type:"array",items:{type:"object",properties:{outcome:{type:"string",description:"Outcome name (e.g. 'Yes', 'No')"},tokenId:{type:"string",description:"Token identifier \u2014 CLOB token ID (Polymarket/EVM) or mint address (Kalshi/Solana)"},price:{type:["number","null"],default:null,description:"Current price for this outcome (0-1)"}},required:["outcome","tokenId"],additionalProperties:!1},default:[],description:"Token IDs for each outcome \u2014 use these to trade"},volume:{type:"number",default:0,description:"Total volume traded in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},lastTradePrice:{type:["number","null"],default:null,description:"Last trade price"},bestBid:{type:["number","null"],default:null,description:"Best bid price"},bestAsk:{type:["number","null"],default:null,description:"Best ask price"},spread:{type:["number","null"],default:null,description:"Bid-ask spread"},oneDayPriceChange:{type:["number","null"],default:null,description:"24-hour price change"},oneHourPriceChange:{type:["number","null"],default:null,description:"1-hour price change"},oneWeekPriceChange:{type:["number","null"],default:null,description:"1-week price change"},startDate:{type:["string","null"],default:null,description:"Market start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Market end date (ISO)"},negRisk:{type:["boolean","null"],default:null,description:"Whether this uses negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},status:{type:["string","null"],default:null,description:"Market lifecycle status (e.g. initialized, active, inactive, closed, determined, finalized)"},isInitialized:{type:["boolean","null"],default:null,description:"Whether the market is tokenized onchain (Kalshi/Solana)"},acceptingOrders:{type:"boolean",default:!1,description:"Whether market is accepting orders"},enableOrderBook:{type:["boolean","null"],default:null,description:"Whether order book is enabled"},orderMinSize:{type:["number","null"],default:null,description:"Minimum order size"},liquidity:{type:["number","null"],default:null,description:"Available liquidity in USDC"},tickSize:{type:["string","null"],default:null,description:"Minimum price increment"}},required:["id","question","slug","outcomes","outcomePrices"],additionalProperties:!1},default:[],description:"Markets within this event"},tags:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},default:[],description:"Category tags"}},required:["id","ticker","slug","title"],additionalProperties:!1},description:"Trending events"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_pnl_retrieve",description:"Get profit and loss summary for a wallet on prediction markets.",inputSchema:{$ref:"#/definitions/prediction-market_pnl_retrieve_input",definitions:{"prediction-market_pnl_retrieve_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"}},required:["provider","wallet"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_pnl_retrieve_output",definitions:{"prediction-market_pnl_retrieve_output":{type:"object",properties:{totalPnl:{type:"number",description:"Total profit/loss in USDC"},realizedPnl:{type:"number",description:"Realized PnL from closed positions"},unrealizedPnl:{type:"number",description:"Unrealized PnL from open positions"},totalInvested:{type:"number",description:"Total amount invested in USDC"},totalValue:{type:"number",description:"Current total value of all positions"}},required:["totalPnl","realizedPnl","unrealizedPnl","totalInvested","totalValue"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_position_buy",description:"Buy shares of a prediction market outcome. Places a limit order at the specified price.",inputSchema:{$ref:"#/definitions/prediction-market_position_buy_input",definitions:{"prediction-market_position_buy_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address placing the order"},tokenId:{type:"string",description:"Outcome token ID to buy (from outcomeTokens[].tokenId)"},price:{type:"number",description:"Price per share (0-1)"},size:{type:"number",description:"Number of shares to buy"}},required:["provider","wallet","tokenId","price","size"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_position_buy_output",definitions:{"prediction-market_position_buy_output":{type:"object",properties:{orderId:{type:["string","null"],description:"Order/transaction ID"},status:{type:"string",description:"Order status (pending_signature, executed, etc.)"},transactionHashes:{type:"array",items:{type:"string"},description:"On-chain transaction hashes"},transaction:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded Solana transaction"},lastValidBlockHeight:{type:"number"}},required:["type","base64","lastValidBlockHeight"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string"},data:{type:"string"},value:{type:"string"},chainId:{type:"number"}},required:["type","to","data","value","chainId"],additionalProperties:!1}]},{type:"null"}],description:"Transaction to sign (Kalshi=Solana, Polymarket=EVM)"}},required:["orderId","status","transactionHashes","transaction"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_position_list",description:"List prediction market positions for a wallet address. Shows current value, PnL, and outcome details.",inputSchema:{$ref:"#/definitions/prediction-market_position_list_input",definitions:{"prediction-market_position_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"},status:{anyOf:[{type:"string",enum:["open","closed"]},{type:"null"}],description:"Position status (default open)"},limit:{type:["number","null"],description:"Max results (default 100)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","wallet","status","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_position_list_output",definitions:{"prediction-market_position_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{asset:{type:"string",description:"Token ID (CLOB token or mint address)"},conditionId:{type:["string","null"],default:null,description:"Condition ID (Polymarket)"},size:{type:"number",description:"Position size in shares"},avgPrice:{type:"number",description:"Average entry price"},initialValue:{type:"number",description:"Initial position value in USDC"},currentValue:{type:"number",description:"Current position value in USDC"},cashPnl:{type:"number",description:"Cash profit/loss in USDC"},percentPnl:{type:"number",description:"Percentage profit/loss"},curPrice:{type:"number",description:"Current outcome price"},redeemable:{type:"boolean",description:"Whether position can be redeemed"},mergeable:{type:"boolean",description:"Whether position can be merged"},title:{type:"string",description:"Event title"},slug:{type:"string",description:"Event slug"},outcome:{type:"string",description:"Outcome name (e.g. 'Yes')"},outcomeIndex:{type:"number",description:"Outcome index (0 or 1)"},oppositeOutcome:{type:["string","null"],default:null,description:"Opposite outcome name"},oppositeAsset:{type:["string","null"],default:null,description:"Opposite outcome token ID"},endDate:{type:["string","null"],default:null,description:"Market end date"},negativeRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"}},required:["asset","size","avgPrice","initialValue","currentValue","cashPnl","percentPnl","curPrice","redeemable","mergeable","title","slug","outcome","outcomeIndex"],additionalProperties:!1},description:"Positions"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_position_sell",description:"Sell shares of a prediction market outcome. Places a limit order at the specified price.",inputSchema:{$ref:"#/definitions/prediction-market_position_sell_input",definitions:{"prediction-market_position_sell_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address placing the order"},tokenId:{type:"string",description:"Outcome token ID to sell (from outcomeTokens[].tokenId)"},price:{type:"number",description:"Price per share (0-1)"},size:{type:"number",description:"Number of shares to sell"}},required:["provider","wallet","tokenId","price","size"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_position_sell_output",definitions:{"prediction-market_position_sell_output":{type:"object",properties:{orderId:{type:["string","null"],description:"Order ID (set for Polymarket, null for Kalshi until signed)"},status:{type:"string",description:"Order status (live, matched, delayed, unmatched, pending_signature)"},transactionHashes:{type:"array",items:{type:"string"},description:"On-chain transaction hashes"},transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded Solana transaction"},lastValidBlockHeight:{type:"number"}},required:["type","base64","lastValidBlockHeight"],additionalProperties:!1},{type:"null"}],description:"Solana transaction to sign (Kalshi only, null for Polymarket)"}},required:["orderId","status","transactionHashes","transaction"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_trade_list",description:"List trade history for a wallet address on prediction markets. Shows buys, sells, prices, and timestamps.",inputSchema:{$ref:"#/definitions/prediction-market_trade_list_input",definitions:{"prediction-market_trade_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"},limit:{type:["number","null"],description:"Max results (default 100)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","wallet","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_trade_list_output",definitions:{"prediction-market_trade_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{side:{type:"string",description:"Trade side (BUY or SELL)"},asset:{type:"string",description:"Token ID (CLOB token or mint address)"},conditionId:{type:["string","null"],default:null,description:"Condition ID"},size:{type:"number",description:"Number of shares"},price:{type:"number",description:"Price per share"},fee:{type:["number","null"],default:null,description:"Trading fee"},timestamp:{type:"number",description:"Trade timestamp (unix)"},title:{type:["string","null"],default:null,description:"Event title"},slug:{type:["string","null"],default:null,description:"Event slug"},outcome:{type:"string",description:"Outcome name"},outcomeIndex:{type:"number",description:"Outcome index"},transactionHash:{type:["string","null"],default:null,description:"On-chain transaction hash"},orderId:{type:["string","null"],default:null,description:"Order ID"}},required:["side","asset","size","price","timestamp","outcome","outcomeIndex"],additionalProperties:!1},description:"Trade history"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_user_create",description:"Register a wallet with a prediction market provider. Required before placing orders.",inputSchema:{$ref:"#/definitions/prediction-market_user_create_input",definitions:{"prediction-market_user_create_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address to register"}},required:["provider","wallet"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_user_create_output",definitions:{"prediction-market_user_create_output":{type:"object",properties:{userId:{type:"string",description:"User ID (EVM address or Solana pubkey)"},proxyWallet:{type:["string","null"],default:null,description:"Provider proxy wallet address"}},required:["userId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"refresh",description:"Refresh an expired access token using a refresh token.",inputSchema:{$ref:"#/definitions/refresh_input",definitions:{refresh_input:{type:"object",properties:{refreshToken:{type:"string",description:"The refresh token from a previous login"}},required:["refreshToken"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/refresh_output",definitions:{refresh_output:{type:"object",properties:{accessToken:{type:"string"},refreshToken:{type:"string"},expiresAt:{type:"number"}},required:["accessToken","refreshToken","expiresAt"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"swaps_transaction_build",description:"Build a swap or bridge transaction. Returns an unsigned transaction with a human-readable message, amounts, exchange rate, and estimated time. Supports same-chain swaps and cross-chain bridges. Accepts UI amounts (e.g. 0.1 SOL) \u2014 decimal conversion is handled automatically.",inputSchema:{$ref:"#/definitions/swaps_transaction_build_input",definitions:{swaps_transaction_build_input:{type:"object",properties:{from:{type:"object",properties:{wallet:{type:"string",description:"Source wallet address (Solana pubkey or EVM 0x address)"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Source blockchain"},token:{type:"string",description:"Source token address (mint on Solana, contract on EVM). Use native token address for SOL/ETH."},amount:{type:["number","null"],description:"Amount to swap (exact-in). Null for exact-out."}},required:["wallet","chain","token","amount"],additionalProperties:!1,description:"Source: wallet, chain, token, amount"},to:{type:"object",properties:{wallet:{type:"string",description:"Destination wallet address. Same as source wallet for same-chain swaps."},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Destination blockchain"},token:{type:"string",description:"Destination token address (mint on Solana, contract on EVM)"},amount:{type:["number","null"],description:"Amount to receive (exact-out). Null for exact-in."}},required:["wallet","chain","token","amount"],additionalProperties:!1,description:"Destination: wallet, chain, token, amount"}},required:["from","to"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/swaps_transaction_build_output",definitions:{swaps_transaction_build_output:{type:"object",properties:{transactionId:{type:"string",description:"Transaction ID for tracking"},transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded transaction"}},required:["type","base64"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string",description:"Contract address"},data:{type:"string",description:"Calldata"},value:{type:"string",description:"Native token value in wei"},chainId:{type:"number",description:"EVM chain ID"}},required:["type","to","data","value","chainId"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"tron"},rawDataHex:{type:"string",description:"Hex-encoded raw transaction data for signing"},rawData:{description:"Protobuf JSON structure for broadcast"},txID:{type:"string",description:"Transaction ID (SHA-256 of raw_data_hex)"},visible:{type:"boolean"}},required:["type","rawDataHex"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ton"},boc:{type:"string",description:"Base64-encoded BOC (Bag of Cells) for signing and broadcast"}},required:["type","boc"],additionalProperties:!1}],description:"Unsigned transaction"},message:{type:"string",description:"Human-readable description (e.g. Swap 0.1 SOL \u2192 42.5 USDC on Solana)"},amountIn:{type:"object",properties:{amount:{type:"number",description:"Human-readable amount (e.g. 1.5)"},raw:{type:"string",description:"Raw amount in smallest unit (e.g. wei, lamports)"},symbol:{type:"string"},usd:{type:["number","null"]}},required:["amount","raw","symbol","usd"],additionalProperties:!1},amountOut:{type:"object",properties:{amount:{type:"number",description:"Human-readable amount (e.g. 1.5)"},raw:{type:"string",description:"Raw amount in smallest unit (e.g. wei, lamports)"},symbol:{type:"string"},usd:{type:["number","null"]}},required:["amount","raw","symbol","usd"],additionalProperties:!1},exchangeRate:{type:"number",description:"Exchange rate (amountOut / amountIn)"},estimatedTime:{type:["number","null"],description:"Estimated completion time in seconds"},requiresApproval:{type:"boolean",description:"Whether an ERC20 approval transaction is needed first"}},required:["transactionId","transaction","message","amountIn","amountOut","exchangeRate","estimatedTime","requiresApproval"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_balance_list",description:"List all token balances held in a wallet, including amount owned, current value in USD, and token details. Shows the complete token portfolio.",inputSchema:{$ref:"#/definitions/token_balance_list_input",definitions:{token_balance_list_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address to check token balances for"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to check balances on (e.g. 'solana', 'ethereum', 'base')"}},required:["wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_balance_list_output",definitions:{token_balance_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},balance:{type:"object",properties:{amount:{type:"number",description:"Number of tokens owned"},value:{type:"number",description:"Total value of the token in USD"},price:{type:"number",description:"Current price of the token"}},required:["amount","value","price"],additionalProperties:!1}},required:["address","name","symbol","chain","decimals","balance"],additionalProperties:!1},description:"Array of all tokens in the wallet with their balances and current values"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_check",description:"Check a token for safety risks \u2014 holder concentration, liquidity, and community warnings. Returns a risk summary.",inputSchema:{$ref:"#/definitions/token_check_input",definitions:{token_check_input:{type:"object",properties:{token:{type:"string",description:"Token contract address"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"}},required:["token","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_check_output",definitions:{token_check_output:{type:"object",properties:{token:{type:"object",properties:{address:{type:"string"},name:{type:["string","null"]},symbol:{type:["string","null"]},chain:{type:"string"}},required:["address","name","symbol","chain"],additionalProperties:!1},holderConcentration:{type:"object",properties:{top10Percent:{type:["number","null"]}},required:["top10Percent"],additionalProperties:!1},liquidity:{type:"object",properties:{total:{type:["number","null"]},locked:{type:["number","null"]}},required:["total","locked"],additionalProperties:!1},communityNotes:{type:"array",items:{type:"string"}},risks:{type:"array",items:{type:"string"}}},required:["token","holderConcentration","liquidity","communityNotes","risks"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_holder_list",description:"Find wallets holding a specific token, ranked by profitability. Useful for finding smart money on a token.",inputSchema:{$ref:"#/definitions/token_holder_list_input",definitions:{token_holder_list_input:{type:"object",properties:{token:{type:"string",description:"Token contract address"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"},limit:{type:["number","null"],description:"Maximum number of results to return (optional, defaults to 10)"}},required:["token","chain","limit"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_holder_list_output",definitions:{token_holder_list_output:{type:"object",properties:{wallets:{type:"array"}},required:["wallets"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_retrieve",description:"Get detailed token information including market data, price changes, volume, trades, and holder statistics by token address",inputSchema:{$ref:"#/definitions/token_retrieve_input",definitions:{token_retrieve_input:{type:"object",properties:{token:{type:"string",description:"Address of the token to retrieve"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain network where the token exists"}},required:["token","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_retrieve_output",definitions:{token_retrieve_output:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},marketData:{type:"object",properties:{liquidity:{type:["number","null"],description:"Total liquidity"},marketCap:{type:["number","null"],description:"Market capitalization"},fdv:{type:["number","null"],description:"Fully diluted valuation"},price:{type:["number","null"],description:"Current price"},priceChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in price across time intervals"},volume:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Trading volume in USD across time intervals"},volumeChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in trading volume across time intervals"},trades:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of trades across time intervals"},tradesChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of trades across time intervals"},buys:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of buys across time intervals"},buysChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of buys across time intervals"},sells:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of sells across time intervals"},sellsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of sells across time intervals"},uniqueWallets:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of unique wallets trading across time intervals"},uniqueWalletsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of unique wallets trading across time intervals"}},additionalProperties:!1}},required:["address","name","symbol","chain","decimals"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_search",description:"Search for tokens by name, symbol, or address. Returns matching tokens with their market data including price, volume, and liquidity.",inputSchema:{$ref:"#/definitions/token_search_input",definitions:{token_search_input:{type:"object",properties:{query:{type:"string",description:"Search term - can be token name (e.g. 'Bitcoin'), symbol (e.g. 'BTC'), or partial match"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to search on (e.g. 'solana', 'ethereum', 'base')"},limit:{type:["number","null"],description:"Maximum number of results to return (optional, defaults to 5)"}},required:["query","chain","limit"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_search_output",definitions:{token_search_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},marketData:{type:"object",properties:{liquidity:{type:["number","null"],description:"Total liquidity"},marketCap:{type:["number","null"],description:"Market capitalization"},fdv:{type:["number","null"],description:"Fully diluted valuation"},price:{type:["number","null"],description:"Current price"},priceChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in price across time intervals"},volume:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Trading volume in USD across time intervals"},volumeChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in trading volume across time intervals"},trades:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of trades across time intervals"},tradesChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of trades across time intervals"},buys:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of buys across time intervals"},buysChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of buys across time intervals"},sells:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of sells across time intervals"},sellsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of sells across time intervals"},uniqueWallets:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of unique wallets trading across time intervals"},uniqueWalletsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of unique wallets trading across time intervals"}},additionalProperties:!1}},required:["address","name","symbol","chain","decimals"],additionalProperties:!1},description:"Array of tokens matching the search query with their market data"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_transfer",description:"Build an unsigned transfer transaction. Returns a transaction ready for signing. Handles both native and token transfers.",inputSchema:{$ref:"#/definitions/token_transfer_input",definitions:{token_transfer_input:{type:"object",properties:{wallet:{type:"string",description:"Sender wallet address (Solana pubkey or EVM 0x address)"},token:{type:"string",description:"Token address (mint on Solana, contract on EVM). Use native token address for SOL/ETH."},to:{type:"string",description:"Recipient wallet address or name"},amount:{type:"number",description:"Amount to transfer in human-readable units (e.g. 1.5)"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to execute the transfer on"}},required:["wallet","token","to","amount","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_transfer_output",definitions:{token_transfer_output:{type:"object",properties:{transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded transaction"}},required:["type","base64"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string",description:"Recipient or contract address"},data:{type:"string",description:"Calldata (0x for native transfers)"},value:{type:"string",description:"Native token value in wei"},chainId:{type:"number",description:"EVM chain ID"}},required:["type","to","data","value","chainId"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"tron"},rawDataHex:{type:"string",description:"Hex-encoded raw transaction data for signing"},rawData:{description:"Protobuf JSON structure for broadcast"},txID:{type:"string",description:"Transaction ID (SHA-256 of raw_data_hex)"},visible:{type:"boolean"}},required:["type","rawDataHex"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ton"},boc:{type:"string",description:"Base64-encoded BOC (Bag of Cells) for signing and broadcast"}},required:["type","boc"],additionalProperties:!1}]},message:{type:"string",description:"Human-readable description of the transfer"},requiresApproval:{type:"boolean",description:"Whether a token approval transaction is needed first"},transactionId:{type:["string","null"],description:"Transaction ID for tracking with swaps.xyz (null for Solana transfers)"}},required:["transaction","message","requiresApproval","transactionId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_trending_list",description:"Get currently trending tokens on a blockchain. Perfect for discovering what's hot right now.",inputSchema:{$ref:"#/definitions/token_trending_list_input",definitions:{token_trending_list_input:{type:"object",properties:{chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to get trending tokens from (e.g. 'solana', 'ethereum', 'base')"},limit:{type:"integer",minimum:1,description:"Number of results per page"},page:{type:"integer",minimum:1,description:"Page number (starts at 1)"}},required:["chain","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_trending_list_output",definitions:{token_trending_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},marketData:{type:"object",properties:{liquidity:{type:["number","null"],description:"Total liquidity"},marketCap:{type:["number","null"],description:"Market capitalization"},fdv:{type:["number","null"],description:"Fully diluted valuation"},price:{type:["number","null"],description:"Current price"},priceChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in price across time intervals"},volume:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Trading volume in USD across time intervals"},volumeChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in trading volume across time intervals"},trades:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of trades across time intervals"},tradesChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of trades across time intervals"},buys:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of buys across time intervals"},buysChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of buys across time intervals"},sells:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of sells across time intervals"},sellsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of sells across time intervals"},uniqueWallets:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of unique wallets trading across time intervals"},uniqueWalletsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of unique wallets trading across time intervals"}},additionalProperties:!1}},required:["address","name","symbol","chain","decimals"],additionalProperties:!1},description:"Array of trending tokens with their market data"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_list",description:"List swap and bridge transaction history for a wallet.",inputSchema:{$ref:"#/definitions/transaction_list_input",definitions:{transaction_list_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address that signed and sent the transactions"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain the wallet is on"}},required:["wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_list_output",definitions:{transaction_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{transactionId:{type:"string",description:"Transaction tracking ID"},status:{type:"string",description:"Current status: pending, success, or failed"},type:{type:"string",enum:["swap","bridge"],description:"Transaction type"},from:{type:"object",properties:{chain:{type:"string",description:"Source blockchain"},token:{type:"string",description:"Source token symbol"},amount:{type:["number","null"],description:"Amount sent"},txHash:{type:"string",description:"Source chain transaction hash"}},required:["chain","token","amount","txHash"],additionalProperties:!1},to:{type:"object",properties:{chain:{type:"string",description:"Destination blockchain"},token:{type:"string",description:"Destination token symbol"},amount:{type:["number","null"],description:"Amount received"},txHash:{type:["string","null"],description:"Destination chain transaction hash"}},required:["chain","token","amount","txHash"],additionalProperties:!1},usd:{type:["number","null"],description:"USD value of the transaction"},bridgeTime:{type:["number","null"],description:"Bridge completion time in seconds"}},required:["transactionId","status","type","from","to","usd","bridgeTime"],additionalProperties:!1},description:"List of swap/bridge transactions"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_register",description:"Register a broadcast transaction for tracking. Call after transaction_send to enable status tracking via transaction_retrieve.",inputSchema:{$ref:"#/definitions/transaction_register_input",definitions:{transaction_register_input:{type:"object",properties:{transactionId:{type:"string",description:"Transaction ID from the swap build step"},transactionHash:{type:"string",description:"Transaction hash/signature after broadcasting"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain where the transaction was broadcast"}},required:["transactionId","transactionHash","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_register_output",definitions:{transaction_register_output:{type:"object",properties:{success:{type:"boolean",description:"Whether the operation was successful"}},required:["success"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_retrieve",description:"Get the status and details of a transaction by its ID.",inputSchema:{$ref:"#/definitions/transaction_retrieve_input",definitions:{transaction_retrieve_input:{type:"object",properties:{transactionId:{type:"string",description:"Transaction ID from swap build or transaction register"}},required:["transactionId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_retrieve_output",definitions:{transaction_retrieve_output:{type:"object",properties:{transactionId:{type:"string",description:"Transaction tracking ID"},status:{type:"string",description:"Current status: pending, success, or failed"},type:{type:"string",enum:["swap","bridge"],description:"Transaction type"},from:{type:"object",properties:{chain:{type:"string",description:"Source blockchain"},token:{type:"string",description:"Source token symbol"},amount:{type:["number","null"],description:"Amount sent"},txHash:{type:"string",description:"Source chain transaction hash"}},required:["chain","token","amount","txHash"],additionalProperties:!1},to:{type:"object",properties:{chain:{type:"string",description:"Destination blockchain"},token:{type:"string",description:"Destination token symbol"},amount:{type:["number","null"],description:"Amount received"},txHash:{type:["string","null"],description:"Destination chain transaction hash. Null while bridge is in progress."}},required:["chain","token","amount","txHash"],additionalProperties:!1},usd:{type:["number","null"],description:"USD value of the transaction"},bridgeTime:{type:["number","null"],description:"Bridge completion time in seconds. Null for same-chain swaps."}},required:["transactionId","status","type","from","to","usd","bridgeTime"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_send",description:"Broadcast a signed transaction to the network. Supports Solana, EVM chains, Bitcoin, and Tron.",inputSchema:{$ref:"#/definitions/transaction_send_input",definitions:{transaction_send_input:{type:"object",properties:{transaction:{type:"string",description:"Signed transaction: base64-encoded for Solana, hex-encoded (0x...) for EVM, raw hex for Bitcoin, JSON {raw_data_hex, signature} for Tron"},message:{type:"string",description:"Human-readable message describing the transaction"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to broadcast on"}},required:["transaction","message","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_send_output",definitions:{transaction_send_output:{type:"object",properties:{signature:{type:"string",description:"Transaction signature/hash. Absent if broadcast failed."},message:{type:"string",description:"Result message or error description"}},required:["message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"user_retrieve",description:"Get the currently authenticated user",inputSchema:{$ref:"#/definitions/user_retrieve_input",definitions:{user_retrieve_input:{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/user_retrieve_output",definitions:{user_retrieve_output:{type:"object",properties:{id:{type:"string",description:"User ID"},email:{type:["string","null"],description:"User email address"}},required:["id","email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"verify",description:"Verify a login code for the user.",inputSchema:{$ref:"#/definitions/verify_input",definitions:{verify_input:{type:"object",properties:{code:{type:"string",pattern:"^\\d{6}$",description:"The code to verify"},email:{type:"string",format:"email",description:"The email the OTP was sent to"}},required:["code","email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/verify_output",definitions:{verify_output:{type:"object",properties:{accessToken:{type:"string"},refreshToken:{type:"string"},expiresAt:{type:"number"}},required:["accessToken","refreshToken","expiresAt"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_agreement_accept",description:"Accept a required legal agreement. Pass the content ID from virtual-account_agreement_list to mark the agreement as accepted.",inputSchema:{$ref:"#/definitions/virtual-account_agreement_accept_input",definitions:{"virtual-account_agreement_accept_input":{type:"object",properties:{contentId:{type:"string",description:"Content ID from virtual-account_agreement_list"}},required:["contentId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_agreement_accept_output",definitions:{"virtual-account_agreement_accept_output":{type:"object",properties:{id:{type:"string",description:"Signing record ID"},contentId:{type:["string","null"],description:"Content ID of the accepted agreement"},documentId:{type:["string","null"],description:"Document ID"}},required:["id","contentId","documentId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_agreement_list",description:"List legal agreements. By default shows pending agreements that must be accepted to activate the account. Use status=accepted to see previously accepted agreements.",inputSchema:{$ref:"#/definitions/virtual-account_agreement_list_input",definitions:{"virtual-account_agreement_list_input":{type:"object",properties:{status:{anyOf:[{type:"string",enum:["pending","accepted"]},{type:"null"}],description:"Filter: pending (need to accept, default) or accepted (already signed)"},country:{type:["string","null"],description:"Country code for terms (e.g. USA, GBR). Defaults to USA."}},required:["status","country"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_agreement_list_output",definitions:{"virtual-account_agreement_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Content ID \u2014 pass to virtual-account_agreement_accept to accept"},name:{type:"string",description:"Document name (e.g. 'USA Terms and Conditions')"},url:{type:"string",description:"URL to view the document"}},required:["id","name","url"],additionalProperties:!1},description:"List of agreements"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_delete",description:"Delete a bank account",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_delete_input",definitions:{"virtual-account_bank-account_delete_input":{type:"object",properties:{bankAccountId:{type:"string",format:"uuid",description:"The ID of the bank account to delete"}},required:["bankAccountId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_delete_output",definitions:{"virtual-account_bank-account_delete_output":{type:"object",properties:{success:{type:"boolean",description:"Whether the operation was successful"}},required:["success"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_list",description:"List registered bank accounts",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_list_input",definitions:{"virtual-account_bank-account_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_list_output",definitions:{"virtual-account_bank-account_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},bank_account_identifier:{anyOf:[{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"}},required:["type","iban"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ACH"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Wire"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1}]},bank_name:{type:"string"},country:{type:"string"},created_at:{type:"string",format:"date-time"},currency:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"},customer_id:{type:"string"},is_third_party:{type:"boolean"},label:{type:["string","null"]},ownership_verified:{type:"boolean"},status:{type:"string",enum:["AuthorizationRequired","AuthorizationFailed","RegistrationPending","RegistrationFailed","Registered"]},updated_at:{type:"string",format:"date-time"}},required:["id","bank_account_identifier","bank_name","country","created_at","currency","customer_id","is_third_party","label","ownership_verified","status","updated_at"],additionalProperties:!1}}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_register",description:"Register a bank account for offramp payouts. USD accounts use ACH/Wire with account+routing numbers. EUR accounts use SEPA with IBAN.",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_register_input",definitions:{"virtual-account_bank-account_register_input":{type:"object",properties:{currency:{type:"string",enum:["USD","EUR"],description:"Currency of the bank account (USD or EUR)"},type:{type:"string",enum:["ACH","Wire","SEPA"],description:"Account type: ACH or Wire for USD, SEPA for EUR"},accountNumber:{type:["string","null"],description:"Account number (required for USD ACH/Wire)"},routingNumber:{type:["string","null"],description:"Routing number (required for USD ACH/Wire)"},iban:{type:["string","null"],description:"IBAN (required for EUR SEPA)"},address:{type:"object",properties:{street:{type:"string",description:"Street address"},city:{type:"string",description:"City"},state:{type:"string",description:"State or province"},country:{type:"string",enum:["US","GB","CA","AU","DE","FR","IT","ES","NL","BE","AT","CH","SE","NO","DK","FI","IE","PT","PL","CZ","GR","JP","KR","CN","IN","BR","MX","AR","ZA","NZ","SG","HK","AE"],description:"ISO 3166-1 Alpha-2 country code"},postalCode:{type:"string",description:"Postal or ZIP code"}},required:["street","city","state","country","postalCode"],additionalProperties:!1,description:"Address of the account holder"},email:{type:"string",description:"Email address of the account holder"},phoneNumber:{type:"string",description:"Phone number of the account holder"},providerCountry:{type:"string",enum:["US","GB","CA","AU","DE","FR","IT","ES","NL","BE","AT","CH","SE","NO","DK","FI","IE","PT","PL","CZ","GR","JP","KR","CN","IN","BR","MX","AR","ZA","NZ","SG","HK","AE"],description:"ISO 3166-1 Alpha-2 country code where the bank is located"},providerName:{type:"string",description:"Name of the bank"},givenName:{type:"string",description:"First/given name of the account holder"},familyName:{type:"string",description:"Last/family name of the account holder"}},required:["currency","type","accountNumber","routingNumber","iban","address","email","phoneNumber","providerCountry","providerName","givenName","familyName"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_register_output",definitions:{"virtual-account_bank-account_register_output":{type:"object",properties:{id:{type:"string"},bank_account_identifier:{anyOf:[{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"}},required:["type","iban"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ACH"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Wire"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1}]},bank_name:{type:"string"},country:{type:"string"},created_at:{type:"string",format:"date-time"},currency:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"},customer_id:{type:"string"},is_third_party:{type:"boolean"},label:{type:["string","null"]},ownership_verified:{type:"boolean"},status:{type:"string",enum:["AuthorizationRequired","AuthorizationFailed","RegistrationPending","RegistrationFailed","Registered"]},updated_at:{type:"string",format:"date-time"}},required:["id","bank_account_identifier","bank_name","country","created_at","currency","customer_id","is_third_party","label","ownership_verified","status","updated_at"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_retrieve",description:"Get a bank account by ID",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_retrieve_input",definitions:{"virtual-account_bank-account_retrieve_input":{type:"object",properties:{bankAccountId:{type:"string",description:"Bank account ID"}},required:["bankAccountId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_retrieve_output",definitions:{"virtual-account_bank-account_retrieve_output":{type:"object",properties:{id:{type:"string"},bank_account_identifier:{anyOf:[{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"}},required:["type","iban"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ACH"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Wire"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1}]},bank_name:{type:"string"},country:{type:"string"},created_at:{type:"string",format:"date-time"},currency:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"},customer_id:{type:"string"},is_third_party:{type:"boolean"},label:{type:["string","null"]},ownership_verified:{type:"boolean"},status:{type:"string",enum:["AuthorizationRequired","AuthorizationFailed","RegistrationPending","RegistrationFailed","Registered"]},updated_at:{type:"string",format:"date-time"}},required:["id","bank_account_identifier","bank_name","country","created_at","currency","customer_id","is_third_party","label","ownership_verified","status","updated_at"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_create",description:"Create a virtual account and start KYC/KYB verification",inputSchema:{$ref:"#/definitions/virtual-account_create_input",definitions:{"virtual-account_create_input":{type:"object",properties:{customerType:{anyOf:[{type:"string",enum:["Person","Business"]},{type:"null"}],description:"Account type: Person for individuals (KYC), Business for companies (KYB). Defaults to Person."}},required:["customerType"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_create_output",definitions:{"virtual-account_create_output":{type:"object",properties:{id:{type:"string"},email:{type:"string"},customerType:{type:"string",enum:["Person","Business"]},status:{type:"string",enum:["UserRequired","SigningsRequired","IdentificationRequired","Active","Suspended"]},nextStep:{type:["string","null"]}},required:["id","email","customerType","status","nextStep"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_kyc_continue",description:"Get the current KYC verification status and URL. Use this to check progress or get the verification link again.",inputSchema:{$ref:"#/definitions/virtual-account_kyc_continue_input",definitions:{"virtual-account_kyc_continue_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_kyc_continue_output",definitions:{"virtual-account_kyc_continue_output":{type:"object",properties:{id:{type:"string",description:"Identification record ID"},status:{type:"string",enum:["Pending","Processed","PendingReview","Approved","Declined","Expired"],description:"KYC status: Pending, Processed, PendingReview, Approved, Declined, or Expired"},url:{type:["string","null"],description:"URL to complete KYC verification. Null if already submitted."}},required:["id","status","url"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_kyc_restart",description:"Restart KYC verification. Creates a fresh verification link. Only available when account status is IdentificationRequired.",inputSchema:{$ref:"#/definitions/virtual-account_kyc_restart_input",definitions:{"virtual-account_kyc_restart_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_kyc_restart_output",definitions:{"virtual-account_kyc_restart_output":{type:"object",properties:{id:{type:"string",description:"Identification record ID"},status:{type:"string",enum:["Pending","Processed","PendingReview","Approved","Declined","Expired"],description:"KYC status: Pending, Processed, PendingReview, Approved, Declined, or Expired"},url:{type:["string","null"],description:"URL to complete KYC verification. Null if already submitted."},message:{type:["string","null"],description:"Instructions for the user"}},required:["id","status","url","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_cancel",description:"Cancel an offramp",inputSchema:{$ref:"#/definitions/virtual-account_offramp_cancel_input",definitions:{"virtual-account_offramp_cancel_input":{type:"object",properties:{offrampId:{type:"string",format:"uuid",description:"The ID of the offramp to cancel"}},required:["offrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_cancel_output",definitions:{"virtual-account_offramp_cancel_output":{type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_create",description:"Create an offramp to convert stablecoin to fiat",inputSchema:{$ref:"#/definitions/virtual-account_offramp_create_input",definitions:{"virtual-account_offramp_create_input":{type:"object",properties:{name:{type:"string",description:"The name of the offramp"},bankAccountId:{type:"string",description:"Bank account ID to receive fiat. Get from `bank-account list`."},stablecoin:{type:"string",enum:["USDC","USDT","EURC"],description:"The stablecoin token to convert from"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain the stablecoin is on (solana, ethereum, polygon, arbitrum, base)"}},required:["name","bankAccountId","stablecoin","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_create_output",definitions:{"virtual-account_offramp_create_output":{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_initiate",description:"Build an unsigned transaction to send stablecoin to an offramp deposit address",inputSchema:{$ref:"#/definitions/virtual-account_offramp_initiate_input",definitions:{"virtual-account_offramp_initiate_input":{type:"object",properties:{wallet:{type:"string",description:"The wallet address to send from"},offrampId:{type:"string",description:"The ID of the offramp to initiate"},amount:{type:"number",minimum:0,description:"The amount of stablecoin to send (in human-readable units, e.g., 100.5)"}},required:["wallet","offrampId","amount"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_initiate_output",definitions:{"virtual-account_offramp_initiate_output":{type:"object",properties:{transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded transaction"}},required:["type","base64"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string",description:"Recipient or contract address"},data:{type:"string",description:"Calldata (0x for native transfers)"},value:{type:"string",description:"Native token value in wei"},chainId:{type:"number",description:"EVM chain ID"}},required:["type","to","data","value","chainId"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"tron"},rawDataHex:{type:"string",description:"Hex-encoded raw transaction data for signing"},rawData:{description:"Protobuf JSON structure for broadcast"},txID:{type:"string",description:"Transaction ID (SHA-256 of raw_data_hex)"},visible:{type:"boolean"}},required:["type","rawDataHex"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ton"},boc:{type:"string",description:"Base64-encoded BOC (Bag of Cells) for signing and broadcast"}},required:["type","boc"],additionalProperties:!1}]},message:{type:"string",description:"Human-readable description of the transfer"},requiresApproval:{type:"boolean",description:"Whether a token approval transaction is needed first"},transactionId:{type:["string","null"],description:"Transaction ID for tracking with swaps.xyz (null for Solana transfers)"}},required:["transaction","message","requiresApproval","transactionId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_list",description:"List all offramps",inputSchema:{$ref:"#/definitions/virtual-account_offramp_list_input",definitions:{"virtual-account_offramp_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_list_output",definitions:{"virtual-account_offramp_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_retrieve",description:"Get offramp details",inputSchema:{$ref:"#/definitions/virtual-account_offramp_retrieve_input",definitions:{"virtual-account_offramp_retrieve_input":{type:"object",properties:{offrampId:{type:"string",format:"uuid",description:"The ID of the offramp to retrieve"}},required:["offrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_retrieve_output",definitions:{"virtual-account_offramp_retrieve_output":{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_update",description:"Update an existing offramp's destination bank account or fiat currency.",inputSchema:{$ref:"#/definitions/virtual-account_offramp_update_input",definitions:{"virtual-account_offramp_update_input":{type:"object",properties:{offrampId:{type:"string",description:"The ID of the offramp to update"},bankAccountId:{type:"string",description:"New bank account ID. Get from `bank-account list`."}},required:["offrampId","bankAccountId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_update_output",definitions:{"virtual-account_offramp_update_output":{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_cancel",description:"Cancel an onramp",inputSchema:{$ref:"#/definitions/virtual-account_onramp_cancel_input",definitions:{"virtual-account_onramp_cancel_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp to cancel"}},required:["onrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_cancel_output",definitions:{"virtual-account_onramp_cancel_output":{type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_create",description:"Create a fiat-to-stablecoin onramp. Returns a deposit account (bank IBAN or account number) where the user sends fiat. Incoming fiat is automatically converted to stablecoin and sent to the registered wallet.",inputSchema:{$ref:"#/definitions/virtual-account_onramp_create_input",definitions:{"virtual-account_onramp_create_input":{type:"object",properties:{name:{type:"string",description:"A label for this onramp (e.g. 'My USD onramp')"},fiat:{type:"string",enum:["USD","EUR"],description:"Fiat currency: usd or eur"},stablecoin:{type:"string",enum:["USDC","USDT","EURC"],description:"Target stablecoin: usdc, usdt, or eurc"},wallet:{type:"string",description:"Registered wallet address (must be registered via virtual-account_wallet_register first)"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to receive stablecoin on (solana, ethereum, polygon, arbitrum, base)"}},required:["name","fiat","stablecoin","wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_create_output",definitions:{"virtual-account_onramp_create_output":{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_list",description:"List all fiat-to-stablecoin onramps. Shows each onramp's deposit account details, status, and destination wallet.",inputSchema:{$ref:"#/definitions/virtual-account_onramp_list_input",definitions:{"virtual-account_onramp_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_list_output",definitions:{"virtual-account_onramp_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1},description:"List of configured onramps"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_payment_create",description:"Create an open banking payment link for an onramp",inputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_create_input",definitions:{"virtual-account_onramp_payment_create_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp"},amount:{type:"string",description:"The amount to pay"},fiat:{type:"string",enum:["USD","EUR"],description:"The fiat currency (USD or EUR)"}},required:["onrampId","amount","fiat"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_create_output",definitions:{"virtual-account_onramp_payment_create_output":{type:"object",properties:{id:{type:"string"},paymentLink:{type:["string","null"]},status:{type:"string",enum:["Pending","Ready","Processing","Completed","Failed"]}},required:["id","paymentLink","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_payment_retrieve",description:"Get the status of an open banking payment",inputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_retrieve_input",definitions:{"virtual-account_onramp_payment_retrieve_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp this payment belongs to"},paymentId:{type:"string",format:"uuid",description:"The ID of the payment to retrieve"}},required:["onrampId","paymentId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_retrieve_output",definitions:{"virtual-account_onramp_payment_retrieve_output":{type:"object",properties:{id:{type:"string"},paymentLink:{type:["string","null"]},status:{type:"string",enum:["Pending","Ready","Processing","Completed","Failed"]}},required:["id","paymentLink","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_retrieve",description:"Get onramp details and banking info",inputSchema:{$ref:"#/definitions/virtual-account_onramp_retrieve_input",definitions:{"virtual-account_onramp_retrieve_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp to retrieve"}},required:["onrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_retrieve_output",definitions:{"virtual-account_onramp_retrieve_output":{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_update",description:"Update an existing onramp's destination wallet, chain, or stablecoin.",inputSchema:{$ref:"#/definitions/virtual-account_onramp_update_input",definitions:{"virtual-account_onramp_update_input":{type:"object",properties:{onrampId:{type:"string",description:"The ID of the onramp to update"},wallet:{type:["string","null"],description:"New destination wallet address (must be registered)"},chain:{anyOf:[{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"]},{type:"null"}],description:"New destination chain (solana, ethereum, polygon, arbitrum, base)"},stablecoin:{anyOf:[{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"},{type:"null"}],description:"New destination stablecoin (USDC, USDT, EURC)"}},required:["onrampId","wallet","chain","stablecoin"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_update_output",definitions:{"virtual-account_onramp_update_output":{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_retrieve",description:"Get your virtual account status",inputSchema:{$ref:"#/definitions/virtual-account_retrieve_input",definitions:{"virtual-account_retrieve_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_retrieve_output",definitions:{"virtual-account_retrieve_output":{type:"object",properties:{id:{type:"string"},email:{type:"string"},customerType:{type:"string",enum:["Person","Business"]},status:{type:"string",enum:["UserRequired","SigningsRequired","IdentificationRequired","Active","Suspended"]},nextStep:{type:["string","null"]}},required:["id","email","customerType","status","nextStep"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_transaction_list",description:"List fiat-to-stablecoin conversion transactions. Shows status, fiat amount sent, and stablecoin amount received for each conversion.",inputSchema:{$ref:"#/definitions/virtual-account_transaction_list_input",definitions:{"virtual-account_transaction_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_transaction_list_output",definitions:{"virtual-account_transaction_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Transaction ID"},state:{type:"string",enum:["Pending","PayoutPending","Payout","PayoutCompleted","Completed","Failed","InAmlReview","AmlRejected","AmountRejected"],description:"Transaction state (e.g. pending, completed, failed)"},sourceAmount:{type:"string",description:"Fiat amount sent (e.g. '100.00 USD')"},destinationAmount:{type:"string",description:"Stablecoin amount received (e.g. '99.50 USDC')"},createdAt:{type:"string",format:"date-time",description:"Transaction creation timestamp"}},required:["id","state","sourceAmount","destinationAmount","createdAt"],additionalProperties:!1},description:"List of onramp conversion transactions"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_wallet_list",description:"List wallets registered for the virtual account. Only registered wallets can receive onramp payouts.",inputSchema:{$ref:"#/definitions/virtual-account_wallet_list_input",definitions:{"virtual-account_wallet_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_wallet_list_output",definitions:{"virtual-account_wallet_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},address:{type:"string"},blockchain:{type:"string"}},required:["id","address","blockchain"],additionalProperties:!1},description:"List of registered wallets"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_wallet_register",description:"Register a wallet by submitting a signed proof-of-ownership message. The wallet can then be used as a destination for onramp payouts.",inputSchema:{$ref:"#/definitions/virtual-account_wallet_register_input",definitions:{"virtual-account_wallet_register_input":{type:"object",properties:{wallet:{type:"string",description:"Wallet address to register"},message:{type:"string",description:"Proof-of-ownership verification message"},signature:{type:"string",description:"Signature of the message, signed by the wallet's private key"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain for wallet registration (solana, ethereum, polygon, base, arbitrum)"}},required:["wallet","message","signature","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_wallet_register_output",definitions:{"virtual-account_wallet_register_output":{type:"object",properties:{success:{type:"boolean",description:"Whether the operation was successful"}},required:["success"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"wallet_activity_list",description:"List recent activity (swaps, transfers, mints, burns) for a wallet address on a given chain.",inputSchema:{$ref:"#/definitions/wallet_activity_list_input",definitions:{wallet_activity_list_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain to query"},limit:{type:"integer",minimum:1,maximum:100,description:"Number of events to return"},cursor:{type:["string","null"],description:"Pagination cursor from previous response"}},required:["wallet","chain","limit","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/wallet_activity_list_output",definitions:{wallet_activity_list_output:{type:"object",properties:{trades:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["buy","sell"],description:"Trade direction from maker perspective"},date:{type:"string",format:"date-time",description:"Date and time of the trade"},trader:{type:"string",description:"Address of the trader"},input:{type:"object",properties:{address:{type:"string",description:"Address of the input token"},symbol:{type:"string",description:"Symbol of the input token"},amount:{type:"number",description:"Raw amount of input token (smallest unit)"},amountUsd:{type:"number",description:"USD value of the swap"}},required:["address","symbol","amount","amountUsd"],additionalProperties:!1},output:{type:"object",properties:{address:{type:"string",description:"Address of the output token"},symbol:{type:"string",description:"Symbol of the output token"},amount:{type:"number",description:"Raw amount of output token (smallest unit)"},amountUsd:{type:"number",description:"USD value of the swap"}},required:["address","symbol","amount","amountUsd"],additionalProperties:!1},signature:{type:"string",description:"Transaction signature/hash"}},required:["type","date","trader","input","output","signature"],additionalProperties:!1}},cursor:{type:["string","null"],description:"Cursor for next page, null if no more"}},required:["trades","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"wallet_discover",description:"Discover top-performing wallets by PnL, win rate, or volume. Find smart money on any chain.",inputSchema:{$ref:"#/definitions/wallet_discover_input",definitions:{wallet_discover_input:{type:"object",properties:{chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"},ranking:{type:["string","null"],description:"What to rank wallets by \u2014 'pnl', 'winRate', or 'volume'. Defaults to 'pnl'."},limit:{type:["number","null"],description:"Maximum number of results to return (optional, defaults to 10)"}},required:["chain","ranking","limit"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/wallet_discover_output",definitions:{wallet_discover_output:{type:"object",properties:{wallets:{type:"array"}},required:["wallets"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"wallet_pnl_retrieve",description:"Retrieve a wallet's trading performance \u2014 PnL, win rate, volume, and portfolio value over time.",inputSchema:{$ref:"#/definitions/wallet_pnl_retrieve_input",definitions:{wallet_pnl_retrieve_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address to profile"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"}},required:["wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/wallet_pnl_retrieve_output",definitions:{wallet_pnl_retrieve_output:{type:"object",properties:{wallet:{type:"string"},chain:{type:"string"},stats:{anyOf:[{},{type:"null"}]},chart:{anyOf:[{type:"array",items:{type:"object",properties:{timestamp:{type:"number"},value:{type:"number"}},required:["timestamp","value"],additionalProperties:!1}},{type:"null"}]}},required:["wallet","chain","chart"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}}];var Di="https://www.moonpay.com/legal/terms_of_use_europe_hypermint",qi="https://www.moonpay.com/legal/privacy_policy",Ui="https://swaps.xyz/terms",Xe=` Terms of Use: ${Di}
2
+ import{A as Ze,B as be,C as E,D as se,a as Ee,b as G,c as Ae,d as Be,e as ge,f as Oe,g as Le,h as Ne,i as _,j as Me,k as He,l as Y,m as I,q as ze,r as Ve,s as Fe,t as Ke,v as S,w as Ge,x as Ye,y as Je,z as Qe}from"./chunk-XKNJFLK3.js";import{f as k,g as f,i as We,j as x,k as De,m as fe}from"./chunk-QOPJNTHY.js";I();Ae();async function Ti(e,t,i){let r=await Y(),o=G();r&&(o.Authorization=`Bearer ${r}`);let n=await fetch(`${e}/api/tools/${encodeURIComponent(t)}`,{method:"POST",signal:AbortSignal.timeout(6e4),headers:o,body:JSON.stringify(i)});if(n.status===401&&r){let d=Oe();if(d?.refreshToken)try{let m=await He(d);n=await fetch(`${e}/api/tools/${encodeURIComponent(t)}`,{method:"POST",signal:AbortSignal.timeout(6e4),headers:{...G(),Authorization:`Bearer ${m.accessToken}`},body:JSON.stringify(i)})}catch{}}if(n.status===401)throw new Error("This command requires a MoonPay CLI account. Run `moonpay login` first.");let a=await n.text();if(!a){if(n.status===429){let d=r?" Run `mp upgrade` to increase your rate limit.":" Log in with `mp login` for higher limits.";throw new Error(`Rate limit exceeded.${d}`)}throw new Error(`Empty response from server (${n.status})`)}let c;try{c=JSON.parse(a)}catch{throw new Error(`Unexpected response from server (${n.status})`)}if(n.status<200||n.status>=300){let d=c;throw new Error(d?.error??`Tool call failed (${n.status})`)}return c}async function y(e,t,i){return await Ti(e,t,i)}var Or=[{name:"buy",description:"Buy crypto with fiat via MoonPay. Returns a checkout URL to complete the purchase.",inputSchema:{$ref:"#/definitions/buy_input",definitions:{buy_input:{type:"object",properties:{token:{type:"string",enum:["btc","pol_polygon","sol","trx","usdc","usdc_arbitrum","usdc_base","usdc_optimism","usdc_sol","usdc_polygon","usdt_trx","eth","eth_polygon","eth_optimism","eth_base","eth_arbitrum"],description:"MoonPay currency code: sol (Solana), usdc_sol (USDC on Solana), eth (Ethereum), usdc (USDC on Ethereum), usdc_base (USDC on Base), trx (TRX on Tron), usdt_trx (USDT on Tron), etc."},amount:{type:"number",description:"Amount in USD to spend. For example, 50 means $50 worth of the selected token."},wallet:{type:"string",description:"Destination wallet address to receive tokens (must match the chain for the selected token)"},email:{type:["string","null"],description:"Buyer email to pre-fill on the checkout page"}},required:["token","amount","wallet","email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/buy_output",definitions:{buy_output:{type:"object",properties:{url:{type:"string",description:"MoonPay checkout URL \u2014 open in browser to complete purchase"}},required:["url"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_add",description:"Add an item to a shopping cart. Creates a new cart if no cartId is provided. Run multiple times to add more items.",inputSchema:{$ref:"#/definitions/commerce_cart_add_input",definitions:{commerce_cart_add_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. ryder.id, bodykits.ae)"},cartId:{type:["string","null"],description:"Existing cart ID \u2014 omit to create a new cart"},variantId:{type:"string",description:"Product variant ID to add"},quantity:{type:"number",description:"Quantity to add"}},required:["store","cartId","variantId","quantity"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_add_output",definitions:{commerce_cart_add_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_remove",description:"Remove an item from a shopping cart by its line ID.",inputSchema:{$ref:"#/definitions/commerce_cart_remove_input",definitions:{commerce_cart_remove_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. ryder.id, bodykits.ae)"},cartId:{type:"string",description:"Cart ID"},lineId:{type:"string",description:"Cart line ID to remove"}},required:["store","cartId","lineId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_remove_output",definitions:{commerce_cart_remove_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_retrieve",description:"Get the contents of a shopping cart including items, totals, and checkout URL.",inputSchema:{$ref:"#/definitions/commerce_cart_retrieve_input",definitions:{commerce_cart_retrieve_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},cartId:{type:"string",description:"Cart ID"}},required:["store","cartId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_retrieve_output",definitions:{commerce_cart_retrieve_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_cart_update",description:"Create or update a shopping cart on a Shopify store. Omit cartId to create a new cart. Supports adding items, updating quantities, removing items, and applying discount codes.",inputSchema:{$ref:"#/definitions/commerce_cart_update_input",definitions:{commerce_cart_update_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},cartId:{type:["string","null"],description:"Existing cart ID \u2014 omit or null to create a new cart"},addItems:{anyOf:[{type:"array",items:{type:"object",properties:{variantId:{type:"string",description:"Product variant ID"},quantity:{type:"number",description:"Quantity to add"}},required:["variantId","quantity"],additionalProperties:!1}},{type:"null"}],description:"Items to add to the cart"},updateItems:{anyOf:[{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID"},quantity:{type:"number",description:"New quantity (0 to remove)"}},required:["lineId","quantity"],additionalProperties:!1}},{type:"null"}],description:"Existing cart items to update"},removeLineIds:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}],description:"Cart line IDs to remove"},discountCodes:{anyOf:[{type:"array",items:{type:"string"}},{type:"null"}],description:"Discount codes to apply"},note:{type:["string","null"],description:"Order note or special instructions"}},required:["store","cartId","addItems","updateItems","removeLineIds","discountCodes","note"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_cart_update_output",definitions:{commerce_cart_update_output:{type:"object",properties:{id:{type:"string",description:"Cart ID \u2014 pass to other cart/checkout tools"},items:{type:"array",items:{type:"object",properties:{lineId:{type:"string",description:"Cart line ID \u2014 use for updates/removal"},variantId:{type:"string",description:"Product variant ID"},productId:{type:"string",description:"Product ID"},title:{type:"string",description:"Product title"},variantTitle:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},quantity:{type:"number",description:"Quantity in cart"},totalAmount:{type:"string",description:"Line total (price \xD7 quantity)"},currency:{type:"string",description:"Currency code (e.g. USD)"}},required:["lineId","variantId","productId","title","variantTitle","quantity","totalAmount","currency"],additionalProperties:!1},description:"Items in cart"},totalAmount:{type:"string",description:"Cart total"},currency:{type:"string",description:"Currency code (e.g. USD)"},totalQuantity:{type:"number",description:"Total item count"},checkoutUrl:{type:"string",description:"Shopify checkout URL"}},required:["id","items","totalAmount","currency","totalQuantity","checkoutUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_checkout_pay",description:"Pay for a checkout by submitting the signed transaction. Pass all fields from checkout_start plus the signed transaction.",inputSchema:{$ref:"#/definitions/commerce_checkout_pay_input",definitions:{commerce_checkout_pay_input:{type:"object",properties:{signedTransaction:{type:"string",description:"The signed transaction"},transactionToken:{type:"string",description:"Transaction token from checkout_start"},rateToken:{type:"string",description:"Rate token from checkout_start"},paylinkId:{type:"string",description:"Payment request ID from checkout_start"},requestAmount:{type:"string",description:"Amount from checkout_start"},currency:{type:"string",description:"Currency from checkout_start"},chain:{type:"string",description:"Chain from checkout_start"},sender:{type:"string",description:"Sender wallet from checkout_start"},recipient:{type:"string",description:"Recipient wallet from checkout_start"},addressLookupTableAccounts:{type:"array",items:{type:"string"},description:"Lookup table accounts from checkout_start"}},required:["signedTransaction","transactionToken","rateToken","paylinkId","requestAmount","currency","chain","sender","recipient","addressLookupTableAccounts"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_checkout_pay_output",definitions:{commerce_checkout_pay_output:{type:"object",properties:{transactionSignature:{type:"string",description:"On-chain transaction signature"},status:{type:"string",description:"Payment status"},redirectUrl:{type:"string",description:"Shopify order confirmation URL"},message:{type:"string",description:"Confirmation message"}},required:["transactionSignature","status","redirectUrl","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_checkout_start",description:"Start checkout for a shopping cart. Takes a cart ID, buyer wallet, chain, and shipping details. Returns an unsigned transaction to sign and metadata to pass to checkout_pay.",inputSchema:{$ref:"#/definitions/commerce_checkout_start_input",definitions:{commerce_checkout_start_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},cartId:{type:"string",description:"Cart ID from cart_update"},wallet:{type:"string",description:"Buyer wallet address (public key)"},chain:{type:"string",description:"Payment chain (solana, ethereum, polygon, base)"},email:{type:"string",description:"Buyer email address"},firstName:{type:"string",description:"Buyer first name"},lastName:{type:"string",description:"Buyer last name"},address:{type:"string",description:"Street address"},city:{type:"string",description:"City"},postalCode:{type:"string",description:"Postal / ZIP code"},country:{type:"string",description:"Country name (e.g. 'United States', 'Netherlands')"}},required:["store","cartId","wallet","chain","email","firstName","lastName","address","city","postalCode","country"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_checkout_start_output",definitions:{commerce_checkout_start_output:{type:"object",properties:{serializedTransaction:{type:"string",description:"Unsigned transaction to sign"},transactionToken:{type:"string",description:"Pass to checkout_pay after signing"},rateToken:{type:"string",description:"Rate lock token \u2014 pass to checkout_pay"},paylinkId:{type:"string",description:"Payment request ID \u2014 pass to checkout_pay"},requestAmount:{type:"string",description:"Amount in minimal units \u2014 pass to checkout_pay"},currency:{type:"string",description:"Payment currency symbol (e.g. USDC)"},chain:{type:"string",description:"Payment chain"},sender:{type:"string",description:"Sender wallet \u2014 pass to checkout_pay"},recipient:{type:"string",description:"Recipient wallet \u2014 pass to checkout_pay"},addressLookupTableAccounts:{type:"array",items:{type:"string"},description:"Lookup table accounts \u2014 pass to checkout_pay"},message:{type:"string",description:"Human-readable description of the payment"}},required:["serializedTransaction","transactionToken","rateToken","paylinkId","requestAmount","currency","chain","sender","recipient","addressLookupTableAccounts","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_product_retrieve",description:"Get full details of a product including all variants, options, and availability. Use after product search to get variant IDs for ordering.",inputSchema:{$ref:"#/definitions/commerce_product_retrieve_input",definitions:{commerce_product_retrieve_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},productId:{type:"string",description:"Shopify product ID (from product search)"}},required:["store","productId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_product_retrieve_output",definitions:{commerce_product_retrieve_output:{type:"object",properties:{productId:{type:"string",description:"Shopify product ID"},title:{type:"string",description:"Product title"},description:{type:"string",description:"Product description"},url:{type:"string",description:"Product page URL"},imageUrl:{type:["string","null"],description:"Product image URL"},priceMin:{type:"string",description:"Minimum price"},priceMax:{type:"string",description:"Maximum price"},currency:{type:"string",description:"Currency code (e.g. USD)"},productType:{type:["string","null"],description:"Product type/category"},tags:{type:"array",items:{type:"string"},description:"Product tags"},variants:{type:"array",items:{type:"object",properties:{variantId:{type:"string",description:"Variant ID \u2014 use this for ordering"},title:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},price:{type:"string",description:"Variant price"},currency:{type:"string",description:"Currency code (e.g. USD)"},imageUrl:{type:["string","null"],description:"Variant image URL"},available:{type:"boolean",description:"Whether variant is in stock"}},required:["variantId","title","price","currency","imageUrl","available"],additionalProperties:!1},description:"Product variants"}},required:["productId","title","description","url","imageUrl","priceMin","priceMax","currency","productType","tags","variants"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_product_search",description:"Search products on a Shopify store. Returns products with prices, images, and variants. Works on any Shopify store.",inputSchema:{$ref:"#/definitions/commerce_product_search_input",definitions:{commerce_product_search_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},query:{type:"string",description:"Search query"},limit:{type:["number","null"],description:"Max results (default 10)"},cursor:{type:["string","null"],description:"Pagination cursor from previous response (pass to get next page)"}},required:["store","query","limit","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_product_search_output",definitions:{commerce_product_search_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{productId:{type:"string",description:"Shopify product ID"},title:{type:"string",description:"Product title"},description:{type:"string",description:"Product description"},url:{type:"string",description:"Product page URL"},imageUrl:{type:["string","null"],description:"Product image URL"},priceMin:{type:"string",description:"Minimum price"},priceMax:{type:"string",description:"Maximum price"},currency:{type:"string",description:"Currency code (e.g. USD)"},productType:{type:["string","null"],description:"Product type/category"},tags:{type:"array",items:{type:"string"},description:"Product tags"},variants:{type:"array",items:{type:"object",properties:{variantId:{type:"string",description:"Variant ID \u2014 use this for ordering"},title:{type:"string",description:"Variant title (e.g. 'Small / Blue')"},price:{type:"string",description:"Variant price"},currency:{type:"string",description:"Currency code (e.g. USD)"},imageUrl:{type:["string","null"],description:"Variant image URL"},available:{type:"boolean",description:"Whether variant is in stock"}},required:["variantId","title","price","currency","imageUrl","available"],additionalProperties:!1},description:"Product variants"}},required:["productId","title","description","url","imageUrl","priceMin","priceMax","currency","productType","tags","variants"],additionalProperties:!1},description:"Matching products"},hasMore:{type:"boolean",description:"Whether more results exist"},cursor:{type:["string","null"],description:"Cursor for next page \u2014 pass as 'cursor' input to get more results"}},required:["items","hasMore","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_store_list",description:"List Shopify stores that accept Solana Pay via Helio. Use these store domains with product_search, cart_update, and checkout tools.",inputSchema:{$ref:"#/definitions/commerce_store_list_input",definitions:{commerce_store_list_input:{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_store_list_output",definitions:{commerce_store_list_output:{type:"object",properties:{stores:{type:"array",items:{type:"object",properties:{store:{type:"string",description:"Store domain (use as 'store' param in other commerce tools)"},name:{type:"string",description:"Store display name"},description:{type:"string",description:"What the store sells"},url:{type:"string",description:"Store URL"}},required:["store","name","description","url"],additionalProperties:!1}}},required:["stores"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"commerce_store_retrieve",description:"Get information about a Shopify store including policies, shipping info, and FAQs. Works on any Shopify store.",inputSchema:{$ref:"#/definitions/commerce_store_retrieve_input",definitions:{commerce_store_retrieve_input:{type:"object",properties:{store:{type:"string",description:"Shopify store URL (e.g. shop.hel.io or mystore.myshopify.com)"},query:{type:["string","null"],description:"Question about the store (e.g. 'shipping policy', 'returns', 'payment methods')"}},required:["store","query"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/commerce_store_retrieve_output",definitions:{commerce_store_retrieve_output:{type:"object",properties:{store:{type:"string",description:"Store URL"},items:{type:"array",items:{type:"object",properties:{question:{type:"string",description:"Policy question"},answer:{type:"string",description:"Policy answer"}},required:["question","answer"],additionalProperties:!1},description:"Policy Q&A pairs"}},required:["store","items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"deposit_create",description:"Create a new deposit link that generates multi-chain deposit addresses. Anyone can send crypto to these addresses from Solana, Ethereum, Bitcoin, or Tron \u2014 it automatically converts to the specified token and settles to the destination wallet and chain.",inputSchema:{$ref:"#/definitions/deposit_create_input",definitions:{deposit_create_input:{type:"object",properties:{name:{type:"string",description:"Human-readable label for this deposit link (e.g. 'Treasury Base USDC')"},wallet:{type:"string",description:"Destination wallet address where funds will be delivered"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","bnb"],description:"Blockchain of the destination wallet"},token:{type:"string",enum:["USDC","USDC.e","USDT","ETH","SOL","BTC","wETH","BNB","POL","ARB","USDe","USD1"],description:"Token to receive. Stablecoins: USDC (all chains), USDT (all chains), USDC.e (Polygon only), USDe (Ethereum/Arbitrum), USD1 (Ethereum/BSC/Solana). Native: ETH (Ethereum/Base/Arbitrum/BSC), SOL (Solana), BTC (Bitcoin), BNB (BSC), POL (Polygon), ARB (Arbitrum). wETH available on most EVM chains."}},required:["name","wallet","chain","token"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/deposit_create_output",definitions:{deposit_create_output:{type:"object",properties:{id:{type:"string",description:"Unique deposit ID \u2014 use with deposit_transaction_list to check incoming payments"},destinationWallet:{type:"string",description:"Wallet address that will receive the token"},destinationChain:{type:"string",description:"Chain where the token will be delivered"},customerToken:{type:"string",description:"Token to check deposit transactions \u2014 pass to deposit_transaction_list"},depositUrl:{type:"string",description:"Shareable URL \u2014 open in browser or share with senders to deposit funds"},wallets:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address to send funds to"},chain:{type:"string",description:"Chain this address is on (solana, ethereum, bitcoin, tron)"},qrCode:{type:"string",description:"URL to a QR code image for the deposit address"}},required:["address","chain","qrCode"],additionalProperties:!1},description:"Deposit addresses across all supported chains \u2014 send any token to any of these"},instructions:{type:"string",description:"Human-readable instructions explaining how to use the deposit"}},required:["id","destinationWallet","destinationChain","customerToken","depositUrl","wallets","instructions"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"deposit_retrieve",description:"Retrieve details of a deposit by ID. Returns the deposit name, status, destination wallet, and deposit addresses.",inputSchema:{$ref:"#/definitions/deposit_retrieve_input",definitions:{deposit_retrieve_input:{type:"object",properties:{id:{type:"string",description:"Deposit ID returned from deposit_create"}},required:["id"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/deposit_retrieve_output",definitions:{deposit_retrieve_output:{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string"},destinationWallet:{type:["string","null"]},depositUrl:{type:"string"}},required:["id","name","status","destinationWallet","depositUrl"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"deposit_transaction_list",description:"List transactions for a deposit. Pass the deposit id from deposit_create to check incoming payment status.",inputSchema:{$ref:"#/definitions/deposit_transaction_list_input",definitions:{deposit_transaction_list_input:{type:"object",properties:{id:{type:"string",description:"Deposit ID returned from deposit_create"}},required:["id"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/deposit_transaction_list_output",definitions:{deposit_transaction_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},amount:{type:"number"},token:{type:"string"},from:{type:"string"},status:{type:"string"},settledAmount:{type:["number","null"]},settledCurrency:{type:["string","null"]},timestamp:{type:"string"}},required:["id","amount","token","from","status","settledAmount","settledCurrency","timestamp"],additionalProperties:!1}}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"feedback_create",description:"Submit feedback, a bug report, or a feature request. Requires authentication.",inputSchema:{$ref:"#/definitions/feedback_create_input",definitions:{feedback_create_input:{type:"object",properties:{type:{type:"string",enum:["bug","feature","general"],description:"Type of feedback: bug, feature, or general"},message:{type:"string",minLength:1,maxLength:2e3,description:"Your feedback message"}},required:["type","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/feedback_create_output",definitions:{feedback_create_output:{type:"object",properties:{id:{type:"string",description:"Feedback ID"},message:{type:"string",description:"Confirmation message"}},required:["id","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"login",description:"Send a verification code to the provided email to sign in or create an account. Requires an hCaptcha token.",inputSchema:{$ref:"#/definitions/login_input",definitions:{login_input:{type:"object",properties:{email:{type:"string",format:"email",description:"The email of the user to login"},captchaToken:{type:"string",description:"hCaptcha response token"}},required:["email","captchaToken"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/login_output",definitions:{login_output:{type:"object",properties:{email:{type:"string",description:"The email the OTP was sent to"}},required:["email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_activity_list",description:"List all activity for a wallet on prediction markets. Includes trades, splits, merges, redemptions, and rewards.",inputSchema:{$ref:"#/definitions/prediction-market_activity_list_input",definitions:{"prediction-market_activity_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"},limit:{type:["number","null"],description:"Max results (default 100)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","wallet","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_activity_list_output",definitions:{"prediction-market_activity_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{type:{type:"string",description:"Activity type (TRADE, SPLIT, MERGE, REDEEM, etc.)"},asset:{type:["string","null"],default:null,description:"Token ID (CLOB token or mint address)"},conditionId:{type:["string","null"],default:null,description:"Condition ID"},size:{type:["number","null"],default:null,description:"Amount"},price:{type:["number","null"],default:null,description:"Price"},fee:{type:["number","null"],default:null,description:"Fee amount"},timestamp:{type:"number",description:"Activity timestamp (unix)"},title:{type:["string","null"],default:null,description:"Event title"},slug:{type:["string","null"],default:null,description:"Event slug"},outcome:{type:["string","null"],default:null,description:"Outcome name"},transactionHash:{type:["string","null"],default:null,description:"Transaction hash"}},required:["type","timestamp"],additionalProperties:!1},description:"Activity history"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_event_retrieve",description:"Get detailed information about a prediction market event including all associated markets, outcomes, and prices.",inputSchema:{$ref:"#/definitions/prediction-market_market_event_retrieve_input",definitions:{"prediction-market_market_event_retrieve_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},slug:{type:"string",description:"Event slug identifier"}},required:["provider","slug"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_event_retrieve_output",definitions:{"prediction-market_market_event_retrieve_output":{type:"object",properties:{id:{type:"string",description:"Event ID"},ticker:{type:"string",description:"Event ticker"},slug:{type:"string",description:"URL slug"},title:{type:"string",description:"Event title"},description:{type:["string","null"],default:null,description:"Event description"},subtitle:{type:["string","null"],default:null,description:"Event subtitle"},image:{type:["string","null"],default:null,description:"Event image URL"},icon:{type:["string","null"],default:null,description:"Event icon URL"},category:{type:["string","null"],default:null,description:"Primary category"},subcategory:{type:["string","null"],default:null,description:"Subcategory"},volume:{type:"number",default:0,description:"Total volume in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},openInterest:{type:["number","null"],default:null,description:"Open interest in USDC"},liquidity:{type:["number","null"],default:null,description:"Available liquidity"},startDate:{type:["string","null"],default:null,description:"Event start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Event end date (ISO)"},closedTime:{type:["string","null"],default:null,description:"Time event was closed (ISO)"},active:{type:"boolean",default:!0,description:"Whether event is active"},closed:{type:"boolean",default:!1,description:"Whether event has closed"},featured:{type:["boolean","null"],default:null,description:"Whether event is featured"},commentCount:{type:["number","null"],default:null,description:"Number of comments"},negRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},markets:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Market ID"},question:{type:"string",description:"Market question"},description:{type:["string","null"],default:null,description:"Market description"},conditionId:{type:["string","null"],default:null,description:"Condition ID for on-chain settlement"},slug:{type:"string",description:"URL slug"},image:{type:["string","null"],default:null,description:"Market image URL"},outcomes:{type:"array",items:{type:"string"},description:"Possible outcomes (e.g. ['Yes', 'No'])"},outcomePrices:{type:"array",items:{type:"number"},description:"Current price per outcome (0-1)"},outcomeTokens:{type:"array",items:{type:"object",properties:{outcome:{type:"string",description:"Outcome name (e.g. 'Yes', 'No')"},tokenId:{type:"string",description:"Token identifier \u2014 CLOB token ID (Polymarket/EVM) or mint address (Kalshi/Solana)"},price:{type:["number","null"],default:null,description:"Current price for this outcome (0-1)"}},required:["outcome","tokenId"],additionalProperties:!1},default:[],description:"Token IDs for each outcome \u2014 use these to trade"},volume:{type:"number",default:0,description:"Total volume traded in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},lastTradePrice:{type:["number","null"],default:null,description:"Last trade price"},bestBid:{type:["number","null"],default:null,description:"Best bid price"},bestAsk:{type:["number","null"],default:null,description:"Best ask price"},spread:{type:["number","null"],default:null,description:"Bid-ask spread"},oneDayPriceChange:{type:["number","null"],default:null,description:"24-hour price change"},oneHourPriceChange:{type:["number","null"],default:null,description:"1-hour price change"},oneWeekPriceChange:{type:["number","null"],default:null,description:"1-week price change"},startDate:{type:["string","null"],default:null,description:"Market start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Market end date (ISO)"},negRisk:{type:["boolean","null"],default:null,description:"Whether this uses negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},status:{type:["string","null"],default:null,description:"Market lifecycle status (e.g. initialized, active, inactive, closed, determined, finalized)"},isInitialized:{type:["boolean","null"],default:null,description:"Whether the market is tokenized onchain (Kalshi/Solana)"},acceptingOrders:{type:"boolean",default:!1,description:"Whether market is accepting orders"},enableOrderBook:{type:["boolean","null"],default:null,description:"Whether order book is enabled"},orderMinSize:{type:["number","null"],default:null,description:"Minimum order size"},liquidity:{type:["number","null"],default:null,description:"Available liquidity in USDC"},tickSize:{type:["string","null"],default:null,description:"Minimum price increment"}},required:["id","question","slug","outcomes","outcomePrices"],additionalProperties:!1},default:[],description:"Markets within this event"},tags:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},default:[],description:"Category tags"}},required:["id","ticker","slug","title"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_price_history_list",description:"Get historical price data for a prediction market outcome. Use to analyze price trends over time.",inputSchema:{$ref:"#/definitions/prediction-market_market_price_history_list_input",definitions:{"prediction-market_market_price_history_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},tokenId:{type:"string",description:"Outcome token ID (from outcomeTokens[].tokenId)"},interval:{type:"string",enum:["1hr","1d","1w","1m","max"],description:"Time interval: 1hr, 1d (day), 1w (week), 1m (month), or max (all time)"}},required:["provider","tokenId","interval"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_price_history_list_output",definitions:{"prediction-market_market_price_history_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{timestamp:{type:"number",description:"Unix timestamp"},price:{type:"number",description:"Price at this time (0-1)"}},required:["timestamp","price"],additionalProperties:!1},description:"Price history data points"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_price_retrieve",description:"Get the current price for a prediction market outcome token.",inputSchema:{$ref:"#/definitions/prediction-market_market_price_retrieve_input",definitions:{"prediction-market_market_price_retrieve_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},tokenId:{type:"string",description:"Outcome token ID (from outcomeTokens[].tokenId)"}},required:["provider","tokenId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_price_retrieve_output",definitions:{"prediction-market_market_price_retrieve_output":{type:"object",properties:{price:{type:["number","null"],description:"Current price (0-1), null if no orders"}},required:["price"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_search",description:"Search prediction markets by query string or tags. Returns events with their markets, prices, and volumes.",inputSchema:{$ref:"#/definitions/prediction-market_market_search_input",definitions:{"prediction-market_market_search_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},query:{type:"string",description:"Search query (use '*' for all markets)"},tagIds:{type:["string","null"],description:"Comma-separated tag IDs to filter by"},limit:{type:["number","null"],description:"Max results (default 10)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"},activeOnly:{type:["boolean","null"],description:"Only show active markets (default true)"}},required:["provider","query","tagIds","limit","page","activeOnly"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_search_output",definitions:{"prediction-market_market_search_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Event ID"},ticker:{type:"string",description:"Event ticker"},slug:{type:"string",description:"URL slug"},title:{type:"string",description:"Event title"},description:{type:["string","null"],default:null,description:"Event description"},subtitle:{type:["string","null"],default:null,description:"Event subtitle"},image:{type:["string","null"],default:null,description:"Event image URL"},icon:{type:["string","null"],default:null,description:"Event icon URL"},category:{type:["string","null"],default:null,description:"Primary category"},subcategory:{type:["string","null"],default:null,description:"Subcategory"},volume:{type:"number",default:0,description:"Total volume in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},openInterest:{type:["number","null"],default:null,description:"Open interest in USDC"},liquidity:{type:["number","null"],default:null,description:"Available liquidity"},startDate:{type:["string","null"],default:null,description:"Event start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Event end date (ISO)"},closedTime:{type:["string","null"],default:null,description:"Time event was closed (ISO)"},active:{type:"boolean",default:!0,description:"Whether event is active"},closed:{type:"boolean",default:!1,description:"Whether event has closed"},featured:{type:["boolean","null"],default:null,description:"Whether event is featured"},commentCount:{type:["number","null"],default:null,description:"Number of comments"},negRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},markets:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Market ID"},question:{type:"string",description:"Market question"},description:{type:["string","null"],default:null,description:"Market description"},conditionId:{type:["string","null"],default:null,description:"Condition ID for on-chain settlement"},slug:{type:"string",description:"URL slug"},image:{type:["string","null"],default:null,description:"Market image URL"},outcomes:{type:"array",items:{type:"string"},description:"Possible outcomes (e.g. ['Yes', 'No'])"},outcomePrices:{type:"array",items:{type:"number"},description:"Current price per outcome (0-1)"},outcomeTokens:{type:"array",items:{type:"object",properties:{outcome:{type:"string",description:"Outcome name (e.g. 'Yes', 'No')"},tokenId:{type:"string",description:"Token identifier \u2014 CLOB token ID (Polymarket/EVM) or mint address (Kalshi/Solana)"},price:{type:["number","null"],default:null,description:"Current price for this outcome (0-1)"}},required:["outcome","tokenId"],additionalProperties:!1},default:[],description:"Token IDs for each outcome \u2014 use these to trade"},volume:{type:"number",default:0,description:"Total volume traded in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},lastTradePrice:{type:["number","null"],default:null,description:"Last trade price"},bestBid:{type:["number","null"],default:null,description:"Best bid price"},bestAsk:{type:["number","null"],default:null,description:"Best ask price"},spread:{type:["number","null"],default:null,description:"Bid-ask spread"},oneDayPriceChange:{type:["number","null"],default:null,description:"24-hour price change"},oneHourPriceChange:{type:["number","null"],default:null,description:"1-hour price change"},oneWeekPriceChange:{type:["number","null"],default:null,description:"1-week price change"},startDate:{type:["string","null"],default:null,description:"Market start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Market end date (ISO)"},negRisk:{type:["boolean","null"],default:null,description:"Whether this uses negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},status:{type:["string","null"],default:null,description:"Market lifecycle status (e.g. initialized, active, inactive, closed, determined, finalized)"},isInitialized:{type:["boolean","null"],default:null,description:"Whether the market is tokenized onchain (Kalshi/Solana)"},acceptingOrders:{type:"boolean",default:!1,description:"Whether market is accepting orders"},enableOrderBook:{type:["boolean","null"],default:null,description:"Whether order book is enabled"},orderMinSize:{type:["number","null"],default:null,description:"Minimum order size"},liquidity:{type:["number","null"],default:null,description:"Available liquidity in USDC"},tickSize:{type:["string","null"],default:null,description:"Minimum price increment"}},required:["id","question","slug","outcomes","outcomePrices"],additionalProperties:!1},default:[],description:"Markets within this event"},tags:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},default:[],description:"Category tags"}},required:["id","ticker","slug","title"],additionalProperties:!1},description:"Matching events with markets"},hasMore:{type:"boolean",description:"Whether more results exist"}},required:["items","hasMore"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_tag_list",description:"List available prediction market categories and tags for filtering markets.",inputSchema:{$ref:"#/definitions/prediction-market_market_tag_list_input",definitions:{"prediction-market_market_tag_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},limit:{type:["number","null"],description:"Max results (default 50)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"},slug:{type:["string","null"],description:"Filter by tag slug (e.g. 'nfl')"}},required:["provider","limit","page","slug"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_tag_list_output",definitions:{"prediction-market_market_tag_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},description:"List of tags"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_market_trending_list",description:"Get trending prediction markets sorted by 24-hour volume. Minimum $150K 24h volume.",inputSchema:{$ref:"#/definitions/prediction-market_market_trending_list_input",definitions:{"prediction-market_market_trending_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},limit:{type:["number","null"],description:"Max results (default 20)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_market_trending_list_output",definitions:{"prediction-market_market_trending_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Event ID"},ticker:{type:"string",description:"Event ticker"},slug:{type:"string",description:"URL slug"},title:{type:"string",description:"Event title"},description:{type:["string","null"],default:null,description:"Event description"},subtitle:{type:["string","null"],default:null,description:"Event subtitle"},image:{type:["string","null"],default:null,description:"Event image URL"},icon:{type:["string","null"],default:null,description:"Event icon URL"},category:{type:["string","null"],default:null,description:"Primary category"},subcategory:{type:["string","null"],default:null,description:"Subcategory"},volume:{type:"number",default:0,description:"Total volume in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},openInterest:{type:["number","null"],default:null,description:"Open interest in USDC"},liquidity:{type:["number","null"],default:null,description:"Available liquidity"},startDate:{type:["string","null"],default:null,description:"Event start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Event end date (ISO)"},closedTime:{type:["string","null"],default:null,description:"Time event was closed (ISO)"},active:{type:"boolean",default:!0,description:"Whether event is active"},closed:{type:"boolean",default:!1,description:"Whether event has closed"},featured:{type:["boolean","null"],default:null,description:"Whether event is featured"},commentCount:{type:["number","null"],default:null,description:"Number of comments"},negRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},markets:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Market ID"},question:{type:"string",description:"Market question"},description:{type:["string","null"],default:null,description:"Market description"},conditionId:{type:["string","null"],default:null,description:"Condition ID for on-chain settlement"},slug:{type:"string",description:"URL slug"},image:{type:["string","null"],default:null,description:"Market image URL"},outcomes:{type:"array",items:{type:"string"},description:"Possible outcomes (e.g. ['Yes', 'No'])"},outcomePrices:{type:"array",items:{type:"number"},description:"Current price per outcome (0-1)"},outcomeTokens:{type:"array",items:{type:"object",properties:{outcome:{type:"string",description:"Outcome name (e.g. 'Yes', 'No')"},tokenId:{type:"string",description:"Token identifier \u2014 CLOB token ID (Polymarket/EVM) or mint address (Kalshi/Solana)"},price:{type:["number","null"],default:null,description:"Current price for this outcome (0-1)"}},required:["outcome","tokenId"],additionalProperties:!1},default:[],description:"Token IDs for each outcome \u2014 use these to trade"},volume:{type:"number",default:0,description:"Total volume traded in USDC"},volume24hr:{type:["number","null"],default:null,description:"24-hour volume in USDC"},volume1wk:{type:["number","null"],default:null,description:"1-week volume in USDC"},volume1mo:{type:["number","null"],default:null,description:"1-month volume in USDC"},volume1yr:{type:["number","null"],default:null,description:"1-year volume in USDC"},lastTradePrice:{type:["number","null"],default:null,description:"Last trade price"},bestBid:{type:["number","null"],default:null,description:"Best bid price"},bestAsk:{type:["number","null"],default:null,description:"Best ask price"},spread:{type:["number","null"],default:null,description:"Bid-ask spread"},oneDayPriceChange:{type:["number","null"],default:null,description:"24-hour price change"},oneHourPriceChange:{type:["number","null"],default:null,description:"1-hour price change"},oneWeekPriceChange:{type:["number","null"],default:null,description:"1-week price change"},startDate:{type:["string","null"],default:null,description:"Market start date (ISO)"},endDate:{type:["string","null"],default:null,description:"Market end date (ISO)"},negRisk:{type:["boolean","null"],default:null,description:"Whether this uses negative risk framework"},negRiskMarketID:{type:["string","null"],default:null,description:"Negative risk market ID"},status:{type:["string","null"],default:null,description:"Market lifecycle status (e.g. initialized, active, inactive, closed, determined, finalized)"},isInitialized:{type:["boolean","null"],default:null,description:"Whether the market is tokenized onchain (Kalshi/Solana)"},acceptingOrders:{type:"boolean",default:!1,description:"Whether market is accepting orders"},enableOrderBook:{type:["boolean","null"],default:null,description:"Whether order book is enabled"},orderMinSize:{type:["number","null"],default:null,description:"Minimum order size"},liquidity:{type:["number","null"],default:null,description:"Available liquidity in USDC"},tickSize:{type:["string","null"],default:null,description:"Minimum price increment"}},required:["id","question","slug","outcomes","outcomePrices"],additionalProperties:!1},default:[],description:"Markets within this event"},tags:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Tag ID"},label:{type:"string",description:"Human-readable tag label"},slug:{type:"string",description:"URL-safe tag slug"},category:{type:["string","null"],default:null,description:"Parent category"}},required:["id","label","slug"],additionalProperties:!1},default:[],description:"Category tags"}},required:["id","ticker","slug","title"],additionalProperties:!1},description:"Trending events"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_pnl_retrieve",description:"Get profit and loss summary for a wallet on prediction markets.",inputSchema:{$ref:"#/definitions/prediction-market_pnl_retrieve_input",definitions:{"prediction-market_pnl_retrieve_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"}},required:["provider","wallet"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_pnl_retrieve_output",definitions:{"prediction-market_pnl_retrieve_output":{type:"object",properties:{totalPnl:{type:"number",description:"Total profit/loss in USDC"},realizedPnl:{type:"number",description:"Realized PnL from closed positions"},unrealizedPnl:{type:"number",description:"Unrealized PnL from open positions"},totalInvested:{type:"number",description:"Total amount invested in USDC"},totalValue:{type:"number",description:"Current total value of all positions"}},required:["totalPnl","realizedPnl","unrealizedPnl","totalInvested","totalValue"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_position_buy",description:"Buy shares of a prediction market outcome. Places a limit order at the specified price.",inputSchema:{$ref:"#/definitions/prediction-market_position_buy_input",definitions:{"prediction-market_position_buy_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address placing the order"},tokenId:{type:"string",description:"Outcome token ID to buy (from outcomeTokens[].tokenId)"},price:{type:"number",description:"Price per share (0-1)"},size:{type:"number",description:"Number of shares to buy"}},required:["provider","wallet","tokenId","price","size"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_position_buy_output",definitions:{"prediction-market_position_buy_output":{type:"object",properties:{orderId:{type:["string","null"],description:"Order/transaction ID"},status:{type:"string",description:"Order status (pending_signature, executed, etc.)"},transactionHashes:{type:"array",items:{type:"string"},description:"On-chain transaction hashes"},transaction:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded Solana transaction"},lastValidBlockHeight:{type:"number"}},required:["type","base64","lastValidBlockHeight"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string"},data:{type:"string"},value:{type:"string"},chainId:{type:"number"}},required:["type","to","data","value","chainId"],additionalProperties:!1}]},{type:"null"}],description:"Transaction to sign (Kalshi=Solana, Polymarket=EVM)"}},required:["orderId","status","transactionHashes","transaction"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_position_list",description:"List prediction market positions for a wallet address. Shows current value, PnL, and outcome details.",inputSchema:{$ref:"#/definitions/prediction-market_position_list_input",definitions:{"prediction-market_position_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"},status:{anyOf:[{type:"string",enum:["open","closed"]},{type:"null"}],description:"Position status (default open)"},limit:{type:["number","null"],description:"Max results (default 100)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","wallet","status","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_position_list_output",definitions:{"prediction-market_position_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{asset:{type:"string",description:"Token ID (CLOB token or mint address)"},conditionId:{type:["string","null"],default:null,description:"Condition ID (Polymarket)"},size:{type:"number",description:"Position size in shares"},avgPrice:{type:"number",description:"Average entry price"},initialValue:{type:"number",description:"Initial position value in USDC"},currentValue:{type:"number",description:"Current position value in USDC"},cashPnl:{type:"number",description:"Cash profit/loss in USDC"},percentPnl:{type:"number",description:"Percentage profit/loss"},curPrice:{type:"number",description:"Current outcome price"},redeemable:{type:"boolean",description:"Whether position can be redeemed"},mergeable:{type:"boolean",description:"Whether position can be merged"},title:{type:"string",description:"Event title"},slug:{type:"string",description:"Event slug"},outcome:{type:"string",description:"Outcome name (e.g. 'Yes')"},outcomeIndex:{type:"number",description:"Outcome index (0 or 1)"},oppositeOutcome:{type:["string","null"],default:null,description:"Opposite outcome name"},oppositeAsset:{type:["string","null"],default:null,description:"Opposite outcome token ID"},endDate:{type:["string","null"],default:null,description:"Market end date"},negativeRisk:{type:["boolean","null"],default:null,description:"Negative risk framework"}},required:["asset","size","avgPrice","initialValue","currentValue","cashPnl","percentPnl","curPrice","redeemable","mergeable","title","slug","outcome","outcomeIndex"],additionalProperties:!1},description:"Positions"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_position_sell",description:"Sell shares of a prediction market outcome. Places a limit order at the specified price.",inputSchema:{$ref:"#/definitions/prediction-market_position_sell_input",definitions:{"prediction-market_position_sell_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address placing the order"},tokenId:{type:"string",description:"Outcome token ID to sell (from outcomeTokens[].tokenId)"},price:{type:"number",description:"Price per share (0-1)"},size:{type:"number",description:"Number of shares to sell"}},required:["provider","wallet","tokenId","price","size"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_position_sell_output",definitions:{"prediction-market_position_sell_output":{type:"object",properties:{orderId:{type:["string","null"],description:"Order ID (set for Polymarket, null for Kalshi until signed)"},status:{type:"string",description:"Order status (live, matched, delayed, unmatched, pending_signature)"},transactionHashes:{type:"array",items:{type:"string"},description:"On-chain transaction hashes"},transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded Solana transaction"},lastValidBlockHeight:{type:"number"}},required:["type","base64","lastValidBlockHeight"],additionalProperties:!1},{type:"null"}],description:"Solana transaction to sign (Kalshi only, null for Polymarket)"}},required:["orderId","status","transactionHashes","transaction"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_trade_list",description:"List trade history for a wallet address on prediction markets. Shows buys, sells, prices, and timestamps.",inputSchema:{$ref:"#/definitions/prediction-market_trade_list_input",definitions:{"prediction-market_trade_list_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address"},limit:{type:["number","null"],description:"Max results (default 100)"},page:{type:["number","null"],description:"Page number, starts at 1 (default 1)"}},required:["provider","wallet","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_trade_list_output",definitions:{"prediction-market_trade_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{side:{type:"string",description:"Trade side (BUY or SELL)"},asset:{type:"string",description:"Token ID (CLOB token or mint address)"},conditionId:{type:["string","null"],default:null,description:"Condition ID"},size:{type:"number",description:"Number of shares"},price:{type:"number",description:"Price per share"},fee:{type:["number","null"],default:null,description:"Trading fee"},timestamp:{type:"number",description:"Trade timestamp (unix)"},title:{type:["string","null"],default:null,description:"Event title"},slug:{type:["string","null"],default:null,description:"Event slug"},outcome:{type:"string",description:"Outcome name"},outcomeIndex:{type:"number",description:"Outcome index"},transactionHash:{type:["string","null"],default:null,description:"On-chain transaction hash"},orderId:{type:["string","null"],default:null,description:"Order ID"}},required:["side","asset","size","price","timestamp","outcome","outcomeIndex"],additionalProperties:!1},description:"Trade history"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"prediction-market_user_create",description:"Register a wallet with a prediction market provider. Required before placing orders.",inputSchema:{$ref:"#/definitions/prediction-market_user_create_input",definitions:{"prediction-market_user_create_input":{type:"object",properties:{provider:{type:"string",enum:["polymarket","kalshi"],description:"Prediction market provider"},wallet:{type:"string",description:"Wallet address to register"}},required:["provider","wallet"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/prediction-market_user_create_output",definitions:{"prediction-market_user_create_output":{type:"object",properties:{userId:{type:"string",description:"User ID (EVM address or Solana pubkey)"},proxyWallet:{type:["string","null"],default:null,description:"Provider proxy wallet address"}},required:["userId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"refresh",description:"Refresh an expired access token using a refresh token.",inputSchema:{$ref:"#/definitions/refresh_input",definitions:{refresh_input:{type:"object",properties:{refreshToken:{type:"string",description:"The refresh token from a previous login"}},required:["refreshToken"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/refresh_output",definitions:{refresh_output:{type:"object",properties:{accessToken:{type:"string"},refreshToken:{type:"string"},expiresAt:{type:"number"}},required:["accessToken","refreshToken","expiresAt"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"swaps_transaction_build",description:"Build a swap or bridge transaction. Returns an unsigned transaction with a human-readable message, amounts, exchange rate, and estimated time. Supports same-chain swaps and cross-chain bridges. Accepts UI amounts (e.g. 0.1 SOL) \u2014 decimal conversion is handled automatically.",inputSchema:{$ref:"#/definitions/swaps_transaction_build_input",definitions:{swaps_transaction_build_input:{type:"object",properties:{from:{type:"object",properties:{wallet:{type:"string",description:"Source wallet address (Solana pubkey or EVM 0x address)"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Source blockchain"},token:{type:"string",description:"Source token address (mint on Solana, contract on EVM). Use native token address for SOL/ETH."},amount:{type:["number","null"],description:"Amount to swap (exact-in). Null for exact-out."}},required:["wallet","chain","token","amount"],additionalProperties:!1,description:"Source: wallet, chain, token, amount"},to:{type:"object",properties:{wallet:{type:"string",description:"Destination wallet address. Same as source wallet for same-chain swaps."},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Destination blockchain"},token:{type:"string",description:"Destination token address (mint on Solana, contract on EVM)"},amount:{type:["number","null"],description:"Amount to receive (exact-out). Null for exact-in."}},required:["wallet","chain","token","amount"],additionalProperties:!1,description:"Destination: wallet, chain, token, amount"}},required:["from","to"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/swaps_transaction_build_output",definitions:{swaps_transaction_build_output:{type:"object",properties:{transactionId:{type:"string",description:"Transaction ID for tracking"},transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded transaction"}},required:["type","base64"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string",description:"Contract address"},data:{type:"string",description:"Calldata"},value:{type:"string",description:"Native token value in wei"},chainId:{type:"number",description:"EVM chain ID"}},required:["type","to","data","value","chainId"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"tron"},rawDataHex:{type:"string",description:"Hex-encoded raw transaction data for signing"},rawData:{description:"Protobuf JSON structure for broadcast"},txID:{type:"string",description:"Transaction ID (SHA-256 of raw_data_hex)"},visible:{type:"boolean"}},required:["type","rawDataHex"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ton"},boc:{type:"string",description:"Base64-encoded BOC (Bag of Cells) for signing and broadcast"}},required:["type","boc"],additionalProperties:!1}],description:"Unsigned transaction"},message:{type:"string",description:"Human-readable description (e.g. Swap 0.1 SOL \u2192 42.5 USDC on Solana)"},amountIn:{type:"object",properties:{amount:{type:"number",description:"Human-readable amount (e.g. 1.5)"},raw:{type:"string",description:"Raw amount in smallest unit (e.g. wei, lamports)"},symbol:{type:"string"},usd:{type:["number","null"]}},required:["amount","raw","symbol","usd"],additionalProperties:!1},amountOut:{type:"object",properties:{amount:{type:"number",description:"Human-readable amount (e.g. 1.5)"},raw:{type:"string",description:"Raw amount in smallest unit (e.g. wei, lamports)"},symbol:{type:"string"},usd:{type:["number","null"]}},required:["amount","raw","symbol","usd"],additionalProperties:!1},exchangeRate:{type:"number",description:"Exchange rate (amountOut / amountIn)"},estimatedTime:{type:["number","null"],description:"Estimated completion time in seconds"},requiresApproval:{type:"boolean",description:"Whether an ERC20 approval transaction is needed first"}},required:["transactionId","transaction","message","amountIn","amountOut","exchangeRate","estimatedTime","requiresApproval"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_balance_list",description:"List all token balances held in a wallet, including amount owned, current value in USD, and token details. Shows the complete token portfolio.",inputSchema:{$ref:"#/definitions/token_balance_list_input",definitions:{token_balance_list_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address to check token balances for"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to check balances on (e.g. 'solana', 'ethereum', 'base')"}},required:["wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_balance_list_output",definitions:{token_balance_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},balance:{type:"object",properties:{amount:{type:"number",description:"Number of tokens owned"},value:{type:"number",description:"Total value of the token in USD"},price:{type:"number",description:"Current price of the token"}},required:["amount","value","price"],additionalProperties:!1}},required:["address","name","symbol","chain","decimals","balance"],additionalProperties:!1},description:"Array of all tokens in the wallet with their balances and current values"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_check",description:"Check a token for safety risks \u2014 holder concentration, liquidity, and community warnings. Returns a risk summary.",inputSchema:{$ref:"#/definitions/token_check_input",definitions:{token_check_input:{type:"object",properties:{token:{type:"string",description:"Token contract address"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"}},required:["token","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_check_output",definitions:{token_check_output:{type:"object",properties:{token:{type:"object",properties:{address:{type:"string"},name:{type:["string","null"]},symbol:{type:["string","null"]},chain:{type:"string"}},required:["address","name","symbol","chain"],additionalProperties:!1},holderConcentration:{type:"object",properties:{top10Percent:{type:["number","null"]}},required:["top10Percent"],additionalProperties:!1},liquidity:{type:"object",properties:{total:{type:["number","null"]},locked:{type:["number","null"]}},required:["total","locked"],additionalProperties:!1},communityNotes:{type:"array",items:{type:"string"}},risks:{type:"array",items:{type:"string"}}},required:["token","holderConcentration","liquidity","communityNotes","risks"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_holder_list",description:"Find wallets holding a specific token, ranked by profitability. Useful for finding smart money on a token.",inputSchema:{$ref:"#/definitions/token_holder_list_input",definitions:{token_holder_list_input:{type:"object",properties:{token:{type:"string",description:"Token contract address"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"},limit:{type:["number","null"],description:"Maximum number of results to return (optional, defaults to 10)"}},required:["token","chain","limit"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_holder_list_output",definitions:{token_holder_list_output:{type:"object",properties:{wallets:{type:"array"}},required:["wallets"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_retrieve",description:"Get detailed token information including market data, price changes, volume, trades, and holder statistics by token address",inputSchema:{$ref:"#/definitions/token_retrieve_input",definitions:{token_retrieve_input:{type:"object",properties:{token:{type:"string",description:"Address of the token to retrieve"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain network where the token exists"}},required:["token","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_retrieve_output",definitions:{token_retrieve_output:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},marketData:{type:"object",properties:{liquidity:{type:["number","null"],description:"Total liquidity"},marketCap:{type:["number","null"],description:"Market capitalization"},fdv:{type:["number","null"],description:"Fully diluted valuation"},price:{type:["number","null"],description:"Current price"},priceChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in price across time intervals"},volume:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Trading volume in USD across time intervals"},volumeChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in trading volume across time intervals"},trades:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of trades across time intervals"},tradesChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of trades across time intervals"},buys:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of buys across time intervals"},buysChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of buys across time intervals"},sells:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of sells across time intervals"},sellsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of sells across time intervals"},uniqueWallets:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of unique wallets trading across time intervals"},uniqueWalletsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of unique wallets trading across time intervals"}},additionalProperties:!1}},required:["address","name","symbol","chain","decimals"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_search",description:"Search for tokens by name, symbol, or address. Returns matching tokens with their market data including price, volume, and liquidity.",inputSchema:{$ref:"#/definitions/token_search_input",definitions:{token_search_input:{type:"object",properties:{query:{type:"string",description:"Search term - can be token name (e.g. 'Bitcoin'), symbol (e.g. 'BTC'), or partial match"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to search on (e.g. 'solana', 'ethereum', 'base')"},limit:{type:["number","null"],description:"Maximum number of results to return (optional, defaults to 5)"}},required:["query","chain","limit"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_search_output",definitions:{token_search_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},marketData:{type:"object",properties:{liquidity:{type:["number","null"],description:"Total liquidity"},marketCap:{type:["number","null"],description:"Market capitalization"},fdv:{type:["number","null"],description:"Fully diluted valuation"},price:{type:["number","null"],description:"Current price"},priceChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in price across time intervals"},volume:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Trading volume in USD across time intervals"},volumeChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in trading volume across time intervals"},trades:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of trades across time intervals"},tradesChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of trades across time intervals"},buys:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of buys across time intervals"},buysChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of buys across time intervals"},sells:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of sells across time intervals"},sellsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of sells across time intervals"},uniqueWallets:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of unique wallets trading across time intervals"},uniqueWalletsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of unique wallets trading across time intervals"}},additionalProperties:!1}},required:["address","name","symbol","chain","decimals"],additionalProperties:!1},description:"Array of tokens matching the search query with their market data"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_transfer",description:"Build an unsigned transfer transaction. Returns a transaction ready for signing. Handles both native and token transfers.",inputSchema:{$ref:"#/definitions/token_transfer_input",definitions:{token_transfer_input:{type:"object",properties:{wallet:{type:"string",description:"Sender wallet address (Solana pubkey or EVM 0x address)"},token:{type:"string",description:"Token address (mint on Solana, contract on EVM). Use native token address for SOL/ETH."},to:{type:"string",description:"Recipient wallet address or name"},amount:{type:"number",description:"Amount to transfer in human-readable units (e.g. 1.5)"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to execute the transfer on"}},required:["wallet","token","to","amount","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_transfer_output",definitions:{token_transfer_output:{type:"object",properties:{transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded transaction"}},required:["type","base64"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string",description:"Recipient or contract address"},data:{type:"string",description:"Calldata (0x for native transfers)"},value:{type:"string",description:"Native token value in wei"},chainId:{type:"number",description:"EVM chain ID"}},required:["type","to","data","value","chainId"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"tron"},rawDataHex:{type:"string",description:"Hex-encoded raw transaction data for signing"},rawData:{description:"Protobuf JSON structure for broadcast"},txID:{type:"string",description:"Transaction ID (SHA-256 of raw_data_hex)"},visible:{type:"boolean"}},required:["type","rawDataHex"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ton"},boc:{type:"string",description:"Base64-encoded BOC (Bag of Cells) for signing and broadcast"}},required:["type","boc"],additionalProperties:!1}]},message:{type:"string",description:"Human-readable description of the transfer"},requiresApproval:{type:"boolean",description:"Whether a token approval transaction is needed first"},transactionId:{type:["string","null"],description:"Transaction ID for tracking with swaps.xyz (null for Solana transfers)"}},required:["transaction","message","requiresApproval","transactionId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"token_trending_list",description:"Get currently trending tokens on a blockchain. Perfect for discovering what's hot right now.",inputSchema:{$ref:"#/definitions/token_trending_list_input",definitions:{token_trending_list_input:{type:"object",properties:{chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to get trending tokens from (e.g. 'solana', 'ethereum', 'base')"},limit:{type:"integer",minimum:1,description:"Number of results per page"},page:{type:"integer",minimum:1,description:"Page number (starts at 1)"}},required:["chain","limit","page"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/token_trending_list_output",definitions:{token_trending_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{address:{type:"string",description:"Address of the token"},name:{type:"string",description:"Name of the token"},symbol:{type:"string",description:"Symbol of the token"},image:{type:["string","null"],description:"Image of the token"},description:{type:["string","null"],description:"Description of the token"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain of the token"},decimals:{type:"number",description:"Number of decimals of the token"},externalLinks:{anyOf:[{type:"object",properties:{website:{type:["string","null"],description:"Official website URL"},twitter:{type:["string","null"],description:"Twitter/X profile URL"},telegram:{type:["string","null"],description:"Telegram group URL"},discord:{type:["string","null"],description:"Discord server URL"},github:{type:["string","null"],description:"GitHub repository URL"},coingeckoId:{type:["string","null"],description:"CoinGecko token ID"}},additionalProperties:!1},{type:"null"}],description:"External links and social media"},marketData:{type:"object",properties:{liquidity:{type:["number","null"],description:"Total liquidity"},marketCap:{type:["number","null"],description:"Market capitalization"},fdv:{type:["number","null"],description:"Fully diluted valuation"},price:{type:["number","null"],description:"Current price"},priceChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in price across time intervals"},volume:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Trading volume in USD across time intervals"},volumeChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in trading volume across time intervals"},trades:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of trades across time intervals"},tradesChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of trades across time intervals"},buys:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of buys across time intervals"},buysChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of buys across time intervals"},sells:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of sells across time intervals"},sellsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of sells across time intervals"},uniqueWallets:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Number of unique wallets trading across time intervals"},uniqueWalletsChangePercent:{type:"object",properties:{"1m":{type:["number","null"],description:"1-minute data"},"5m":{type:["number","null"],description:"5-minute data"},"30m":{type:["number","null"],description:"30-minute data"},"1h":{type:["number","null"],description:"1-hour data"},"2h":{type:["number","null"],description:"2-hour data"},"4h":{type:["number","null"],description:"4-hour data"},"6h":{type:["number","null"],description:"6-hour data"},"8h":{type:["number","null"],description:"8-hour data"},"12h":{type:["number","null"],description:"12-hour data"},"24h":{type:["number","null"],description:"24-hour data"}},additionalProperties:!1,description:"Percentage change in number of unique wallets trading across time intervals"}},additionalProperties:!1}},required:["address","name","symbol","chain","decimals"],additionalProperties:!1},description:"Array of trending tokens with their market data"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_list",description:"List swap and bridge transaction history for a wallet.",inputSchema:{$ref:"#/definitions/transaction_list_input",definitions:{transaction_list_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address that signed and sent the transactions"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain the wallet is on"}},required:["wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_list_output",definitions:{transaction_list_output:{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{transactionId:{type:"string",description:"Transaction tracking ID"},status:{type:"string",description:"Current status: pending, success, or failed"},type:{type:"string",enum:["swap","bridge"],description:"Transaction type"},from:{type:"object",properties:{chain:{type:"string",description:"Source blockchain"},token:{type:"string",description:"Source token symbol"},amount:{type:["number","null"],description:"Amount sent"},txHash:{type:"string",description:"Source chain transaction hash"}},required:["chain","token","amount","txHash"],additionalProperties:!1},to:{type:"object",properties:{chain:{type:"string",description:"Destination blockchain"},token:{type:"string",description:"Destination token symbol"},amount:{type:["number","null"],description:"Amount received"},txHash:{type:["string","null"],description:"Destination chain transaction hash"}},required:["chain","token","amount","txHash"],additionalProperties:!1},usd:{type:["number","null"],description:"USD value of the transaction"},bridgeTime:{type:["number","null"],description:"Bridge completion time in seconds"}},required:["transactionId","status","type","from","to","usd","bridgeTime"],additionalProperties:!1},description:"List of swap/bridge transactions"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_register",description:"Register a broadcast transaction for tracking. Call after transaction_send to enable status tracking via transaction_retrieve.",inputSchema:{$ref:"#/definitions/transaction_register_input",definitions:{transaction_register_input:{type:"object",properties:{transactionId:{type:"string",description:"Transaction ID from the swap build step"},transactionHash:{type:"string",description:"Transaction hash/signature after broadcasting"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain where the transaction was broadcast"}},required:["transactionId","transactionHash","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_register_output",definitions:{transaction_register_output:{type:"object",properties:{success:{type:"boolean",description:"Whether the operation was successful"}},required:["success"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_retrieve",description:"Get the status and details of a transaction by its ID.",inputSchema:{$ref:"#/definitions/transaction_retrieve_input",definitions:{transaction_retrieve_input:{type:"object",properties:{transactionId:{type:"string",description:"Transaction ID from swap build or transaction register"}},required:["transactionId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_retrieve_output",definitions:{transaction_retrieve_output:{type:"object",properties:{transactionId:{type:"string",description:"Transaction tracking ID"},status:{type:"string",description:"Current status: pending, success, or failed"},type:{type:"string",enum:["swap","bridge"],description:"Transaction type"},from:{type:"object",properties:{chain:{type:"string",description:"Source blockchain"},token:{type:"string",description:"Source token symbol"},amount:{type:["number","null"],description:"Amount sent"},txHash:{type:"string",description:"Source chain transaction hash"}},required:["chain","token","amount","txHash"],additionalProperties:!1},to:{type:"object",properties:{chain:{type:"string",description:"Destination blockchain"},token:{type:"string",description:"Destination token symbol"},amount:{type:["number","null"],description:"Amount received"},txHash:{type:["string","null"],description:"Destination chain transaction hash. Null while bridge is in progress."}},required:["chain","token","amount","txHash"],additionalProperties:!1},usd:{type:["number","null"],description:"USD value of the transaction"},bridgeTime:{type:["number","null"],description:"Bridge completion time in seconds. Null for same-chain swaps."}},required:["transactionId","status","type","from","to","usd","bridgeTime"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"transaction_send",description:"Broadcast a signed transaction to the network. Supports Solana, EVM chains, Bitcoin, and Tron.",inputSchema:{$ref:"#/definitions/transaction_send_input",definitions:{transaction_send_input:{type:"object",properties:{transaction:{type:"string",description:"Signed transaction: base64-encoded for Solana, hex-encoded (0x...) for EVM, raw hex for Bitcoin, JSON {raw_data_hex, signature} for Tron"},message:{type:"string",description:"Human-readable message describing the transaction"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to broadcast on"}},required:["transaction","message","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/transaction_send_output",definitions:{transaction_send_output:{type:"object",properties:{signature:{type:"string",description:"Transaction signature/hash. Absent if broadcast failed."},message:{type:"string",description:"Result message or error description"}},required:["message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"user_retrieve",description:"Get the currently authenticated user",inputSchema:{$ref:"#/definitions/user_retrieve_input",definitions:{user_retrieve_input:{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/user_retrieve_output",definitions:{user_retrieve_output:{type:"object",properties:{id:{type:"string",description:"User ID"},email:{type:["string","null"],description:"User email address"}},required:["id","email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"verify",description:"Verify a login code for the user.",inputSchema:{$ref:"#/definitions/verify_input",definitions:{verify_input:{type:"object",properties:{code:{type:"string",pattern:"^\\d{6}$",description:"The code to verify"},email:{type:"string",format:"email",description:"The email the OTP was sent to"}},required:["code","email"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/verify_output",definitions:{verify_output:{type:"object",properties:{accessToken:{type:"string"},refreshToken:{type:"string"},expiresAt:{type:"number"}},required:["accessToken","refreshToken","expiresAt"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_agreement_accept",description:"Accept a required legal agreement. Pass the content ID from virtual-account_agreement_list to mark the agreement as accepted.",inputSchema:{$ref:"#/definitions/virtual-account_agreement_accept_input",definitions:{"virtual-account_agreement_accept_input":{type:"object",properties:{contentId:{type:"string",description:"Content ID from virtual-account_agreement_list"}},required:["contentId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_agreement_accept_output",definitions:{"virtual-account_agreement_accept_output":{type:"object",properties:{id:{type:"string",description:"Signing record ID"},contentId:{type:["string","null"],description:"Content ID of the accepted agreement"},documentId:{type:["string","null"],description:"Document ID"}},required:["id","contentId","documentId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_agreement_list",description:"List legal agreements. By default shows pending agreements that must be accepted to activate the account. Use status=accepted to see previously accepted agreements.",inputSchema:{$ref:"#/definitions/virtual-account_agreement_list_input",definitions:{"virtual-account_agreement_list_input":{type:"object",properties:{status:{anyOf:[{type:"string",enum:["pending","accepted"]},{type:"null"}],description:"Filter: pending (need to accept, default) or accepted (already signed)"},country:{type:["string","null"],description:"Country code for terms (e.g. USA, GBR). Defaults to USA."}},required:["status","country"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_agreement_list_output",definitions:{"virtual-account_agreement_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Content ID \u2014 pass to virtual-account_agreement_accept to accept"},name:{type:"string",description:"Document name (e.g. 'USA Terms and Conditions')"},url:{type:"string",description:"URL to view the document"}},required:["id","name","url"],additionalProperties:!1},description:"List of agreements"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_delete",description:"Delete a bank account",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_delete_input",definitions:{"virtual-account_bank-account_delete_input":{type:"object",properties:{bankAccountId:{type:"string",format:"uuid",description:"The ID of the bank account to delete"}},required:["bankAccountId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_delete_output",definitions:{"virtual-account_bank-account_delete_output":{type:"object",properties:{success:{type:"boolean",description:"Whether the operation was successful"}},required:["success"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_list",description:"List registered bank accounts",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_list_input",definitions:{"virtual-account_bank-account_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_list_output",definitions:{"virtual-account_bank-account_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},bank_account_identifier:{anyOf:[{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"}},required:["type","iban"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ACH"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Wire"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1}]},bank_name:{type:"string"},country:{type:"string"},created_at:{type:"string",format:"date-time"},currency:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"},customer_id:{type:"string"},is_third_party:{type:"boolean"},label:{type:["string","null"]},ownership_verified:{type:"boolean"},status:{type:"string",enum:["AuthorizationRequired","AuthorizationFailed","RegistrationPending","RegistrationFailed","Registered"]},updated_at:{type:"string",format:"date-time"}},required:["id","bank_account_identifier","bank_name","country","created_at","currency","customer_id","is_third_party","label","ownership_verified","status","updated_at"],additionalProperties:!1}}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_register",description:"Register a bank account for offramp payouts. USD accounts use ACH/Wire with account+routing numbers. EUR accounts use SEPA with IBAN.",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_register_input",definitions:{"virtual-account_bank-account_register_input":{type:"object",properties:{currency:{type:"string",enum:["USD","EUR"],description:"Currency of the bank account (USD or EUR)"},type:{type:"string",enum:["ACH","Wire","SEPA"],description:"Account type: ACH or Wire for USD, SEPA for EUR"},accountNumber:{type:["string","null"],description:"Account number (required for USD ACH/Wire)"},routingNumber:{type:["string","null"],description:"Routing number (required for USD ACH/Wire)"},iban:{type:["string","null"],description:"IBAN (required for EUR SEPA)"},address:{type:"object",properties:{street:{type:"string",description:"Street address"},city:{type:"string",description:"City"},state:{type:"string",description:"State or province"},country:{type:"string",enum:["US","GB","CA","AU","DE","FR","IT","ES","NL","BE","AT","CH","SE","NO","DK","FI","IE","PT","PL","CZ","GR","JP","KR","CN","IN","BR","MX","AR","ZA","NZ","SG","HK","AE"],description:"ISO 3166-1 Alpha-2 country code"},postalCode:{type:"string",description:"Postal or ZIP code"}},required:["street","city","state","country","postalCode"],additionalProperties:!1,description:"Address of the account holder"},email:{type:"string",description:"Email address of the account holder"},phoneNumber:{type:"string",description:"Phone number of the account holder"},providerCountry:{type:"string",enum:["US","GB","CA","AU","DE","FR","IT","ES","NL","BE","AT","CH","SE","NO","DK","FI","IE","PT","PL","CZ","GR","JP","KR","CN","IN","BR","MX","AR","ZA","NZ","SG","HK","AE"],description:"ISO 3166-1 Alpha-2 country code where the bank is located"},providerName:{type:"string",description:"Name of the bank"},givenName:{type:"string",description:"First/given name of the account holder"},familyName:{type:"string",description:"Last/family name of the account holder"}},required:["currency","type","accountNumber","routingNumber","iban","address","email","phoneNumber","providerCountry","providerName","givenName","familyName"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_register_output",definitions:{"virtual-account_bank-account_register_output":{type:"object",properties:{id:{type:"string"},bank_account_identifier:{anyOf:[{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"}},required:["type","iban"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ACH"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Wire"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1}]},bank_name:{type:"string"},country:{type:"string"},created_at:{type:"string",format:"date-time"},currency:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"},customer_id:{type:"string"},is_third_party:{type:"boolean"},label:{type:["string","null"]},ownership_verified:{type:"boolean"},status:{type:"string",enum:["AuthorizationRequired","AuthorizationFailed","RegistrationPending","RegistrationFailed","Registered"]},updated_at:{type:"string",format:"date-time"}},required:["id","bank_account_identifier","bank_name","country","created_at","currency","customer_id","is_third_party","label","ownership_verified","status","updated_at"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_bank-account_retrieve",description:"Get a bank account by ID",inputSchema:{$ref:"#/definitions/virtual-account_bank-account_retrieve_input",definitions:{"virtual-account_bank-account_retrieve_input":{type:"object",properties:{bankAccountId:{type:"string",description:"Bank account ID"}},required:["bankAccountId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_bank-account_retrieve_output",definitions:{"virtual-account_bank-account_retrieve_output":{type:"object",properties:{id:{type:"string"},bank_account_identifier:{anyOf:[{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"}},required:["type","iban"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ACH"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Wire"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","routing_number"],additionalProperties:!1}]},bank_name:{type:"string"},country:{type:"string"},created_at:{type:"string",format:"date-time"},currency:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"},customer_id:{type:"string"},is_third_party:{type:"boolean"},label:{type:["string","null"]},ownership_verified:{type:"boolean"},status:{type:"string",enum:["AuthorizationRequired","AuthorizationFailed","RegistrationPending","RegistrationFailed","Registered"]},updated_at:{type:"string",format:"date-time"}},required:["id","bank_account_identifier","bank_name","country","created_at","currency","customer_id","is_third_party","label","ownership_verified","status","updated_at"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_create",description:"Create a virtual account and start KYC/KYB verification",inputSchema:{$ref:"#/definitions/virtual-account_create_input",definitions:{"virtual-account_create_input":{type:"object",properties:{customerType:{anyOf:[{type:"string",enum:["Person","Business"]},{type:"null"}],description:"Account type: Person for individuals (KYC), Business for companies (KYB). Defaults to Person."}},required:["customerType"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_create_output",definitions:{"virtual-account_create_output":{type:"object",properties:{id:{type:"string"},email:{type:"string"},customerType:{type:"string",enum:["Person","Business"]},status:{type:"string",enum:["UserRequired","SigningsRequired","IdentificationRequired","Active","Suspended"]},nextStep:{type:["string","null"]}},required:["id","email","customerType","status","nextStep"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_kyc_continue",description:"Get the current KYC verification status and URL. Use this to check progress or get the verification link again.",inputSchema:{$ref:"#/definitions/virtual-account_kyc_continue_input",definitions:{"virtual-account_kyc_continue_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_kyc_continue_output",definitions:{"virtual-account_kyc_continue_output":{type:"object",properties:{id:{type:"string",description:"Identification record ID"},status:{type:"string",enum:["Pending","Processed","PendingReview","Approved","Declined","Expired"],description:"KYC status: Pending, Processed, PendingReview, Approved, Declined, or Expired"},url:{type:["string","null"],description:"URL to complete KYC verification. Null if already submitted."}},required:["id","status","url"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_kyc_restart",description:"Restart KYC verification. Creates a fresh verification link. Only available when account status is IdentificationRequired.",inputSchema:{$ref:"#/definitions/virtual-account_kyc_restart_input",definitions:{"virtual-account_kyc_restart_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_kyc_restart_output",definitions:{"virtual-account_kyc_restart_output":{type:"object",properties:{id:{type:"string",description:"Identification record ID"},status:{type:"string",enum:["Pending","Processed","PendingReview","Approved","Declined","Expired"],description:"KYC status: Pending, Processed, PendingReview, Approved, Declined, or Expired"},url:{type:["string","null"],description:"URL to complete KYC verification. Null if already submitted."},message:{type:["string","null"],description:"Instructions for the user"}},required:["id","status","url","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_cancel",description:"Cancel an offramp",inputSchema:{$ref:"#/definitions/virtual-account_offramp_cancel_input",definitions:{"virtual-account_offramp_cancel_input":{type:"object",properties:{offrampId:{type:"string",format:"uuid",description:"The ID of the offramp to cancel"}},required:["offrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_cancel_output",definitions:{"virtual-account_offramp_cancel_output":{type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_create",description:"Create an offramp to convert stablecoin to fiat",inputSchema:{$ref:"#/definitions/virtual-account_offramp_create_input",definitions:{"virtual-account_offramp_create_input":{type:"object",properties:{name:{type:"string",description:"The name of the offramp"},bankAccountId:{type:"string",description:"Bank account ID to receive fiat. Get from `bank-account list`."},stablecoin:{type:"string",enum:["USDC","USDT","EURC"],description:"The stablecoin token to convert from"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain the stablecoin is on (solana, ethereum, polygon, arbitrum, base)"}},required:["name","bankAccountId","stablecoin","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_create_output",definitions:{"virtual-account_offramp_create_output":{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_initiate",description:"Build an unsigned transaction to send stablecoin to an offramp deposit address",inputSchema:{$ref:"#/definitions/virtual-account_offramp_initiate_input",definitions:{"virtual-account_offramp_initiate_input":{type:"object",properties:{wallet:{type:"string",description:"The wallet address to send from"},offrampId:{type:"string",description:"The ID of the offramp to initiate"},amount:{type:"number",minimum:0,description:"The amount of stablecoin to send (in human-readable units, e.g., 100.5)"}},required:["wallet","offrampId","amount"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_initiate_output",definitions:{"virtual-account_offramp_initiate_output":{type:"object",properties:{transaction:{anyOf:[{type:"object",properties:{type:{type:"string",const:"solana"},base64:{type:"string",description:"Base64-encoded transaction"}},required:["type","base64"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"evm"},to:{type:"string",description:"Recipient or contract address"},data:{type:"string",description:"Calldata (0x for native transfers)"},value:{type:"string",description:"Native token value in wei"},chainId:{type:"number",description:"EVM chain ID"}},required:["type","to","data","value","chainId"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"tron"},rawDataHex:{type:"string",description:"Hex-encoded raw transaction data for signing"},rawData:{description:"Protobuf JSON structure for broadcast"},txID:{type:"string",description:"Transaction ID (SHA-256 of raw_data_hex)"},visible:{type:"boolean"}},required:["type","rawDataHex"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"ton"},boc:{type:"string",description:"Base64-encoded BOC (Bag of Cells) for signing and broadcast"}},required:["type","boc"],additionalProperties:!1}]},message:{type:"string",description:"Human-readable description of the transfer"},requiresApproval:{type:"boolean",description:"Whether a token approval transaction is needed first"},transactionId:{type:["string","null"],description:"Transaction ID for tracking with swaps.xyz (null for Solana transfers)"}},required:["transaction","message","requiresApproval","transactionId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_list",description:"List all offramps",inputSchema:{$ref:"#/definitions/virtual-account_offramp_list_input",definitions:{"virtual-account_offramp_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_list_output",definitions:{"virtual-account_offramp_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_retrieve",description:"Get offramp details",inputSchema:{$ref:"#/definitions/virtual-account_offramp_retrieve_input",definitions:{"virtual-account_offramp_retrieve_input":{type:"object",properties:{offrampId:{type:"string",format:"uuid",description:"The ID of the offramp to retrieve"}},required:["offrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_retrieve_output",definitions:{"virtual-account_offramp_retrieve_output":{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_offramp_update",description:"Update an existing offramp's destination bank account or fiat currency.",inputSchema:{$ref:"#/definitions/virtual-account_offramp_update_input",definitions:{"virtual-account_offramp_update_input":{type:"object",properties:{offrampId:{type:"string",description:"The ID of the offramp to update"},bankAccountId:{type:"string",description:"New bank account ID. Get from `bank-account list`."}},required:["offrampId","bankAccountId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_offramp_update_output",definitions:{"virtual-account_offramp_update_output":{type:"object",properties:{created_at:{type:"string",format:"date-time"},deposit_account:{anyOf:[{anyOf:[{type:"object",properties:{type:{type:"string",const:"ACHWire"},account_number:{type:"string"},bank_address:{type:"string"},bank_name:{type:"string"},recipient_address:{type:"string"},recipient_name:{type:"string"},routing_number:{type:"string"}},required:["type","account_number","bank_address","bank_name","recipient_address","recipient_name","routing_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"AfricanBankTransfer"},account_name:{type:"string"},account_number:{type:"string"},amount:{type:"string"},bank_name:{type:"string"},currency:{type:"string"},financial_institution:{type:"string"}},required:["type","account_name","account_number","amount","bank_name","currency","financial_institution"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Crypto"},address:{type:"string"},chain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]}},required:["type","address","chain"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"MobileMoney"},instruction:{type:"string"},mobile_number:{type:"string"}},required:["type","mobile_number"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Pix"},instruction:{type:"string"},pix_key:{type:"string"}},required:["type","instruction","pix_key"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"SEPA"},iban:{type:"string"},address:{type:"string"},beneficiary_name:{type:["string","null"]},bic:{type:"string"},name:{type:"string"},phone:{type:"string"}},required:["type","iban","beneficiary_name"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Spei"},clabe:{type:"string"},instruction:{type:"string"}},required:["type","clabe","instruction"],additionalProperties:!1}]},{type:"null"}]},destination_currency:{anyOf:[{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",const:"Fiat"},code:{type:"string",enum:["USD","EUR"],description:"Fiat currency code. USD: US Dollar, EUR: Euro"}},required:["type","code"],additionalProperties:!1}]},id:{type:"string",description:"The ID of the autoramp"},name:{type:"string"},recipient:{type:"object",properties:{type:{type:"string",const:"BankAccount"},provider_name:{type:"string"},provider_country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},is_third_party:{type:"boolean"},account_identifier:{type:"object",properties:{type:{type:"string",enum:["SEPA","ACH","Wire"]},iban:{type:"string"},account_number:{type:"string"},routing_number:{type:"string"}},required:["type"],additionalProperties:!1},address:{type:"object",properties:{street:{type:"string"},city:{type:"string"},state:{type:"string"},country:{type:"object",properties:{code:{type:"string",minLength:2,maxLength:2}},required:["code"],additionalProperties:!1},postal_code:{type:"string"}},required:["street","city","state","country","postal_code"],additionalProperties:!1},recipient:{type:"object",properties:{type:{type:"string",enum:["Individual","Business"]},family_name:{type:"string"},given_name:{type:"string"},name:{type:"string"}},required:["type"],additionalProperties:!1}},required:["type","provider_name","provider_country","is_third_party","account_identifier","address","recipient"],additionalProperties:!1},source:{type:"string",enum:["Standalone","Quote"]},source_currencies:{type:"array",items:{type:"object",properties:{type:{type:"string",const:"Crypto"},blockchain:{type:"string",enum:["Solana","Ethereum","Polygon","Arbitrum","Base","Stellar","Citrea"]},token:{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"}},required:["type","blockchain","token"],additionalProperties:!1}},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]}},required:["created_at","deposit_account","destination_currency","id","name","recipient","source","source_currencies","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_cancel",description:"Cancel an onramp",inputSchema:{$ref:"#/definitions/virtual-account_onramp_cancel_input",definitions:{"virtual-account_onramp_cancel_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp to cancel"}},required:["onrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_cancel_output",definitions:{"virtual-account_onramp_cancel_output":{type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_create",description:"Create a fiat-to-stablecoin onramp. Returns a deposit account (bank IBAN or account number) where the user sends fiat. Incoming fiat is automatically converted to stablecoin and sent to the registered wallet.",inputSchema:{$ref:"#/definitions/virtual-account_onramp_create_input",definitions:{"virtual-account_onramp_create_input":{type:"object",properties:{name:{type:"string",description:"A label for this onramp (e.g. 'My USD onramp')"},fiat:{type:"string",enum:["USD","EUR"],description:"Fiat currency: usd or eur"},stablecoin:{type:"string",enum:["USDC","USDT","EURC"],description:"Target stablecoin: usdc, usdt, or eurc"},wallet:{type:"string",description:"Registered wallet address (must be registered via virtual-account_wallet_register first)"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain to receive stablecoin on (solana, ethereum, polygon, arbitrum, base)"}},required:["name","fiat","stablecoin","wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_create_output",definitions:{"virtual-account_onramp_create_output":{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_list",description:"List all fiat-to-stablecoin onramps. Shows each onramp's deposit account details, status, and destination wallet.",inputSchema:{$ref:"#/definitions/virtual-account_onramp_list_input",definitions:{"virtual-account_onramp_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_list_output",definitions:{"virtual-account_onramp_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1},description:"List of configured onramps"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_payment_create",description:"Create an open banking payment link for an onramp",inputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_create_input",definitions:{"virtual-account_onramp_payment_create_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp"},amount:{type:"string",description:"The amount to pay"},fiat:{type:"string",enum:["USD","EUR"],description:"The fiat currency (USD or EUR)"}},required:["onrampId","amount","fiat"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_create_output",definitions:{"virtual-account_onramp_payment_create_output":{type:"object",properties:{id:{type:"string"},paymentLink:{type:["string","null"]},status:{type:"string",enum:["Pending","Ready","Processing","Completed","Failed"]}},required:["id","paymentLink","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_payment_retrieve",description:"Get the status of an open banking payment",inputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_retrieve_input",definitions:{"virtual-account_onramp_payment_retrieve_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp this payment belongs to"},paymentId:{type:"string",format:"uuid",description:"The ID of the payment to retrieve"}},required:["onrampId","paymentId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_payment_retrieve_output",definitions:{"virtual-account_onramp_payment_retrieve_output":{type:"object",properties:{id:{type:"string"},paymentLink:{type:["string","null"]},status:{type:"string",enum:["Pending","Ready","Processing","Completed","Failed"]}},required:["id","paymentLink","status"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_retrieve",description:"Get onramp details and banking info",inputSchema:{$ref:"#/definitions/virtual-account_onramp_retrieve_input",definitions:{"virtual-account_onramp_retrieve_input":{type:"object",properties:{onrampId:{type:"string",format:"uuid",description:"The ID of the onramp to retrieve"}},required:["onrampId"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_retrieve_output",definitions:{"virtual-account_onramp_retrieve_output":{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_onramp_update",description:"Update an existing onramp's destination wallet, chain, or stablecoin.",inputSchema:{$ref:"#/definitions/virtual-account_onramp_update_input",definitions:{"virtual-account_onramp_update_input":{type:"object",properties:{onrampId:{type:"string",description:"The ID of the onramp to update"},wallet:{type:["string","null"],description:"New destination wallet address (must be registered)"},chain:{anyOf:[{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"]},{type:"null"}],description:"New destination chain (solana, ethereum, polygon, arbitrum, base)"},stablecoin:{anyOf:[{type:"string",enum:["USDC","USDT","EURC"],description:"Stablecoin token code. USDC: USD Coin, USDT: Tether, EURC: Euro Coin"},{type:"null"}],description:"New destination stablecoin (USDC, USDT, EURC)"}},required:["onrampId","wallet","chain","stablecoin"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_onramp_update_output",definitions:{"virtual-account_onramp_update_output":{type:"object",properties:{id:{type:"string"},name:{type:"string"},status:{type:"string",enum:["Created","EditPending","Authorized","DepositAccountAdded","Approved","Rejected","Cancelled"]},fiat:{type:"string"},stablecoin:{type:"string"},depositAccount:{anyOf:[{type:"object",properties:{type:{type:"string"},iban:{type:["string","null"]},bic:{type:["string","null"]},accountNumber:{type:["string","null"]},routingNumber:{type:["string","null"]},bankName:{type:["string","null"]},bankAddress:{type:["string","null"]},recipientName:{type:["string","null"]}},required:["type","iban","bic","accountNumber","routingNumber","bankName","bankAddress","recipientName"],additionalProperties:!1},{type:"null"}]},walletAddress:{type:"string"},fees:{anyOf:[{type:"object",properties:{transactionFee:{type:"string",description:"e.g. '0.50%'"},bankingFee:{type:["string","null"],description:"e.g. '0.50 EUR (SEPA)'"},networkFee:{type:"string",description:"'subsidized' or 'charged'"}},required:["transactionFee","bankingFee","networkFee"],additionalProperties:!1},{type:"null"}]},legalDisclaimer:{type:"string"}},required:["id","name","status","fiat","stablecoin","depositAccount","walletAddress","fees","legalDisclaimer"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_retrieve",description:"Get your virtual account status",inputSchema:{$ref:"#/definitions/virtual-account_retrieve_input",definitions:{"virtual-account_retrieve_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_retrieve_output",definitions:{"virtual-account_retrieve_output":{type:"object",properties:{id:{type:"string"},email:{type:"string"},customerType:{type:"string",enum:["Person","Business"]},status:{type:"string",enum:["UserRequired","SigningsRequired","IdentificationRequired","Active","Suspended"]},nextStep:{type:["string","null"]}},required:["id","email","customerType","status","nextStep"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_transaction_list",description:"List fiat-to-stablecoin conversion transactions. Shows status, fiat amount sent, and stablecoin amount received for each conversion.",inputSchema:{$ref:"#/definitions/virtual-account_transaction_list_input",definitions:{"virtual-account_transaction_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_transaction_list_output",definitions:{"virtual-account_transaction_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string",description:"Transaction ID"},state:{type:"string",enum:["Pending","PayoutPending","Payout","PayoutCompleted","Completed","Failed","InAmlReview","AmlRejected","AmountRejected"],description:"Transaction state (e.g. pending, completed, failed)"},sourceAmount:{type:"string",description:"Fiat amount sent (e.g. '100.00 USD')"},destinationAmount:{type:"string",description:"Stablecoin amount received (e.g. '99.50 USDC')"},createdAt:{type:"string",format:"date-time",description:"Transaction creation timestamp"}},required:["id","state","sourceAmount","destinationAmount","createdAt"],additionalProperties:!1},description:"List of onramp conversion transactions"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_wallet_list",description:"List wallets registered for the virtual account. Only registered wallets can receive onramp payouts.",inputSchema:{$ref:"#/definitions/virtual-account_wallet_list_input",definitions:{"virtual-account_wallet_list_input":{type:"object",properties:{},additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_wallet_list_output",definitions:{"virtual-account_wallet_list_output":{type:"object",properties:{items:{type:"array",items:{type:"object",properties:{id:{type:"string"},address:{type:"string"},blockchain:{type:"string"}},required:["id","address","blockchain"],additionalProperties:!1},description:"List of registered wallets"}},required:["items"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"virtual-account_wallet_register",description:"Register a wallet by submitting a signed proof-of-ownership message. The wallet can then be used as a destination for onramp payouts.",inputSchema:{$ref:"#/definitions/virtual-account_wallet_register_input",definitions:{"virtual-account_wallet_register_input":{type:"object",properties:{wallet:{type:"string",description:"Wallet address to register"},message:{type:"string",description:"Proof-of-ownership verification message"},signature:{type:"string",description:"Signature of the message, signed by the wallet's private key"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain for wallet registration (solana, ethereum, polygon, base, arbitrum)"}},required:["wallet","message","signature","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/virtual-account_wallet_register_output",definitions:{"virtual-account_wallet_register_output":{type:"object",properties:{success:{type:"boolean",description:"Whether the operation was successful"}},required:["success"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"wallet_activity_list",description:"List recent activity (swaps, transfers, mints, burns) for a wallet address on a given chain.",inputSchema:{$ref:"#/definitions/wallet_activity_list_input",definitions:{wallet_activity_list_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Chain to query"},limit:{type:"integer",minimum:1,maximum:100,description:"Number of events to return"},cursor:{type:["string","null"],description:"Pagination cursor from previous response"}},required:["wallet","chain","limit","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/wallet_activity_list_output",definitions:{wallet_activity_list_output:{type:"object",properties:{trades:{type:"array",items:{type:"object",properties:{type:{type:"string",enum:["buy","sell"],description:"Trade direction from maker perspective"},date:{type:"string",format:"date-time",description:"Date and time of the trade"},trader:{type:"string",description:"Address of the trader"},input:{type:"object",properties:{address:{type:"string",description:"Address of the input token"},symbol:{type:"string",description:"Symbol of the input token"},amount:{type:"number",description:"Raw amount of input token (smallest unit)"},amountUsd:{type:"number",description:"USD value of the swap"}},required:["address","symbol","amount","amountUsd"],additionalProperties:!1},output:{type:"object",properties:{address:{type:"string",description:"Address of the output token"},symbol:{type:"string",description:"Symbol of the output token"},amount:{type:"number",description:"Raw amount of output token (smallest unit)"},amountUsd:{type:"number",description:"USD value of the swap"}},required:["address","symbol","amount","amountUsd"],additionalProperties:!1},signature:{type:"string",description:"Transaction signature/hash"}},required:["type","date","trader","input","output","signature"],additionalProperties:!1}},cursor:{type:["string","null"],description:"Cursor for next page, null if no more"}},required:["trades","cursor"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"wallet_discover",description:"Discover top-performing wallets by PnL, win rate, or volume. Find smart money on any chain.",inputSchema:{$ref:"#/definitions/wallet_discover_input",definitions:{wallet_discover_input:{type:"object",properties:{chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"},ranking:{type:["string","null"],description:"What to rank wallets by \u2014 'pnl', 'winRate', or 'volume'. Defaults to 'pnl'."},limit:{type:["number","null"],description:"Maximum number of results to return (optional, defaults to 10)"}},required:["chain","ranking","limit"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/wallet_discover_output",definitions:{wallet_discover_output:{type:"object",properties:{wallets:{type:"array"}},required:["wallets"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}},{name:"wallet_pnl_retrieve",description:"Retrieve a wallet's trading performance \u2014 PnL, win rate, volume, and portfolio value over time.",inputSchema:{$ref:"#/definitions/wallet_pnl_retrieve_input",definitions:{wallet_pnl_retrieve_input:{type:"object",properties:{wallet:{type:"string",description:"Wallet address to profile"},chain:{type:"string",enum:["solana","ethereum","base","polygon","arbitrum","optimism","bnb","avalanche","tron","bitcoin","ton","ethereum-sepolia","base-sepolia","arbitrum-sepolia","polygon-amoy","solana-devnet"],description:"Blockchain (e.g. 'solana', 'ethereum', 'base')"}},required:["wallet","chain"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"},outputSchema:{$ref:"#/definitions/wallet_pnl_retrieve_output",definitions:{wallet_pnl_retrieve_output:{type:"object",properties:{wallet:{type:"string"},chain:{type:"string"},stats:{anyOf:[{},{type:"null"}]},chart:{anyOf:[{type:"array",items:{type:"object",properties:{timestamp:{type:"number"},value:{type:"number"}},required:["timestamp","value"],additionalProperties:!1}},{type:"null"}]}},required:["wallet","chain","chart"],additionalProperties:!1}},$schema:"http://json-schema.org/draft-07/schema#"}}];var Di="https://www.moonpay.com/legal/terms_of_use_europe_hypermint",qi="https://www.moonpay.com/legal/privacy_policy",Ui="https://swaps.xyz/terms",Xe=` Terms of Use: ${Di}
3
3
  Privacy Policy: ${qi}
4
4
  Swaps by: ${Ui}`;import*as pt from"fs";import*as ct from"os";import*as dt from"path";var s=e=>e;function J(e){switch(e.type){case"solana":return e.base64;case"tron":return JSON.stringify(e);case"ton":return e.boc;case"evm":return JSON.stringify(e);default:return JSON.stringify(e)}}var p=(e,t)=>({schema:e,handler:async i=>{let r=e.input.parse(i),o=await t(r);return e.output.parse(o)}});import{z as pe}from"zod";var et=s({name:"consent_check",description:"Check whether the MoonPay Terms of Use have been accepted. Throws if not accepted.",input:pe.object({}),output:pe.object({accepted:pe.literal(!0),tosVersion:pe.string(),acceptedAt:pe.string()})});import*as Q from"fs";import*as ot from"os";import*as at from"path";import*as st from"crypto";import{z as _e}from"zod";var tt=s({name:"consent_accept",description:"Accept the MoonPay Terms of Use. Required before using any CLI command.",input:_e.object({}),output:_e.object({tosVersion:_e.string(),acceptedAt:_e.string()})});I();Ae();import*as ke from"os";var it=3e3;function rt(e){let t=_(),i=JSON.stringify({agentId:e.agentId,tosVersion:e.tosVersion,cliVersion:e.cliVersion,nodeVersion:process.version,os:ke.platform(),arch:ke.arch()});fetch(`${t}/api/tools/cli_activation_create`,{method:"POST",headers:G(),body:i,signal:AbortSignal.timeout(it)}).catch(()=>{})}async function nt(e){let t=_(),i=await Y();i&&fetch(`${t}/api/tools/cli_activation_update`,{method:"POST",headers:{...G(),Authorization:`Bearer ${i}`},body:JSON.stringify({agentId:e}),signal:AbortSignal.timeout(it)}).catch(()=>{})}I();Ae();var qe=at.join(ot.homedir(),".config","moonpay","consent.json");function $i(){try{return JSON.parse(Q.readFileSync(qe,"utf-8"))}catch{return null}}var Se=p(tt,async()=>{Be();let t=$i()?.agentId??st.randomUUID(),i=new Date().toISOString(),r={tosVersion:"1.2",acceptedAt:i,agentId:t},o=qe+`.tmp.${process.pid}`;return Q.writeFileSync(o,JSON.stringify(r,null,2),{encoding:"utf-8",mode:384}),Q.renameSync(o,qe),process.stderr.write(`
5
5
  By using this CLI, you agree to:
@@ -20,7 +20,7 @@ Private key for "${t.name}":
20
20
 
21
21
  `),process.stderr.write(` ${i}
22
22
 
23
- `)),{exported:!0}});function Oi(){return{async connect(){let{connectLedger:e}=await import("./ledger-DFHLCJVB.js");await e()},async disconnect(){let{disconnectLedger:e}=await import("./ledger-DFHLCJVB.js");await e()},async getAllAddresses(){let{ledgerGetAllAddresses:e}=await import("./ledger-DFHLCJVB.js");return e()},async signTransaction(e,t){let{ledgerSignTransaction:i}=await import("./ledger-DFHLCJVB.js");return i(e,t)},async signMessage(e,t){let{ledgerSignMessage:i}=await import("./ledger-DFHLCJVB.js");return i(e,t)}}}var Li={ledger:Oi};function B(e){return Li[e]()}import{z as W}from"zod";var At=s({name:"wallet_hardware_add",description:"Add a hardware wallet (e.g. Ledger). Connects to the device, derives addresses for all chains, and saves the wallet. No secrets are stored \u2014 signing happens on the device.",input:W.object({name:W.string().describe("Wallet name"),device:De.describe("Hardware wallet device type")}),output:W.object({name:W.string(),device:De,addresses:W.record(W.string(),W.string())})});var Dt=p(At,async e=>{let t=B(e.device);await t.connect();try{let i=await t.getAllAddresses();return Qe({name:e.name,type:"hardware",device:e.device,addresses:i,createdAt:new Date().toISOString()}),{name:e.name,device:e.device,addresses:x(i)}}finally{await t.disconnect()}});import{z}from"zod";var qt=s({name:"wallet_hardware_refresh",description:"Re-derive addresses from a connected hardware wallet. Use after changing accounts or connecting a new device.",input:z.object({wallet:z.string().describe("Hardware wallet name")}),output:z.object({name:z.string(),addresses:z.record(z.string(),z.string())})});var Ut=p(qt,async e=>{let t=S(e.wallet);if(t.type!=="hardware")throw new Error(`Wallet "${t.name}" is not a hardware wallet. Only hardware wallets can be refreshed from a device.`);let i=B(t.device);await i.connect();try{let r=await i.getAllAddresses();return Ze(t.name,r),{name:t.name,addresses:x(r)}}finally{await i.disconnect()}});import{VersionedTransaction as Ni}from"@solana/web3.js";import{serializeTransaction as Pe}from"viem";import{createPublicClient as Mi,http as Hi}from"viem";import*as h from"viem/chains";import*as Wi from"tiny-secp256k1";import{z as ce}from"zod";var $t=s({name:"transaction_sign",description:"Sign a transaction with a local wallet. Supports Solana (VersionedTransaction), EVM (RLP-encoded), and Bitcoin (PSBT) transactions.",input:ce.object({wallet:ce.string().describe("Wallet name or address"),chain:k.describe("Chain: solana, ethereum, base, arbitrum, or bitcoin"),transaction:ce.string().describe("Base64-encoded unsigned transaction")}),output:ce.object({transaction:ce.string().describe("Base64-encoded signed transaction")})});var zi={1:h.mainnet,137:h.polygon,42161:h.arbitrum,8453:h.base,10:h.optimism,56:h.bsc,43114:h.avalanche,11155111:h.sepolia,84532:h.baseSepolia,421614:h.arbitrumSepolia,80002:h.polygonAmoy},Vi={137:"https://polygon-bor-rpc.publicnode.com",42161:"https://arbitrum-one-rpc.publicnode.com",10:"https://optimism-rpc.publicnode.com",8453:"https://base-rpc.publicnode.com",56:"https://bsc-rpc.publicnode.com",43114:"https://avalanche-c-chain-rpc.publicnode.com",11155111:"https://ethereum-sepolia-rpc.publicnode.com",84532:"https://base-sepolia-rpc.publicnode.com",421614:"https://arbitrum-sepolia-rpc.publicnode.com",80002:"https://polygon-amoy-bor-rpc.publicnode.com"},P=p($t,async e=>{let t=S(e.wallet),i=e.chain;if(t.type==="hardware"){let o=B(t.device);await o.connect();try{let n=e.transaction.trim();if(f[i]==="ethereum"&&n.startsWith("{")){let a=t.addresses.ethereum;if(!a)throw new Error("Hardware wallet has no Ethereum address");n=await Et(n,a)}return await o.signTransaction(i,n)}finally{await o.disconnect()}}switch(f[i]){case"solana":return Fi(t.name,e.transaction.trim());case"ethereum":return Ki(t,i,e.transaction.trim());case"tron":return Gi(t.name,e.transaction.trim());case"bitcoin":return Yi(t,i,e.transaction.trim());case"ton":return Ji(t,e.transaction.trim())}});function Fi(e,t){let i=Buffer.from(t,"base64"),r=Ni.deserialize(i),o=Buffer.from(r.message.serialize()).toString("hex"),n=E(e,"solana",o,"hex");return r.signatures[0]=Uint8Array.from(Buffer.from(n.signature,"hex")),{transaction:Buffer.from(r.serialize()).toString("base64")}}async function Et(e,t){let{to:i,data:r,value:o,chainId:n}=JSON.parse(e),a=zi[n]??h.mainnet,c=Mi({chain:a,transport:Hi(Vi[n])}),[d,m,l]=await Promise.all([c.getTransactionCount({address:t}),c.estimateFeesPerGas(),c.estimateGas({account:t,to:i,data:r,value:BigInt(o??"0")})]);return Pe({to:i,data:r,value:BigInt(o??"0"),chainId:n,nonce:d,gas:l,maxFeePerGas:m.maxFeePerGas,maxPriorityFeePerGas:m.maxPriorityFeePerGas,type:"eip1559"})}function xt(e){return{r:`0x${e.signature.slice(0,64)}`,s:`0x${e.signature.slice(64,128)}`,yParity:e.recoveryId??0}}async function Ki(e,t,i){if(i.startsWith("{")){let m=e.addresses.ethereum,l=await Et(i,m),u=l.startsWith("0x")?l.slice(2):l,g=be(e.name,"ethereum",u),{parseTransaction:b}=await import("viem"),$=b(l);return{transaction:Pe($,xt(g))}}let r=i.startsWith("0x")?i:`0x${Buffer.from(i,"base64").toString("hex")}`,{parseTransaction:o}=await import("viem"),n=o(r),a=Pe(n),c=a.startsWith("0x")?a.slice(2):a,d=be(e.name,"ethereum",c);return{transaction:Pe(n,xt(d))}}function Gi(e,t){let i=JSON.parse(t),r=(i.rawDataHex??i.raw_data_hex??t).replace(/^0x/,""),o=be(e,"tron",r),n=o.signature.slice(0,128),a=o.recoveryId!=null?(o.recoveryId+27).toString(16).padStart(2,"0"):"1b";return{transaction:JSON.stringify({raw_data_hex:r,raw_data:i.rawData??i.raw_data,txID:i.txID,visible:i.visible,signature:n+a})}}async function Yi(e,t,i){let{privateKey:r}=se(e,t),o=await import("bitcoinjs-lib"),n=(await import("ecpair")).default,c=n(Wi).fromPrivateKey(Buffer.from(r)),d=o.Psbt.fromBase64(i);return d.signAllInputs(c),d.finalizeAllInputs(),{transaction:d.toBase64()}}var Rt="https://tonapi.io";async function Ji(e,t){let{WalletContractV5R1:i,internal:r}=await import("@ton/ton"),{keyPairFromSeed:o}=await import("@ton/crypto"),{beginCell:n,storeMessage:a,external:c,toNano:d,Address:m,SendMode:l}=await import("@ton/core"),{privateKey:u}=se(e,"ton"),g=JSON.parse(t),b=g.boc?JSON.parse(g.boc):g,$=u.slice(0,32),R=o(Buffer.from($)),C=i.create({publicKey:Buffer.from(R.publicKey)}),ye=C.address.toString({bounceable:!1}),K=0;try{let oe=await fetch(`${Rt}/v2/blockchain/accounts/${ye}/methods/seqno`);if(oe.ok){let he=await oe.json(),ae=he.stack?.[0]?.num;K=ae?parseInt(ae,16):he.decoded?.state??he.decoded?.seqno??0}}catch{}let M=b.token,Ie=!M||M==="0x0000000000000000000000000000000000000000"||M==="EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",Te;if(Ie)Te=r({to:b.to,value:BigInt(b.value),bounce:!1});else{let oe=await fetch(`${Rt}/v2/accounts/${ye}/jettons/${M}`);if(!oe.ok)throw new Error("Failed to resolve Jetton wallet address");let ae=(await oe.json()).wallet_address?.address;if(!ae)throw new Error("Jetton wallet not found");let Ii=n().storeUint(260734629,32).storeUint(0,64).storeCoins(BigInt(b.value)).storeAddress(m.parse(b.to)).storeAddress(C.address).storeUint(0,1).storeCoins(d("0.01")).storeUint(0,1).endCell();Te=r({to:m.parse(ae),value:d("0.1"),body:Ii,bounce:!0})}let Pi=C.createTransfer({seqno:K,secretKey:Buffer.from(R.secretKey),sendMode:l.PAY_GAS_SEPARATELY|l.IGNORE_ERRORS,messages:[Te]}),ji=K>0,Ci=c({to:C.address,init:ji?void 0:C.init,body:Pi});return{transaction:n().store(a(Ci)).endCell().toBoc().toString("base64")}}import Qi from"bs58";import{z as de}from"zod";var Bt=s({name:"message_sign",description:"Sign a message with a local wallet. Supports Solana (ed25519), EVM (EIP-191 personal sign), and Bitcoin (secp256k1 ECDSA).",input:de.object({wallet:de.string().describe("Wallet address or name to sign with"),chain:k.describe("Chain: solana, ethereum, base, arbitrum, or bitcoin"),message:de.string().describe("Message text to sign")}),output:de.object({signature:de.string().describe("Signature: base58 for Solana, hex (0x-prefixed) for EVM/Bitcoin")})});var O=p(Bt,async e=>{let t=S(e.wallet),i=e.chain;if(t.type==="hardware"){let o=B(t.device);await o.connect();try{return await o.signMessage(i,e.message)}finally{await o.disconnect()}}switch(f[i]){case"solana":return Zi(t.name,e.message);case"ethereum":return Xi(t.name,e.message);case"ton":return er(t.name,e.message);case"bitcoin":return tr(t.name,e.message);case"tron":return ir(t.name,e.message)}});function Zi(e,t){let i=E(e,"solana",Buffer.from(t,"utf8").toString("hex"),"hex");return{signature:Qi.encode(Buffer.from(i.signature,"hex"))}}function Xi(e,t){let i=E(e,"ethereum",t),r=i.signature.slice(0,64),o=i.signature.slice(64,128),n=(i.recoveryId??0)+27;return{signature:`0x${r}${o}${n.toString(16).padStart(2,"0")}`}}function er(e,t){return{signature:E(e,"ton",Buffer.from(t,"utf8").toString("hex"),"hex").signature}}function tr(e,t){let i=E(e,"bitcoin",Buffer.from(t,"utf8").toString("hex"),"hex"),r=i.signature.slice(0,128),o=i.recoveryId!=null?(i.recoveryId+27).toString(16).padStart(2,"0"):"1b";return{signature:`0x${r}${o}`}}function ir(e,t){let i=E(e,"tron",Buffer.from(t,"utf8").toString("hex"),"hex"),r=i.signature.slice(0,128),o=i.recoveryId!=null?(i.recoveryId+27).toString(16).padStart(2,"0"):"1b";return{signature:`0x${r}${o}`}}import rr from"https";import{z as T}from"zod";var Ot=s({name:"bitcoin_balance_retrieve",description:"Get the BTC balance of a Bitcoin address. Returns confirmed and unconfirmed balances in BTC and satoshis.",input:T.object({wallet:T.string().describe("Bitcoin address (bc1...) or wallet name")}),output:T.object({address:T.string().describe("Bitcoin address"),confirmed:T.object({btc:T.string().describe("Confirmed balance in BTC"),sats:T.number().describe("Confirmed balance in satoshis")}),unconfirmed:T.object({btc:T.string().describe("Unconfirmed (pending) balance in BTC"),sats:T.number().describe("Unconfirmed (pending) balance in satoshis")}),total:T.object({btc:T.string().describe("Total balance in BTC"),sats:T.number().describe("Total balance in satoshis")})})});var nr=1e8;function Ue(e){return(e/nr).toFixed(8)}function or(e){return new Promise((t,i)=>{rr.get(e,{headers:{"User-Agent":"moonpay-cli"}},r=>{if(r.statusCode!==200){i(new Error(`HTTP ${r.statusCode} from ${e}`)),r.resume();return}let o="";r.on("data",n=>o+=n),r.on("end",()=>{try{t(JSON.parse(o))}catch{i(new Error("Invalid JSON response"))}})}).on("error",i)})}var Lt=p(Ot,async e=>{let t=e.wallet;if(!t.startsWith("bc1")&&!t.startsWith("1")&&!t.startsWith("3")){let{findWalletOrThrow:a}=await import("./store-EFNY5F3G.js"),d=a(t).addresses.bitcoin;if(!d)throw new Error(`Wallet "${t}" has no Bitcoin address. It may be an imported single-chain wallet.`);t=d}let i=await or(`https://mempool.space/api/address/${encodeURIComponent(t)}`),r=i.chain_stats.funded_txo_sum-i.chain_stats.spent_txo_sum,o=i.mempool_stats.funded_txo_sum-i.mempool_stats.spent_txo_sum,n=r+o;return{address:t,confirmed:{btc:Ue(r),sats:r},unconfirmed:{btc:Ue(o),sats:o},total:{btc:Ue(n),sats:n}}});import{readdirSync as ar,readFileSync as Nt,existsSync as $e,mkdirSync as sr,cpSync as pr}from"fs";import{join as te,dirname as cr}from"path";import{homedir as dr}from"os";import{fileURLToPath as lr}from"url";function xe(){let e=lr(import.meta.url),t=cr(e);return te(t,"..","skills")}function ur(){return te(dr(),".claude","skills")}function Re(){let e=xe();return $e(e)?ar(e,{withFileTypes:!0}).filter(t=>t.isDirectory()&&t.name.startsWith("moonpay-")).map(t=>{let r=Nt(te(e,t.name,"SKILL.md"),"utf-8").match(/^description:\s*(.+)$/m);return{name:t.name,description:r?.[1]?.replace(/^["']|["']$/g,"")??""}}).sort((t,i)=>t.name.localeCompare(i.name)):[]}function Mt(e){if(/[/\\]|\.\./.test(e))throw new Error(`Invalid skill name: "${e}"`);let t=te(xe(),e,"SKILL.md");if(!$e(t))throw new Error(`Skill "${e}" not found. Run \`mp skill list\` to see available skills.`);return Nt(t,"utf-8")}function Ht(e,t){let i=xe(),r=t??ur(),o=Re();return sr(r,{recursive:!0}),o.map(n=>{let a=te(r,n.name);return $e(a)&&!e?{name:n.name,installed:!1}:(pr(te(i,n.name),a,{recursive:!0,force:!0}),{name:n.name,installed:!0})})}import{z as le}from"zod";var Wt=s({name:"skill_list",description:"List available AI skills for Claude Code and other agents",input:le.object({}),output:le.array(le.object({name:le.string(),description:le.string()}))});var zt=p(Wt,async()=>Re());import{z as ue}from"zod";var Vt=s({name:"skill_retrieve",description:"Get the full instructions for a specific skill",input:ue.object({name:ue.string().describe("Skill name (e.g. moonpay-swap-tokens)")}),output:ue.object({name:ue.string(),content:ue.string()})});var Ft=p(Vt,async e=>({name:e.name,content:Mt(e.name)}));import{z as V}from"zod";var Kt=s({name:"skill_install",description:"Install AI skills for Claude Code. Defaults to ~/.claude/skills/, or specify --dir for a custom location (e.g. project-local, ~/.agents/skills).",input:V.object({force:V.boolean().describe("Overwrite existing skills"),dir:V.string().nullable().describe("Target directory to install skills into (default: ~/.claude/skills/)")}),output:V.array(V.object({name:V.string(),installed:V.boolean()}))});var Gt=p(Kt,async e=>Ht(e.force,e.dir??void 0));import{encodeFunctionData as mr}from"viem";I();import{z as A}from"zod";var Yt=s({name:"token_bridge",description:"Bridge tokens across chains. Builds, signs locally, broadcasts, and registers.",input:A.object({from:A.object({wallet:A.string().describe("Local wallet name to sign with"),chain:k.describe("Source chain"),token:A.string().describe("Source token address"),amount:A.coerce.number().nullable().describe("Amount to send (exact-in). Null for exact-out.")}),to:A.object({wallet:A.string().nullable().describe("Destination wallet name or address (defaults to from wallet)"),chain:k.describe("Destination chain"),token:A.string().describe("Destination token address"),amount:A.coerce.number().nullable().describe("Amount to receive (exact-out). Null for exact-in.")})}),output:A.object({signature:A.string().describe("Transaction hash/signature"),message:A.string().describe("Human-readable bridge description")})});var yr=[{name:"approve",type:"function",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],ie=p(Yt,async e=>{if(!e.from.amount&&!e.to.amount)throw new Error("Provide either from.amount or to.amount.");let t=_(),i=await w.handler({wallet:e.from.wallet}),r=i.addresses[f[e.from.chain]];if(!r)throw new Error(`Wallet "${i.name}" has no address on ${e.from.chain}.`);let o=r;if(e.to.wallet)try{o=(await w.handler({wallet:e.to.wallet})).addresses[f[e.to.chain]]??e.to.wallet}catch{o=e.to.wallet}else e.from.chain!==e.to.chain&&(o=i.addresses[f[e.to.chain]]??r);let n={from:{wallet:r,chain:e.from.chain,token:e.from.token,amount:e.from.amount},to:{wallet:o,chain:e.to.chain,token:e.to.token,amount:e.to.amount}},a=await y(t,"swaps_transaction_build",n),c=a.transaction;if(a.requiresApproval&&"to"in c){let{to:u,chainId:g}=c,b={type:"evm",to:e.from.token,data:mr({abi:yr,functionName:"approve",args:[u,BigInt(a.amountIn.raw)]}),value:"0",chainId:g},{transaction:$}=await P.handler({wallet:i.name,chain:e.from.chain,transaction:JSON.stringify(b)}),R=await y(t,"transaction_send",{transaction:$,message:`Approve ${a.amountIn.symbol}`,chain:e.from.chain});if(!R.signature)throw new Error(`Approval failed: ${R.message}`);process.stderr.write(`Approval sent. Waiting for confirmation...
23
+ `)),{exported:!0}});function Oi(){return{async connect(){let{connectLedger:e}=await import("./ledger-DFHLCJVB.js");await e()},async disconnect(){let{disconnectLedger:e}=await import("./ledger-DFHLCJVB.js");await e()},async getAllAddresses(){let{ledgerGetAllAddresses:e}=await import("./ledger-DFHLCJVB.js");return e()},async signTransaction(e,t){let{ledgerSignTransaction:i}=await import("./ledger-DFHLCJVB.js");return i(e,t)},async signMessage(e,t){let{ledgerSignMessage:i}=await import("./ledger-DFHLCJVB.js");return i(e,t)}}}var Li={ledger:Oi};function B(e){return Li[e]()}import{z as W}from"zod";var At=s({name:"wallet_hardware_add",description:"Add a hardware wallet (e.g. Ledger). Connects to the device, derives addresses for all chains, and saves the wallet. No secrets are stored \u2014 signing happens on the device.",input:W.object({name:W.string().describe("Wallet name"),device:De.describe("Hardware wallet device type")}),output:W.object({name:W.string(),device:De,addresses:W.record(W.string(),W.string())})});var Dt=p(At,async e=>{let t=B(e.device);await t.connect();try{let i=await t.getAllAddresses();return Qe({name:e.name,type:"hardware",device:e.device,addresses:i,createdAt:new Date().toISOString()}),{name:e.name,device:e.device,addresses:x(i)}}finally{await t.disconnect()}});import{z}from"zod";var qt=s({name:"wallet_hardware_refresh",description:"Re-derive addresses from a connected hardware wallet. Use after changing accounts or connecting a new device.",input:z.object({wallet:z.string().describe("Hardware wallet name")}),output:z.object({name:z.string(),addresses:z.record(z.string(),z.string())})});var Ut=p(qt,async e=>{let t=S(e.wallet);if(t.type!=="hardware")throw new Error(`Wallet "${t.name}" is not a hardware wallet. Only hardware wallets can be refreshed from a device.`);let i=B(t.device);await i.connect();try{let r=await i.getAllAddresses();return Ze(t.name,r),{name:t.name,addresses:x(r)}}finally{await i.disconnect()}});import{VersionedTransaction as Ni}from"@solana/web3.js";import{serializeTransaction as Pe}from"viem";import{createPublicClient as Mi,http as Hi}from"viem";import*as h from"viem/chains";import*as Wi from"tiny-secp256k1";import{z as ce}from"zod";var $t=s({name:"transaction_sign",description:"Sign a transaction with a local wallet. Supports Solana (VersionedTransaction), EVM (RLP-encoded), and Bitcoin (PSBT) transactions.",input:ce.object({wallet:ce.string().describe("Wallet name or address"),chain:k.describe("Chain: solana, ethereum, base, arbitrum, or bitcoin"),transaction:ce.string().describe("Base64-encoded unsigned transaction")}),output:ce.object({transaction:ce.string().describe("Base64-encoded signed transaction")})});var zi={1:h.mainnet,137:h.polygon,42161:h.arbitrum,8453:h.base,10:h.optimism,56:h.bsc,43114:h.avalanche,11155111:h.sepolia,84532:h.baseSepolia,421614:h.arbitrumSepolia,80002:h.polygonAmoy},Vi={137:"https://polygon-bor-rpc.publicnode.com",42161:"https://arbitrum-one-rpc.publicnode.com",10:"https://optimism-rpc.publicnode.com",8453:"https://base-rpc.publicnode.com",56:"https://bsc-rpc.publicnode.com",43114:"https://avalanche-c-chain-rpc.publicnode.com",11155111:"https://ethereum-sepolia-rpc.publicnode.com",84532:"https://base-sepolia-rpc.publicnode.com",421614:"https://arbitrum-sepolia-rpc.publicnode.com",80002:"https://polygon-amoy-bor-rpc.publicnode.com"},P=p($t,async e=>{let t=S(e.wallet),i=e.chain;if(t.type==="hardware"){let o=B(t.device);await o.connect();try{let n=e.transaction.trim();if(f[i]==="ethereum"&&n.startsWith("{")){let a=t.addresses.ethereum;if(!a)throw new Error("Hardware wallet has no Ethereum address");n=await Et(n,a)}return await o.signTransaction(i,n)}finally{await o.disconnect()}}switch(f[i]){case"solana":return Fi(t.name,e.transaction.trim());case"ethereum":return Ki(t,i,e.transaction.trim());case"tron":return Gi(t.name,e.transaction.trim());case"bitcoin":return Yi(t,i,e.transaction.trim());case"ton":return Ji(t,e.transaction.trim())}});function Fi(e,t){let i=Buffer.from(t,"base64"),r=Ni.deserialize(i),o=Buffer.from(r.message.serialize()).toString("hex"),n=E(e,"solana",o,"hex");return r.signatures[0]=Uint8Array.from(Buffer.from(n.signature,"hex")),{transaction:Buffer.from(r.serialize()).toString("base64")}}async function Et(e,t){let{to:i,data:r,value:o,chainId:n}=JSON.parse(e),a=zi[n]??h.mainnet,c=Mi({chain:a,transport:Hi(Vi[n])}),[d,m,l]=await Promise.all([c.getTransactionCount({address:t}),c.estimateFeesPerGas(),c.estimateGas({account:t,to:i,data:r,value:BigInt(o??"0")})]);return Pe({to:i,data:r,value:BigInt(o??"0"),chainId:n,nonce:d,gas:l,maxFeePerGas:m.maxFeePerGas,maxPriorityFeePerGas:m.maxPriorityFeePerGas,type:"eip1559"})}function xt(e){return{r:`0x${e.signature.slice(0,64)}`,s:`0x${e.signature.slice(64,128)}`,yParity:e.recoveryId??0}}async function Ki(e,t,i){if(i.startsWith("{")){let m=e.addresses.ethereum,l=await Et(i,m),u=l.startsWith("0x")?l.slice(2):l,g=be(e.name,"ethereum",u),{parseTransaction:b}=await import("viem"),$=b(l);return{transaction:Pe($,xt(g))}}let r=i.startsWith("0x")?i:`0x${Buffer.from(i,"base64").toString("hex")}`,{parseTransaction:o}=await import("viem"),n=o(r),a=Pe(n),c=a.startsWith("0x")?a.slice(2):a,d=be(e.name,"ethereum",c);return{transaction:Pe(n,xt(d))}}function Gi(e,t){let i=JSON.parse(t),r=(i.rawDataHex??i.raw_data_hex??t).replace(/^0x/,""),o=be(e,"tron",r),n=o.signature.slice(0,128),a=o.recoveryId!=null?(o.recoveryId+27).toString(16).padStart(2,"0"):"1b";return{transaction:JSON.stringify({raw_data_hex:r,raw_data:i.rawData??i.raw_data,txID:i.txID,visible:i.visible,signature:n+a})}}async function Yi(e,t,i){let{privateKey:r}=se(e,t),o=await import("bitcoinjs-lib"),n=(await import("ecpair")).default,c=n(Wi).fromPrivateKey(Buffer.from(r)),d=o.Psbt.fromBase64(i);return d.signAllInputs(c),d.finalizeAllInputs(),{transaction:d.toBase64()}}var Rt="https://tonapi.io";async function Ji(e,t){let{WalletContractV5R1:i,internal:r}=await import("@ton/ton"),{keyPairFromSeed:o}=await import("@ton/crypto"),{beginCell:n,storeMessage:a,external:c,toNano:d,Address:m,SendMode:l}=await import("@ton/core"),{privateKey:u}=se(e,"ton"),g=JSON.parse(t),b=g.boc?JSON.parse(g.boc):g,$=u.slice(0,32),R=o(Buffer.from($)),C=i.create({publicKey:Buffer.from(R.publicKey)}),ye=C.address.toString({bounceable:!1}),K=0;try{let oe=await fetch(`${Rt}/v2/blockchain/accounts/${ye}/methods/seqno`);if(oe.ok){let he=await oe.json(),ae=he.stack?.[0]?.num;K=ae?parseInt(ae,16):he.decoded?.state??he.decoded?.seqno??0}}catch{}let M=b.token,Ie=!M||M==="0x0000000000000000000000000000000000000000"||M==="EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",Te;if(Ie)Te=r({to:b.to,value:BigInt(b.value),bounce:!1});else{let oe=await fetch(`${Rt}/v2/accounts/${ye}/jettons/${M}`);if(!oe.ok)throw new Error("Failed to resolve Jetton wallet address");let ae=(await oe.json()).wallet_address?.address;if(!ae)throw new Error("Jetton wallet not found");let Ii=n().storeUint(260734629,32).storeUint(0,64).storeCoins(BigInt(b.value)).storeAddress(m.parse(b.to)).storeAddress(C.address).storeUint(0,1).storeCoins(d("0.01")).storeUint(0,1).endCell();Te=r({to:m.parse(ae),value:d("0.1"),body:Ii,bounce:!0})}let Pi=C.createTransfer({seqno:K,secretKey:Buffer.from(R.secretKey),sendMode:l.PAY_GAS_SEPARATELY|l.IGNORE_ERRORS,messages:[Te]}),ji=K>0,Ci=c({to:C.address,init:ji?void 0:C.init,body:Pi});return{transaction:n().store(a(Ci)).endCell().toBoc().toString("base64")}}import Qi from"bs58";import{z as de}from"zod";var Bt=s({name:"message_sign",description:"Sign a message with a local wallet. Supports Solana (ed25519), EVM (EIP-191 personal sign), and Bitcoin (secp256k1 ECDSA).",input:de.object({wallet:de.string().describe("Wallet address or name to sign with"),chain:k.describe("Chain: solana, ethereum, base, arbitrum, or bitcoin"),message:de.string().describe("Message text to sign")}),output:de.object({signature:de.string().describe("Signature: base58 for Solana, hex (0x-prefixed) for EVM/Bitcoin")})});var O=p(Bt,async e=>{let t=S(e.wallet),i=e.chain;if(t.type==="hardware"){let o=B(t.device);await o.connect();try{return await o.signMessage(i,e.message)}finally{await o.disconnect()}}switch(f[i]){case"solana":return Zi(t.name,e.message);case"ethereum":return Xi(t.name,e.message);case"ton":return er(t.name,e.message);case"bitcoin":return tr(t.name,e.message);case"tron":return ir(t.name,e.message)}});function Zi(e,t){let i=E(e,"solana",Buffer.from(t,"utf8").toString("hex"),"hex");return{signature:Qi.encode(Buffer.from(i.signature,"hex"))}}function Xi(e,t){let i=E(e,"ethereum",t),r=i.signature.slice(0,64),o=i.signature.slice(64,128),n=(i.recoveryId??0)+27;return{signature:`0x${r}${o}${n.toString(16).padStart(2,"0")}`}}function er(e,t){return{signature:E(e,"ton",Buffer.from(t,"utf8").toString("hex"),"hex").signature}}function tr(e,t){let i=E(e,"bitcoin",Buffer.from(t,"utf8").toString("hex"),"hex"),r=i.signature.slice(0,128),o=i.recoveryId!=null?(i.recoveryId+27).toString(16).padStart(2,"0"):"1b";return{signature:`0x${r}${o}`}}function ir(e,t){let i=E(e,"tron",Buffer.from(t,"utf8").toString("hex"),"hex"),r=i.signature.slice(0,128),o=i.recoveryId!=null?(i.recoveryId+27).toString(16).padStart(2,"0"):"1b";return{signature:`0x${r}${o}`}}import rr from"https";import{z as T}from"zod";var Ot=s({name:"bitcoin_balance_retrieve",description:"Get the BTC balance of a Bitcoin address. Returns confirmed and unconfirmed balances in BTC and satoshis.",input:T.object({wallet:T.string().describe("Bitcoin address (bc1...) or wallet name")}),output:T.object({address:T.string().describe("Bitcoin address"),confirmed:T.object({btc:T.string().describe("Confirmed balance in BTC"),sats:T.number().describe("Confirmed balance in satoshis")}),unconfirmed:T.object({btc:T.string().describe("Unconfirmed (pending) balance in BTC"),sats:T.number().describe("Unconfirmed (pending) balance in satoshis")}),total:T.object({btc:T.string().describe("Total balance in BTC"),sats:T.number().describe("Total balance in satoshis")})})});var nr=1e8;function Ue(e){return(e/nr).toFixed(8)}function or(e){return new Promise((t,i)=>{rr.get(e,{headers:{"User-Agent":"moonpay-cli"}},r=>{if(r.statusCode!==200){i(new Error(`HTTP ${r.statusCode} from ${e}`)),r.resume();return}let o="";r.on("data",n=>o+=n),r.on("end",()=>{try{t(JSON.parse(o))}catch{i(new Error("Invalid JSON response"))}})}).on("error",i)})}var Lt=p(Ot,async e=>{let t=e.wallet;if(!t.startsWith("bc1")&&!t.startsWith("1")&&!t.startsWith("3")){let{findWalletOrThrow:a}=await import("./store-7AW5BFIS.js"),d=a(t).addresses.bitcoin;if(!d)throw new Error(`Wallet "${t}" has no Bitcoin address. It may be an imported single-chain wallet.`);t=d}let i=await or(`https://mempool.space/api/address/${encodeURIComponent(t)}`),r=i.chain_stats.funded_txo_sum-i.chain_stats.spent_txo_sum,o=i.mempool_stats.funded_txo_sum-i.mempool_stats.spent_txo_sum,n=r+o;return{address:t,confirmed:{btc:Ue(r),sats:r},unconfirmed:{btc:Ue(o),sats:o},total:{btc:Ue(n),sats:n}}});import{readdirSync as ar,readFileSync as Nt,existsSync as $e,mkdirSync as sr,cpSync as pr}from"fs";import{join as te,dirname as cr}from"path";import{homedir as dr}from"os";import{fileURLToPath as lr}from"url";function xe(){let e=lr(import.meta.url),t=cr(e);return te(t,"..","skills")}function ur(){return te(dr(),".claude","skills")}function Re(){let e=xe();return $e(e)?ar(e,{withFileTypes:!0}).filter(t=>t.isDirectory()&&t.name.startsWith("moonpay-")).map(t=>{let r=Nt(te(e,t.name,"SKILL.md"),"utf-8").match(/^description:\s*(.+)$/m);return{name:t.name,description:r?.[1]?.replace(/^["']|["']$/g,"")??""}}).sort((t,i)=>t.name.localeCompare(i.name)):[]}function Mt(e){if(/[/\\]|\.\./.test(e))throw new Error(`Invalid skill name: "${e}"`);let t=te(xe(),e,"SKILL.md");if(!$e(t))throw new Error(`Skill "${e}" not found. Run \`mp skill list\` to see available skills.`);return Nt(t,"utf-8")}function Ht(e,t){let i=xe(),r=t??ur(),o=Re();return sr(r,{recursive:!0}),o.map(n=>{let a=te(r,n.name);return $e(a)&&!e?{name:n.name,installed:!1}:(pr(te(i,n.name),a,{recursive:!0,force:!0}),{name:n.name,installed:!0})})}import{z as le}from"zod";var Wt=s({name:"skill_list",description:"List available AI skills for Claude Code and other agents",input:le.object({}),output:le.array(le.object({name:le.string(),description:le.string()}))});var zt=p(Wt,async()=>Re());import{z as ue}from"zod";var Vt=s({name:"skill_retrieve",description:"Get the full instructions for a specific skill",input:ue.object({name:ue.string().describe("Skill name (e.g. moonpay-swap-tokens)")}),output:ue.object({name:ue.string(),content:ue.string()})});var Ft=p(Vt,async e=>({name:e.name,content:Mt(e.name)}));import{z as V}from"zod";var Kt=s({name:"skill_install",description:"Install AI skills for Claude Code. Defaults to ~/.claude/skills/, or specify --dir for a custom location (e.g. project-local, ~/.agents/skills).",input:V.object({force:V.boolean().describe("Overwrite existing skills"),dir:V.string().nullable().describe("Target directory to install skills into (default: ~/.claude/skills/)")}),output:V.array(V.object({name:V.string(),installed:V.boolean()}))});var Gt=p(Kt,async e=>Ht(e.force,e.dir??void 0));import{encodeFunctionData as mr}from"viem";I();import{z as A}from"zod";var Yt=s({name:"token_bridge",description:"Bridge tokens across chains. Builds, signs locally, broadcasts, and registers.",input:A.object({from:A.object({wallet:A.string().describe("Local wallet name to sign with"),chain:k.describe("Source chain"),token:A.string().describe("Source token address"),amount:A.coerce.number().nullable().describe("Amount to send (exact-in). Null for exact-out.")}),to:A.object({wallet:A.string().nullable().describe("Destination wallet name or address (defaults to from wallet)"),chain:k.describe("Destination chain"),token:A.string().describe("Destination token address"),amount:A.coerce.number().nullable().describe("Amount to receive (exact-out). Null for exact-in.")})}),output:A.object({signature:A.string().describe("Transaction hash/signature"),message:A.string().describe("Human-readable bridge description")})});var yr=[{name:"approve",type:"function",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],ie=p(Yt,async e=>{if(!e.from.amount&&!e.to.amount)throw new Error("Provide either from.amount or to.amount.");let t=_(),i=await w.handler({wallet:e.from.wallet}),r=i.addresses[f[e.from.chain]];if(!r)throw new Error(`Wallet "${i.name}" has no address on ${e.from.chain}.`);let o=r;if(e.to.wallet)try{o=(await w.handler({wallet:e.to.wallet})).addresses[f[e.to.chain]]??e.to.wallet}catch{o=e.to.wallet}else e.from.chain!==e.to.chain&&(o=i.addresses[f[e.to.chain]]??r);let n={from:{wallet:r,chain:e.from.chain,token:e.from.token,amount:e.from.amount},to:{wallet:o,chain:e.to.chain,token:e.to.token,amount:e.to.amount}},a=await y(t,"swaps_transaction_build",n),c=a.transaction;if(a.requiresApproval&&"to"in c){let{to:u,chainId:g}=c,b={type:"evm",to:e.from.token,data:mr({abi:yr,functionName:"approve",args:[u,BigInt(a.amountIn.raw)]}),value:"0",chainId:g},{transaction:$}=await P.handler({wallet:i.name,chain:e.from.chain,transaction:JSON.stringify(b)}),R=await y(t,"transaction_send",{transaction:$,message:`Approve ${a.amountIn.symbol}`,chain:e.from.chain});if(!R.signature)throw new Error(`Approval failed: ${R.message}`);process.stderr.write(`Approval sent. Waiting for confirmation...
24
24
  `),await new Promise(C=>setTimeout(C,5e3)),a=await y(t,"swaps_transaction_build",n)}let d=J(a.transaction);if(a.transaction.type==="ton"){let u=JSON.parse(d);u.token=e.from.token,d=JSON.stringify(u)}let{transaction:m}=await P.handler({wallet:i.name,chain:e.from.chain,transaction:d}),l=await y(t,"transaction_send",{transaction:m,message:a.message,chain:e.from.chain});if(!l.signature)throw new Error(`Transaction send failed: ${l.message}`);try{await y(t,"transaction_register",{transactionId:a.transactionId,transactionHash:l.signature,chain:e.from.chain})}catch{}return{signature:l.signature,message:a.message}});import{z as D}from"zod";var Jt=s({name:"token_swap",description:"Swap tokens on the same chain. Builds, signs locally, broadcasts, and registers.",input:D.object({wallet:D.string().describe("Local wallet name to sign with"),chain:k.describe("Chain to swap on"),from:D.object({token:D.string().describe("Input token address (selling)"),amount:D.coerce.number().nullable().describe("Amount to sell (exact-in). Null for exact-out.")}),to:D.object({token:D.string().describe("Output token address (buying)"),amount:D.coerce.number().nullable().describe("Amount to receive (exact-out). Null for exact-in.")})}),output:D.object({signature:D.string().describe("Transaction hash/signature"),message:D.string().describe("Human-readable swap description")})});var Qt=p(Jt,async e=>ie.handler({from:{wallet:e.wallet,chain:e.chain,token:e.from.token,amount:e.from.amount},to:{wallet:null,chain:e.chain,token:e.to.token,amount:e.to.amount}}));import{z as L}from"zod";var Zt=s({name:"token_transfer",description:"Transfer tokens to another wallet on the same chain. Builds, signs locally, and broadcasts.",input:L.object({wallet:L.string().describe("Local wallet name to sign with"),chain:k.describe("Chain to transfer on"),token:L.string().describe("Token address to transfer"),amount:L.coerce.number().describe("Amount to transfer"),to:L.string().describe("Recipient wallet name or address")}),output:L.object({signature:L.string().describe("Transaction hash/signature"),message:L.string().describe("Human-readable transfer description")})});var Xt=p(Zt,async e=>ie.handler({from:{wallet:e.wallet,chain:e.chain,token:e.token,amount:e.amount},to:{wallet:e.to,chain:e.chain,token:e.token,amount:null}}));import{z as j}from"zod";var ei=s({name:"x402_request",description:"Make an HTTP request to an x402-protected endpoint. Automatically handles payment when a 402 Payment Required response is received, signing the payment transaction with the local wallet.",input:j.object({method:j.enum(["GET","POST","PUT","PATCH","DELETE"]).describe("HTTP method"),url:j.string().url().refine(e=>e.startsWith("https://"),{message:"URL must use HTTPS"}).refine(e=>{try{return!new URL(e).hostname.match(/^(localhost|127\.|10\.|172\.(1[6-9]|2\d|3[01])\.|192\.168\.|169\.254\.|0\.0\.0\.0|\[::1\])/)}catch{return!1}},{message:"URL must not target private/internal addresses"}).describe("Full HTTPS URL of the x402-protected endpoint (e.g., 'https://agents.moonpay.com/x402/upgrade')"),body:j.record(j.any()).nullable().describe("Request body (for POST, PUT, PATCH)"),params:j.record(j.any()).nullable().describe("Query parameters"),wallet:j.string().describe("Wallet name or address to pay with"),chain:j.enum(["solana","base","ethereum","arbitrum","polygon","optimism"]).nullable().describe("Chain to pay from (default: solana). Use an EVM chain like 'base' to pay with an EVM wallet.")}),output:j.object({status:j.number().describe("HTTP status code"),data:j.any().describe("Response data"),headers:j.record(j.any()).describe("Response headers")})});var hr="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",ti=`x402 payment support requires additional packages.
25
25
  Run: npm i -g @moonpay/cli --include=optional`;async function ii(){try{let[e,t,i]=await Promise.all([import("./esm-FE2LDJCN.js"),import("./client-LENSTDQC.js"),import("./esm-4JOSPTGT.js")]);return{...e,...t,...i}}catch{throw new Error(ti)}}async function gr(){try{let[e,t]=await Promise.all([import("./client-6KGPWL4L.js"),import("./esm-E5BS3UKK.js")]);return{...e,...t}}catch{throw new Error(ti)}}async function fr(e,t){let{Keypair:i,VersionedTransaction:r,VersionedMessage:o}=await import("@solana/web3.js"),{default:n}=await import("axios"),{wrapAxiosWithPayment:a,x402Client:c,ExactSvmScheme:d}=await ii(),m=i.fromSecretKey(t),l={address:e,signTransactions:async b=>b.map($=>{let R=new Uint8Array($.messageBytes),C=o.deserialize(R),ye=Object.keys($.signatures).length,K=new r(C,new Array(ye).fill(new Uint8Array(64)));K.sign([m]);let M=C.staticAccountKeys.findIndex(Ie=>Ie.toBase58()===e);if(M===-1)throw new Error(`Wallet ${e} is not a signer for this transaction`);return{[e]:K.signatures[M]}})},u=new c,g=new d(l);return u.register(hr,g),u.registerV1("solana",g),a(n.create(),u)}async function br(e,t){let{default:i}=await import("axios"),{wrapAxiosWithPayment:r,x402Client:o}=await ii(),{registerExactEvmScheme:n,toClientEvmSigner:a}=await gr(),{privateKeyToAccount:c}=await import("viem/accounts"),{createPublicClient:d,http:m}=await import("viem"),l=await import("viem/chains"),u={ethereum:l.mainnet,base:l.base,polygon:l.polygon,arbitrum:l.arbitrum,optimism:l.optimism},g=c(`0x${Buffer.from(e).toString("hex")}`),b=u[t]??l.base,$=d({chain:b,transport:m()}),R=a(g,$),C=new o;return n(C,{signer:R}),r(i.create(),C)}var je=p(ei,async({method:e,url:t,body:i,params:r,wallet:o,chain:n})=>{let a=S(o),c=n??"solana",{privateKey:d,address:m}=se(a,c),l=await(c==="solana"?fr(m,d):br(d,c)),u;switch(e){case"GET":u=await l.get(t,{params:r});break;case"POST":u=await l.post(t,i||{},{params:r});break;case"PUT":u=await l.put(t,i||{},{params:r});break;case"PATCH":u=await l.patch(t,i||{},{params:r});break;case"DELETE":u=await l.delete(t,{params:r});break;default:throw new Error(`Unsupported HTTP method: ${e}`)}return{status:u.status,data:u.data,headers:u.headers}});I();import{z as re}from"zod";var ri=s({name:"virtual-account_wallet_register",description:"Register a local wallet with your virtual account. Creates the verification message, signs it locally, and registers in one step.",input:re.object({wallet:re.string().describe("Local wallet name"),chain:k.describe("Chain to register (solana, ethereum, etc.)")}),output:re.object({success:re.literal(!0),address:re.string().describe("Registered wallet address"),chain:re.string().describe("Chain registered on")})});function _r(e,t){let i=new Date,r=`${String(i.getUTCDate()).padStart(2,"0")}/${String(i.getUTCMonth()+1).padStart(2,"0")}/${i.getUTCFullYear()}`;return`I am verifying ownership of the wallet address ${e} as customer ${t}. This message was signed on ${r} to confirm my control over this wallet.`}var ni=p(ri,async e=>{let t=_(),i=e.chain,[r,o]=await Promise.all([w.handler({wallet:e.wallet}),y(t,"virtual-account_retrieve",{})]),n=f[i],a=r.addresses[n];if(!a)throw new Error(`Wallet "${r.name}" has no ${n} address.`);let c=_r(a,o.id),{signature:d}=await O.handler({wallet:r.name,chain:i,message:c});return await y(t,"virtual-account_wallet_register",{wallet:a,message:c,signature:d,chain:i}),{success:!0,address:a,chain:i}});I();import{z as F}from"zod";var oi=s({name:"virtual-account_offramp_initiate",description:"Send stablecoin to an approved offramp. Builds the transfer, signs locally, and broadcasts.",input:F.object({wallet:F.string().describe("Local wallet name to sign with"),offrampId:F.string().describe("The ID of the approved offramp"),amount:F.coerce.number().describe("Amount of stablecoin to send")}),output:F.object({signature:F.string().describe("Transaction hash/signature"),message:F.string().describe("Human-readable transfer description")})});var kr={Solana:"solana",Ethereum:"ethereum",Polygon:"polygon",Base:"base",Arbitrum:"arbitrum"},ai=p(oi,async e=>{let t=_(),i=await w.handler({wallet:e.wallet}),o=(await y(t,"virtual-account_offramp_retrieve",{offrampId:e.offrampId})).source_currencies[0];if(!o||o.type!=="Crypto")throw new Error("Offramp does not have a valid crypto source currency.");let n=kr[o.blockchain];if(!n)throw new Error(`Unsupported blockchain "${o.blockchain}".`);let a=i.addresses[f[n]];if(!a)throw new Error(`Wallet "${i.name}" has no address on ${n}.`);let c=await y(t,"virtual-account_offramp_initiate",{wallet:a,offrampId:e.offrampId,amount:e.amount}),d=J(c.transaction),{transaction:m}=await P.handler({wallet:i.name,chain:n,transaction:d}),l=await y(t,"transaction_send",{transaction:m,message:c.message,chain:n});if(!l.signature)throw new Error(`Transaction send failed: ${l.message}`);return{signature:l.signature,message:c.message}});I();import{z as me}from"zod";var si=s({name:"login",description:"Generate a sign-in link. Open it in a browser to get a verification code, then use `mp verify` to complete login.",input:me.object({email:me.string().describe("Email address")}),output:me.object({email:me.string(),message:me.string()})});var pi=p(si,async e=>{let{baseUrl:t}=ge(),i=`${t}/login?email=${encodeURIComponent(e.email)}`;return{email:e.email,message:`Open this link to verify:
26
26