4

I am trying to query a node:

curl http://my.node.addr:14265 \
>   -X  POST \
>   -H 'Content-Type: application/json' \
>   -H 'X-IOTA-API-Version:  1' \
>   -d '{"command": "getNodeInfo"}'

But it returns:

{"error":"COMMAND getNodeInfo is not available on this node","duration":0}

The API port is obviously bound; why can I not run any commands against it?

7

This occurs when you launch the full node with the --remote-limit-api flag and disallow the use of certain commands. Normally it is used to disallow access to attachToTangle, but the same could happen with getNodeInfo too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.