# dag\_withdrawDelegatedStake

Withdraws a delegated stake

**Parameters**

<table><thead><tr><th width="85.03125">Name</th><th width="300.98046875">Type</th><th>Description</th></tr></thead><tbody><tr><td>Data</td><td><code>Object&#x3C;WithdrawDelegatedStake></code></td><td>The withdraw delegated stake object.</td></tr></tbody></table>

`WithdrawDelegatedStake`

<pre class="language-typescript"><code class="lang-typescript">type WithdrawDelegatedStake = {

  source: string;      // Wallet address signing the transaction

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

};
</code></pre>

**Return Type**

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

**Example**

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