# checkDelegateForERC1155

**checkDelegateForERC11555**( `to`: <mark style="color:blue;">string</mark>, `from`: <mark style="color:blue;">string</mark>, `contract`: <mark style="color:blue;">string,</mark> `tokenId`: <mark style="color:blue;">number</mark>, `rights?`: <mark style="color:blue;">string</mark> ) ⇒ Promise< <mark style="color:blue;">number</mark> >

&#x20;       Returns the delegated balance, which will be 0 if the delegation does not exist

<table data-header-hidden><thead><tr><th width="128"></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>contract</strong></td><td>The address for the contract you're delegating</td></tr><tr><td><strong>tokenId</strong></td><td>The token id for the token you're delegating</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

```javascript
const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const contract = "0x0000000000000000000000000000000000000002";
const tokenId = 5;
const isDelegateForToken = await v2.checkDelegateForERC1155(to, from, contract, tokenId);

/* returns example

1

*/
```
