dag_withdrawDelegatedStake

Withdraws a delegated stake

Parameters

Name
Type
Description

Data

Object<WithdrawDelegatedStake>

The withdraw delegated stake object.

WithdrawDelegatedStake

type WithdrawDelegatedStake = {

  source: string;      // Wallet address signing the transaction

  stakeRef: string;    // Reference to the delegated stake transaction
                       // Must be a valid delegated stake transaction hash

};

Return Type

String<Hash> - The hash of the withdraw delegated stake transaction.

Example

await provider.request({
  method: "dag_withdrawDelegatedStake",
  params: [ 
    { 
        source: 'DAG5sz69nNwGF8ypn1yukFpg2pVJpdx5mnf1PJVc',
        stakeRef: '6c6ced4c67c931e71ecbe4bbf73462c1fe51522888620683e94faf7930a989da',
    }
  ]
});
// "e041960eaea9d21760dc1c291e9ef96429e4cdbbeec2ffd504d4c2ebcc8cad45"

Last updated

Was this helpful?