Loading
Loading
0x0000000000000000000000000000000000000801
Original staking interface: adds or removes stake on a hotkey from the caller's mapped coldkey (SubtensorModule::add_stake / remove_stake), adds or removes a proxy (Proxy::add_proxy / remove_proxy), and reads stake totals.
Written from precompiles/src/staking.rs (github.com, opens in a new tab, external site) at c004cebf3 (runtime 471) · INDEX 2049
9 in total, 7 live, 9 documented. Retired functions stay listed so older calls still decode.
| Signature | Selector | Mutability | Runtime |
|---|---|---|---|
addProxy(bytes32) | Selector 0xc10d08eb | Mutability nonpayable | Since runtime 233 |
Delegates staking to a proxy account. Parameters
| |||
addStake(bytes32,uint256) | Selector 0xc84654a8 | Mutability payable | Since runtime 233 |
Adds a subtensor stake corresponding to the value sent with the transaction, associated with the `hotkey`. This function allows external accounts and contracts to stake TAO into the subtensor pallet, which effectively calls `add_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed. Parameters
| |||
getStake(bytes32,bytes32,uint256) | Selector 0xe3b598fa | Mutability view | Since runtime 233 |
Returns the stake amount associated with the specified `hotkey` and `coldkey`. This function retrieves the current stake amount linked to a specific hotkey and coldkey pair. It is a view function, meaning it does not modify the state of the contract and is free to call. Parameters
Returns
| |||
getTotalColdkeyStake(bytes32) | Selector 0x998538c4 | Mutability view | Since runtime 252 |
Returns the amount of RAO staked by the coldkey. This function allows external accounts and contracts to query the amount of RAO staked by the coldkey which effectively calls `get_total_coldkey_stake` on the subtensor pallet with specified coldkey as a parameter. Parameters
Returns
| |||
getTotalHotkeyStake(bytes32) | Selector 0x9f246f6f | Mutability view | Since runtime 252 |
Returns the total amount of stake under a hotkey (delegative or otherwise) This function allows external accounts and contracts to query the total amount of RAO staked under a hotkey which effectively calls `get_total_hotkey_stake` on the subtensor pallet with specified hotkey as a parameter. Parameters
Returns
| |||
removeProxy(bytes32) | Selector 0x65ed5bb5 | Mutability nonpayable | Since runtime 233 |
Removes staking proxy account. Parameters
| |||
removeStake(bytes32,uint256,uint256) | Selector 0x7d691e30 | Mutability nonpayable | Since runtime 233 |
Removes a subtensor stake `amount` from the specified `hotkey`. This function allows external accounts and contracts to unstake TAO from the subtensor pallet, which effectively calls `remove_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed. - The existing stake amount must be not lower than specified amount Parameters
| |||
addStake(bytes32,uint16)Retired | Selector 0xb6b11efd | Mutability payable | Runtime 210–216 |
Adds a subtensor stake corresponding to the value sent with the transaction, associated with the `hotkey`. This function allows external accounts and contracts to stake TAO into the subtensor pallet, which effectively calls `add_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed. Parameters
| |||
removeStake(bytes32,uint256,uint16)Retired | Selector 0x0636c28b | Mutability payable | Runtime 210–216 |
Removes a subtensor stake `amount` from the specified `hotkey`. This function allows external accounts and contracts to unstake TAO from the subtensor pallet, which effectively calls `remove_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed. - The existing stake amount must be not lower than specified amount Parameters
| |||
Data: precompile-abis/v471-summaries, subtensor c004cebf3 (github.com, opens in a new tab, external site) (runtime 471). 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.