Testnet Tensor
  • Introduction
  • Explorer
  • GPT
  • DSN Dashboard
  • Create Account
    • Wallet
    • CLI
    • Faucet
  • Hypertensor CLI
    • Hypertensor CLI
  • Run A Subnet Node
    • Getting Started
    • Wiki
      • Running on AMD GPU
      • Running on Windows Using WSL
      • Troubleshooting
    • Generate Keypair
    • Register & Stake
    • Add
    • Start Validator Node
    • Start Bootstrap Node
    • Activate
    • Update Delegate Reward Rate
    • Deactivate
    • Remove
    • Keys
  • Delegate Staking
    • Introduction
    • Add Delegate Stake
    • Transfer Delegate Stake
    • Remove Delegate Stake
    • Claim Delegate Stake
  • Node Delegate Staking
    • Introduction
    • Add Node Delegate Stake
    • Transfer Node Delegate Stake
    • Remove Node Delegate Stake
    • Claim Node Delegate Stake
  • Delegate Staking Utils
    • Introduction
    • Subnet to Node
    • Node to Subnet
  • Build a Subnet
    • Introduction
    • DSN Standard
    • Subnet Consensus Protocol (SCP)
      • Incentives
      • Accounting
      • Proposals
    • Subnet
      • Registration
      • Activation
      • Deactivation
    • Subnet Nodes
      • Registration
      • Activation
      • Deactivate
  • Contribute
Powered by GitBook
On this page
  • Explorer
  • Substrate Libraries
  1. Node Delegate Staking

Add Node Delegate Stake

Add and increase delegate stake

PreviousIntroductionNextTransfer Node Delegate Stake

Last updated 1 month ago

Explorer

  1. Select the submit the following extrinsic and choose network in the .

  2. Choose addToNodeDelegateStake(subnetId, stakeToBeAdded).

    • Choose the subnet ID of your choosing and the amount to delegate stake.

    • Choose the subnet node ID of your choosing.

    • Submit transaction.


Substrate Libraries

keypair = Keypair.create_from_uri('//Alice') # replace with your mnemonic phrase

call = substrate.compose_call(
  call_module='Network',
  call_function='add_to_node_delegate_stake',
  call_params={
    'subnet_id': subnet_id,
    'subnet_node_id': subnet_node_id,
    'stake_to_be_added': stake_to_be_added,
  }
)

extrinsic = substrate.create_signed_extrinsic(call=call, keypair=keypair)

receipt = substrate.submit_extrinsic(extrinsic, wait_for_inclusion=True)
const api = await ApiPromise.create();

// Construct the keyring after the API (crypto has an async init)
const keyring = new Keyring({ type: 'sr25519' });

// Replace //Alice with your mnemonic phrase
const keypair = keyring.addFromUri('//Alice');

const subnetId = 1;
const stakeToBeAdded = 100;

const extrinsic = api.tx.network.addToNodeDelegateStake(
    subnetId, 
    subnetNodeId,
    stakeToBeAdded 
);

const hash = await extrinsic.signAndSend(keypair);

explorer