# 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"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.constellationnetwork.io/stargazer-wallet/constellation-rpc-api/dag_withdrawdelegatedstake.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
