> For the complete documentation index, see [llms.txt](https://docs.delegate.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.delegate.xyz/technical-documentation/javascript-sdk/fetch-delegations.md).

# Fetch Delegations

**getIncomingDelegations**( `to`: <mark style="color:blue;">string</mark> ) ⇒ Promise< <mark style="color:blue;">V2Delegation\[]</mark> >

&#x20;       Returns an array of Delegation items

<table data-header-hidden><thead><tr><th width="97"></th><th></th></tr></thead><tbody><tr><td><strong>to</strong></td><td>The address to retrieve delegations for</td></tr></tbody></table>

**getOutgoingDelegations**( `from`: <mark style="color:blue;">string</mark> ) ⇒ Promise< <mark style="color:blue;">V2Delegation\[]</mark> >

&#x20;       Returns an array of Delegation items

<table data-header-hidden><thead><tr><th width="97"></th><th></th></tr></thead><tbody><tr><td><strong>from</strong></td><td>The address to retrieve delegations for</td></tr></tbody></table>

#### Usage Example

```javascript
const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const incoming = await v2.getIncomingDelegations(to);
const outgoing = await v2.getOutgoingDelegations(from);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/fetch-delegations.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.
