/api/status— Core statusLive RPC head, chain-id match, adapter venues and router verification, explorer/indexer configuration.
- chainId
- optional · default 4663
curl 'https://www.zirg.tech/api/status?chainId=4663'
The same engine that powers the terminal, exposed as JSON. Every response is read from RPC, registered pools, or a named indexer at the block it reports. Keys, if any, stay on the server.
/api/status— Core statusLive RPC head, chain-id match, adapter venues and router verification, explorer/indexer configuration.
curl 'https://www.zirg.tech/api/status?chainId=4663'
/api/market/:chain/:token— Market inspectorEvery registered pool for an asset, USD-referenced depth, simulated depth ladder, verdict with reasons, contract status and provenance.
curl 'https://www.zirg.tech/api/market/4663/0x0bd7d308f8e1639fab988df18a8011f41eacad73?sizes=100,1000,10000'
/api/pool/:chain/:address— Pool stateRaw state of one pool (token0/token1, reserves or balances, slot0/liquidity for V3, prices) plus its market view when a quote token is on one side.
curl 'https://www.zirg.tech/api/pool/4663/0x52e65b17fb6e5ba00ed806f37afcd2daa50271ca'
/api/markets/:chain— Market universeEvery catalogued market — quote tokens, the official tokenized-stock registry (re-verified on chain), and ecosystem launchpad tokens — read in one batched pass: price, USD-referenced depth, pool count, best venue and a depth class. Cached 60 s; a cold read takes ~15 s.
curl 'https://www.zirg.tech/api/markets/4663'
/api/quote— Quote (best executable route)Direct + two-hop routes across every registered venue, quoted with the pool math at the current block. Returns the best executable route and every candidate. Pass recipient to receive calldata and a wallet-specific gas estimate.
curl 'https://www.zirg.tech/api/quote?chainId=4663&tokenIn=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&tokenOut=0x5fc5360d0400a0fd4f2af552add042d716f1d168&amountIn=1&slippageBps=50'
/api/routes— Route comparisonSame inputs as /api/quote; returns every candidate ranked with output, gas, impact, depth, confidence and hop count.
curl 'https://www.zirg.tech/api/routes?chainId=4663&tokenIn=0x5fc5360d0400a0fd4f2af552add042d716f1d168&tokenOut=0x0bd7d308f8e1639fab988df18a8011f41eacad73&amountIn=1000'
/api/contract/:chain/:address— Contract readerBytecode presence and size, ERC-20 metadata, owner() if exposed, EIP-1967/1822 proxy implementation, explorer verification. Optional holder/spender for balanceOf and allowance.
curl 'https://www.zirg.tech/api/contract/4663/0x5fc5360d0400a0fd4f2af552add042d716f1d168'
/api/contract/read— Safe read callOne view/pure call by human-readable signature via eth_call. Payable / nonpayable signatures are refused. Nothing is ever signed server-side.
curl -X POST 'https://www.zirg.tech/api/contract/read' \
-H 'content-type: application/json' \
-d '{"chainId":4663,"address":"0x5fc5360d0400a0fd4f2af552add042d716f1d168","signature":"balanceOf(address) returns (uint256)","args":["0x52e65b17fb6e5ba00ed806f37afcd2daa50271ca"]}'/api/tokens/:chain— Token registry / resolveThe verified token catalog (quotes, tokenized stocks from the official registry, ecosystem launchpad tokens), or resolve a query: address → on-chain metadata, ticker/name/project → catalog, otherwise explorer search.
curl 'https://www.zirg.tech/api/tokens/4663?q=USDG'
/api/rpc/:chain— Read-only JSON-RPC relaySame-origin relay used by the browser wallet client. Only read methods (eth_call, eth_getBalance, eth_estimateGas, eth_getTransactionReceipt, …) are forwarded; batches up to 50.
curl -X POST 'https://www.zirg.tech/api/rpc/4663' \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'{ error: { code, title, message, status } }. Codes: RPC_UNAVAILABLE · RPC_ERROR · WRONG_CHAIN · UNSUPPORTED_CHAIN · UNSUPPORTED_MARKET · NO_VERIFIED_MARKET · NO_ROUTE · ROUTE_REJECTED · INVALID_INPUT · NOT_A_CONTRACT · EXPLORER_UNAVAILABLE · RATE_LIMITED. Responses are never cached across blocks; every payload carries blockNumber and fetchedAt.