AssociatedEvmAddress

Storage Map v261 → current

EVM address associated with a neuron position.

Explore chain
Queried by: developerswallets

The Big Picture

Bridges the gap between Substrate accounts and EVM addresses. Neurons can prove ownership of an EVM address, enabling cross-chain features and EVM-based access to Bittensor functionality.

Use Cases

  • Find EVM address for a neuron
  • Build cross-chain identity tools
  • Link EVM and Substrate accounts

From Chain Metadata

============================= ==== EVM related storage ==== ============================= DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)

Purpose & Usage

Purpose

Link Substrate neuron UIDs to EVM addresses for cross-chain identity.

Common Query Patterns

  • Query by (netuid, uid)

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)
2
key2
u16 key2 (u16)

Stored Value

Value in RAO (÷10⁹ for TAO)

Relationships

Modified By

Related Events

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query AssociatedEvmAddress storage
const key1 = 0;
const key2 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("AssociatedEvmAddress")](
  key1,
  key2
);

console.log("AssociatedEvmAddress:", result.toHuman());

On-Chain Activity

Write Frequency
●●○○○○ Minimal <10K est. writes

<10K estimated writes

#59 most written storage item

Write Source User Extrinsics

Modified via user-submitted extrinsics

As of block 7,429,232

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v261
Current Version
v393