H

HyperNatt Terminal · Swap Quote

by HyperNatt Terminal

GETBaseSolana

$0.001

per call · USD Coin on Base

NattSwap cross-chain swap quote (Li.Fi)

Endpoint

GET https://hypernatt.com/api/m2m/swap/quote

5

Calls / 30d

3

Unique payers / 30d

Sep 3

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://hypernatt.com/api/m2m/swap/quote", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://hypernatt.com/api/m2m/swap/quote?fromAddress=0x0000000000000000000000000000000000000001&fromAmount=1000000&fromChain=8453&fromToken=USDC&toAddress=0x0000000000000000000000000000000000000001&toChain=42161&toToken=USDC" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "execution_readiness": {
    "can_execute": true,
    "next_step": {
      "message": "Call swap_via_nattswap MCP tool to get execution instructions"
    },
    "signer_match": true
  },
  "quote": {
    "estimatedDurationSeconds": 60,
    "fromAmount": "1000000",
    "toAmount": "997500",
    "tool": "lifi"
  },
  "success": true,
  "wallet_onboarding_v1": {
    "doc_url": "https://github.com/DIALLOUBE-RESEARCH/hypernatt-terminal/blob/main/docs/swap-agentkit.md"
  }
}

Payment details

Pay to0x5a78ace5dd133316c8aaf7e156fbfc57e1209cf9
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from HyperNatt Terminal & similar services