Build swap transaction (non-custodial)
ellimist.trade/v1/skills/exchange.build_swap
Build swap transaction (non-custodial): Unsigned approval + swap transactions for the best route. Your agent signs and broadcasts from its own wallet; Ellimist never takes custody. Conversions are executed by third-party smart contracts (routed by LI.FI) that may fail or be exploited; funds may be l
POST
https://ellimist.trade/v1/skills/exchange.build_swapUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ellimist.trade/v1/skills/exchange.build_swap", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"from_address":"0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB","from_amount":"100000000","from_chain":"base","from_token":"USDC","to_chain":"arbitrum","to_token":"ETH"}),
});
console.log(await res.json());Example input
{
"from_address": "0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB",
"from_amount": "100000000",
"from_chain": "base",
"from_token": "USDC",
"to_chain": "arbitrum",
"to_token": "ETH"
}More from EllimistProvider status
- ellimist.trade/v1/skills/data.attest.snapshotSigned point-in-time snapshot: Signed statement of the value Ellimist recorded at or just before time T: Aave USDC rates, native USDC supply or the Treasury curve. For backtests, audits and disputes.0.01
- ellimist.trade/v1/skills/data.chain.accountAccount snapshot: Use this to know everything basic about a wallet in one call: native and USDC balances (plus up to 5 tokens you name), nonce, whether it is a contract or an EIP-7702 delegated account, whether its public key is already revealed on this chain (quantum exposure), contract details (co0.01
- ellimist.trade/v1/skills/data.chain.erc20_transfersERC-20 transfers: Use this to list recent ERC-20 Transfer events for a token, optionally only those to or from one address (up to 2,000 recent blocks): incoming/outgoing payments, flows.0.005
- ellimist.trade/v1/skills/data.defi.aave_ratesAave V3 USDC rates: Use this to get the current USDC lending (supply) APR and variable borrow APR on Aave V3 (Base or Ethereum), read from the Aave pool contract at a finalized block.0.005
- ellimist.trade/v1/skills/data.defi.yield_vs_tbillDeFi yield vs T-bill: Use this to compare parking USDC on Aave V3 with a 3-month U.S. Treasury bill right now: Aave's supply APR and APY, the T-bill yield, and the spread in basis points, with both source dates. Data comparison, not advice; Aave carries smart-contract risk a T-bill does not.0.01
- ellimist.trade/v1/skills/data.macro.blsBLS series: Use this to get U.S. Bureau of Labor Statistics series: CPI inflation, unemployment rate, payrolls, wages and other BLS series IDs (e.g. CUUR0000SA0, LNS14000000). Official public-domain data.0.005
- ellimist.trade/v1/skills/data.macro.recession_signalsRecession signals: Use this to answer 'are recession signals on?' in one call: Treasury yield-curve inversion (10y-2y and 10y-3m), the Sahm rule from BLS unemployment, and real 10-year and 3-month rates after CPI inflation. Each with its official source date. Data, not advice.0.01
- ellimist.trade/v1/skills/data.macro.treasury_curveU.S. Treasury par yield curve: Use this to get the U.S. Treasury par yield curve (1-month to 30-year yields) by day, with 10y-2y and 10y-3m spreads for recession and rates signals. Official data.0.005
- ellimist.trade/v1/skills/data.risk.ofacOFAC SDN wallet lookup: Use this to check whether a wallet address appears on the official U.S. Treasury OFAC SDN list before a payment. Pass address for the latest list or add at (UTC timestamp) for a historical check within Ellimist's coverage. Read listed in the signed result.0.005
- ellimist.trade/v1/skills/exchange.quoteSwap / bridge quote: Best route to convert any token to any token across chains: output, minimum output, fees, gas, time; with 'alternatives', other routes to compare. Sanctions-screened. Ellimist fee: 0.25% of volume, at least $0.05 and never more than 1%. Conversions are executed by third-party sm0.005
- ellimist.trade/v1/skills/quantum.exposure_indexQuantum exposure index: Use this to see how much tracked ETH sits in addresses whose public key is already revealed, and so would be exposed to a future quantum computer: daily index with history, shares of tracked balance (revealed, hidden, contract), counts and coverage. Aggregate only; no address0.01
- ellimist.trade/v1/skills/quantum.portfolio.index_trackingIndex tracking with K assets: Use this to pick K assets and weights that track an index with minimal tracking error, from your own asset and index return series.0.05
