# checkDelegateForAll

**checkDelegateForAll**( `to`: <mark style="color:blue;">string</mark>, `from`: <mark style="color:blue;">string</mark>, `rights?`: <mark style="color:blue;">string</mark> ) ⇒ Promise< <mark style="color:blue;">boolean</mark> >

&#x20;       Returns `true` if delegate is granted to act on the from's behalf

<table data-header-hidden><thead><tr><th width="125"></th><th></th></tr></thead><tbody><tr><td><strong>to</strong></td><td>The delegated address to check</td></tr><tr><td><strong>from</strong></td><td>The potential address who delegated rights</td></tr><tr><td><strong>rights</strong> <em>(optional)</em></td><td>Specific rights to check for, pass nothing to ignore subdelegations and check full delegations only</td></tr></tbody></table>

#### Usage Example

<pre class="language-javascript"><code class="lang-javascript">const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const isDelegateForAll = await v2.checkDelegateForAll(to, from);

/* returns example

<strong>true
</strong><strong>
</strong>*/
</code></pre>


---

# 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.delegate.xyz/technical-documentation/javascript-sdk/check-delegations/checkdelegateforall.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.
