74trust / 100
Swap Quote
by HyperNatt Terminal in Onchain & crypto
x402 APIPassing, checked 15 min ago
NattSwap cross-chain swap quote (Li.Fi)
GET https://hypernatt.com/api/m2m/swap/quote
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 66.7%
- Response time
- 189 ms typical, 189 ms slowest 5%
- Last check
- 15 min ago
- Next check
- in 17 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://hypernatt.com/api/m2m/swap/quote?fromAddress=0x0000000000000000000000000000000000000001&fromAmount=1000000&fromChain=8453&fromToken=USDC&toAddress=0x0000000000000000000000000000000000000001&toChain=42161&toToken=USDC"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhypernatt.com%2Fapi%2Fm2m%2Fswap%2Fquote
const res = await pay("https://hypernatt.com/api/m2m/swap/quote?fromAddress=0x0000000000000000000000000000000000000001&fromAmount=1000000&fromChain=8453&fromToken=USDC&toAddress=0x0000000000000000000000000000000000000001&toChain=42161&toToken=USDC");
console.log(await res.json());Example input
{
"fromAddress": "0x0000000000000000000000000000000000000001",
"fromAmount": "1000000",
"fromChain": "8453",
"fromToken": "USDC",
"toAddress": "0x0000000000000000000000000000000000000001",
"toChain": "42161",
"toToken": "USDC"
}Example output
{
"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/DIALLOUBERESEARCH/hypernatt-terminal/blob/main/docs/swap-agentkit.md"
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 15 min ago | Passed | 402 | 348 ms | $0.001 |
| 3 h ago | Timed out | - | - | - |
| 9 h ago | Passed | 402 | 189 ms | $0.001 |