Skip to content

Troubleshooting

Connection

SymptomCause
Wrong chain IDMetaMask needs the hex form, 0xbc1, not 3009
Cannot reach the RPCCheck https://rpc.testnet.kriptonyx.com. Hosts without testnet are not in service
Balance reads zeroFund from the faucet, and check you are on chain 3009
Gas price estimates zeroExpected. The minimum gas price is 0aknyx

Transactions

ErrorCause
insufficient fundsBalance below value plus gas
nonce too lowA transaction with that nonce already landed
replacement transaction underpricedReplacing a pending transaction needs a higher price
execution revertedThe contract rejected the call. Read the reason string
Gas estimation failsThe call would revert. Estimation simulates first — fix the revert, do not raise the limit

AMM

ErrorCause
INSUFFICIENT_OUTPUT_AMOUNTSlippage bound too tight, or the price moved. Re-quote with getAmountsOut
INSUFFICIENT_INPUT_AMOUNTInput is zero, or below what the pool accepts
TRANSFER_FROM_FAILEDThe router has no allowance. Approve the token first
EXPIREDThe deadline passed before the transaction mined
INSUFFICIENT_LIQUIDITYThe pool cannot fill a trade that size
Output is wrong by ~0.1%You assumed a 0.3% fee. It is 0.2%998/1000
getPair returns the zero addressThe pair does not exist yet
Locally computed pair address is wrongWrong INIT_CODE_PAIR_HASH. Take it from the deployed factory
massUpdatePools revertsA farm pool's pair does not exist on chain — see Yield farming
Farm rewards read zeroKNP is not funded yet

APIs

SymptomCause
Every error looks like a network failureThe body is being parsed before the status is checked. See Errors
401 from the Platform REST APIPassword missing, or wallet-level auth required where user-level was supplied
401 with no detailDeliberate. Failures do not reveal whether an account exists
429Rate limited. Check the RateLimit-* headers
503The feature is not configured on this deployment
Log query failsMore than 10,000 blocks requested. Use the chain data API

Webhooks

SymptomCause
Nothing arrivesEndpoint not returning 2xx within 10 s, subscription inactive, or the event filter excludes it
Signature never matchesHashing re-serialised JSON rather than the raw body. See Webhooks
Events arrive twiceExpected. Delivery is at-least-once — deduplicate on X-Bridge-Delivery
Stopped after a whileAttempts exhausted, or the subscription was auto-disabled after repeated failures
503 on subscription routesNo admin token configured. The routes refuse rather than run unauthenticated

Check delivery history first — it records the status, error and attempt count for every attempt:

bash
curl -s -H "Authorization: Bearer $BRIDGE_ADMIN_TOKEN" \
  "https://bridge.testnet.kriptonyx.com/api/webhook/subscriptions/<id>/deliveries?failed=true"

Bridge

SymptomCause
Deposit not detectedWrong asset or wrong chain for that deposit address, or sent after expiry
Status stuck at pending_depositThe monitor polls every 20 seconds; if longer, the deposit did not arrive where expected
failed with insufficient fundsThe payout wallet lacked gas or reserves on the target chain
Funds not refundedNo refund_address was supplied

WebSocket

SymptomCause
Connection closes after ~60 sNo heartbeat. Phoenix closes idle sockets
Missed events after a dropReconcile with GET /api/swap/:id/events or the chain data API
Address topic silentAddress topics use the lowercase form

Amounts

SymptomCause
Value off by orders of magnitudeMixing base units and display units. See KNYX and denominations
Large balance slightly wrongNumber used instead of BigInt. Precision is lost above 253
Token amount wrongAssumed 18 decimals. Read decimals() — bridged USDT uses 6, BTC uses 8

Still stuck

Every state transition is recorded on chain or in the API. Quote the transaction hash, the swap ID or the subscription ID — that is what makes a problem diagnosable.

KriptoNyx testnet — chain ID 3009 (kriptonyx_3009-1)