Errors/Chain errors

MechanismDoesNotExist

Use an existing netuid; `btcli subnets list` shows valid ones

View as Markdown

The target subnet or its sub-mechanism does not exist: the netuid is unknown, the mechanism index is at or above MechanismCountCurrent, or a non-dynamic mechid was requested. Check the netuid with btcli subnets list and the mechanism count for that subnet.

Declared by the SubtensorModule, Swap pallets; it classifies to the semantic code subnet_not_exists.

Remediation

Use an existing netuid; btcli subnets list shows valid ones

The same explanation is available in the terminal: btcli explain MechanismDoesNotExist.