Skip to content

Which API to use

The platform exposes five HTTP APIs. Picking the right one is mostly a question of who holds the keys and what you are reading.

APIBase URLPurposeAuth
Chain datahttps://api.testnet.kriptonyx.com/api/v2Blocks, transactions, addresses, tokens, logsNone
Platform RESThttps://endpoint.testnet.kriptonyx.comManaged wallets, tokens, pools, swapsPassword
Bridgehttps://bridge.testnet.kriptonyx.com/apiCross-chain swaps, webhooksNone / bearer
ICOhttps://ico.testnet.kriptonyx.com/apiLaunchpadWallet signature → JWT
Explorer serviceshttps://explorer.testnet.kriptonyx.com/apiAccounts, watchlists, DeFi dataBearer JWT

Choosing

Reading chain state. Use the chain data API for anything historical — it is indexed, so a query that would take thousands of JSON-RPC calls takes one. Use JSON-RPC directly for current state and for eth_call.

Signing your own transactions. Use JSON-RPC with ethers.js or viem. Your users keep their keys. This is the right default for anything user-facing.

Letting the platform hold keys. Use the Platform REST API. It stores an encrypted key per wallet and signs for you, authenticated by a password. Convenient for server-side integrations where there is no user wallet to prompt.

Moving assets across chains. Use the bridge API.

Reacting to events. Use WebSocket in a browser and webhooks on a server.

Common conventions

All five APIs speak JSON over HTTPS. Response shapes differ — the chain data API returns resources directly, the Platform REST API wraps everything in a { success, data } envelope — so see Errors and conventions.

Rate limits

The chain data API and the bridge API are not rate limited for normal use. The explorer services API limits authentication and public forms; see Explorer services API.

Be reasonable regardless: paginate rather than requesting everything, and cache what does not change.

KriptoNyx testnet — chain ID 3009 (kriptonyx_3009-1)