Queries

associated-evm-key

The EVM address associated with a neuron (by netuid + uid) and the block it was set.

View as Markdown

Category: Neurons & registration

Parameters

ParameterTypeDescription
netuidintegerSubnet the neuron is registered on.
uidintegerUID of the neuron on that subnet.

CLI

btcli query associated-evm-key --netuid <integer> --uid <integer> --json

Python

Typed namespace method (autocomplete, signature help):

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.neurons.associated_evm_key(netuid=1, uid=1)

Or dispatch by name, as an agent would:

result = await client.read("associated_evm_key", netuid=1, uid=1)