0x0000000000000000000000000000000000000802
Read-only view of a subnet's metagraph: UID count and per-UID fields (hotkey, coldkey, stake, emission, rank, trust, consensus, incentive, dividends, axon, activity) from SubtensorModule storage.
Written from precompiles/src/metagraph.rs (github.com, opens in a new tab, external site) at c004cebf3 (runtime 471)
Retired functions stay listed so older calls still decode.
getAxon(uint16,uint16)view0x93afb79eRetrieves the axon information of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the axon information.uid (uint16) The unique identifier for which to retrieve the axon information.Returns
return (tuple(uint64 block, uint32 version, uint128 ip, uint16 port, uint8 ip_type, uint8 protocol)) The axon information of the node with the specified netuid and uid.getColdkey(uint16,uint16)view0xa1148287Retrieves the coldkey of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the coldkey.uid (uint16) The unique identifier for which to retrieve the coldkey.Returns
return (bytes32) The coldkey of the node with the specified netuid and uid.getConsensus(uint16,uint16)view0x2c4b6bffRetrieves the consensus value of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the consensus value.uid (uint16) The unique identifier for which to retrieve the consensus value.Returns
return (uint16) The consensus value of the node with the specified netuid and uid.getDividends(uint16,uint16)view0x82da0b5dRetrieves the dividend value of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the dividend value.uid (uint16) The unique identifier for which to retrieve the dividend value.Returns
return (uint16) The dividend value of the node with the specified netuid and uid.getEmission(uint16,uint16)view0xe5810e5cRetrieves the emission value of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the emission value.uid (uint16) The unique identifier for which to retrieve the emission value.Returns
return (uint64) The emission value of the node with the specified netuid and uid.getHotkey(uint16,uint16)view0x3adc89daRetrieves the hotkey of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the hotkey.uid (uint16) The unique identifier for which to retrieve the hotkey.Returns
return (bytes32) The hotkey of the node with the specified netuid and uid.getIncentive(uint16,uint16)view0xd1e44450Retrieves the incentive value of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the incentive value.uid (uint16) The unique identifier for which to retrieve the incentive value.Returns
return (uint16) The incentive value of the node with the specified netuid and uid.getIsActive(uint16,uint16)view0xdc50cca9Checks if a node with a given network identifier (netuid) and unique identifier (uid) is active.
Parameters
netuid (uint16) The network identifier for which to check the node's activity.uid (uint16) The unique identifier for which to check the node's activity.Returns
return (bool) Returns true if the node is active, false otherwise.getLastUpdate(uint16,uint16)view0x22553aa2Retrieves the last update timestamp of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the last update timestamp.uid (uint16) The unique identifier for which to retrieve the last update timestamp.Returns
return (uint64) The last update timestamp of the node with the specified netuid and uid.getRank(uint16,uint16)view0x260ea334Retrieves the rank of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the rank.uid (uint16) The unique identifier for which to retrieve the rank.Returns
return (uint16) The rank of the node with the specified netuid and uid.getStake(uint16,uint16)view0xe7c7c4b5Retrieves the stake amount associated with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the stake.uid (uint16) The unique identifier for which to retrieve the stake.Returns
return (uint64) The stake amount associated with the specified netuid and uid.getTrust(uint16,uint16)view0x20028c19Retrieves the trust value of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the trust value.uid (uint16) The unique identifier for which to retrieve the trust value.Returns
return (uint16) The trust value of the node with the specified netuid and uid.getUidCount(uint16)view0x1f193572Returns the count of unique identifiers (UIDs) associated with a given network identifier (netuid).
Parameters
netuid (uint16) The network identifier for which to retrieve the UID count.Returns
return (uint16) The count of UIDs associated with the specified netuid.getValidatorStatus(uint16,uint16)view0x58dd9945Checks the validator status of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to check the validator status.uid (uint16) The unique identifier for which to check the validator status.Returns
return (bool) Returns true if the node is a validator, false otherwise.getVtrust(uint16,uint16)view0x2c54e2b3Retrieves the v-trust value of a node with a given network identifier (netuid) and unique identifier (uid).
Parameters
netuid (uint16) The network identifier for which to retrieve the v-trust value.uid (uint16) The unique identifier for which to retrieve the v-trust value.Returns
return (uint16) The v-trust value of the node with the specified netuid and uid.Data: precompile-abis.v473. Runtime ranges are the spec versions on subtensor’s main branch when an entry first and last appeared, not the block it went live on chain.