For the complete documentation index, see llms.txt. This page is also available as Markdown.

STELLAR_TX_HOST_FN_NOT_ALLOWED

Only invokeContract host functions may be submitted here.

422 Validation Error · request handling

Example

{
  "type": "https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/errors/stellar-tx-host-fn-not-allowed",
  "title": "Validation Error",
  "status": 422,
  "code": "STELLAR_TX_HOST_FN_NOT_ALLOWED",
  "detail": "Only invokeContract host functions may be submitted here.",
  "instance": "/…",
  "traceId": "…"
}

When it happens

The host function is not an allowed contract invocation (e.g. uploadWasm/createContract).

How to fix it

Only submit transactions built by this API.