Skip to main content

CHAIN_ID_MISMATCH

The transaction was signed for a different network than this host serves.

HTTP status400
GroupRelay path
RetryableNo — sending it again changes nothing
Re-signNONE — do not ask the user to sign anything

What happened​

The chainID inside the signed transaction is not the chain id of this API host. Mainnet is 1, devnet staging is D.

What to do​

Rebuild the transaction with the chain id from GET /v1/network on the host you are calling, and sign it again.

The problem document​

Every error is application/problem+json (RFC 9457) with the same shape:

{
"type": "https://docs.co-relayer.com/errors/chain-id-mismatch",
"title": "The transaction was signed for a different network than this host serves.",
"status": 400,
"detail": "A sentence about this specific occurrence.",
"instance": "req_01JB…",
"code": "CHAIN_ID_MISMATCH",
"retryable": false,
"resign": "NONE",
"hint": "Rebuild the transaction with the chain id from `GET /v1/network` on the host you are calling, and sign it again."
}

See the error model for what each member means and how to handle unknown codes.